Exemplo n.º 1
0
        public void ToArray()
        {
            double[] testvector = new double[2] {
                0, 1
            };
            ComplexDoubleVector test = new ComplexDoubleVector(testvector);

            Complex[] internaldata = test.ToArray();

            Assert.AreEqual(internaldata.Length, testvector.Length);
            Assert.AreEqual(internaldata[0], new Complex(testvector[0]));
            Assert.AreEqual(internaldata[1], new Complex(testvector[1]));
        }