本文整理汇总了C#中Altaxo.Calc.LinearAlgebra.ComplexFloatVector.GetEnumerator方法的典型用法代码示例。如果您正苦于以下问题:C# ComplexFloatVector.GetEnumerator方法的具体用法?C# ComplexFloatVector.GetEnumerator怎么用?C# ComplexFloatVector.GetEnumerator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo.Calc.LinearAlgebra.ComplexFloatVector
的用法示例。
在下文中一共展示了ComplexFloatVector.GetEnumerator方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CurrentException2
public void CurrentException2()
{
ComplexFloatVector test = new ComplexFloatVector(new ComplexFloat[2]{1f,2f});
IEnumerator enumerator = test.GetEnumerator();
enumerator.MoveNext();
enumerator.MoveNext();
enumerator.MoveNext();
object value=enumerator.Current;
}
示例2: Current
public void Current()
{
ComplexFloatVector test = new ComplexFloatVector(new ComplexFloat[2]{1f,2f});
IEnumerator enumerator = test.GetEnumerator();
bool movenextresult;
movenextresult=enumerator.MoveNext();
Assert.IsTrue(movenextresult);
Assert.AreEqual(enumerator.Current,test[0]);
movenextresult=enumerator.MoveNext();
Assert.IsTrue(movenextresult);
Assert.AreEqual(enumerator.Current,test[1]);
movenextresult=enumerator.MoveNext();
Assert.IsFalse(movenextresult);
}
示例3: GetEnumerator
public void GetEnumerator()
{
ComplexFloatVector a = new ComplexFloatVector(new ComplexFloat[4] { 0, 1, 2, 3 });
IEnumerator dve = a.GetEnumerator();
ComplexFloat b;
bool c;
c = dve.MoveNext();
b = (ComplexFloat)dve.Current;
Assert.AreEqual(c, true);
Assert.AreEqual(b, (ComplexFloat)0);
c = dve.MoveNext();
b = (ComplexFloat)dve.Current;
Assert.AreEqual(c, true);
Assert.AreEqual(b, (ComplexFloat)1);
c = dve.MoveNext();
b = (ComplexFloat)dve.Current;
Assert.AreEqual(c, true);
Assert.AreEqual(b, (ComplexFloat)2);
c = dve.MoveNext();
b = (ComplexFloat)dve.Current;
Assert.AreEqual(c, true);
Assert.AreEqual(b, (ComplexFloat)3);
c = dve.MoveNext();
Assert.AreEqual(c, false);
}
示例4: GetEnumeratorException
public void GetEnumeratorException()
{
ComplexFloatVector a = new ComplexFloatVector(new ComplexFloat[4] { 0, 1, 2, 3 });
IEnumerator dve = a.GetEnumerator();
ComplexFloat b = (ComplexFloat)dve.Current;
}