Exemplo n.º 1
0
        public void GetSum()
        {
            ComplexDoubleVector a = new ComplexDoubleVector(new double[4] {
                0, 1, 2, 3
            });
            ComplexDoubleVector b = new ComplexDoubleVector(new double[4] {
                4, 5, 6, 7
            });

            Assert.AreEqual(a.GetSum(), (Complex)6);
            Assert.AreEqual(a.GetSumMagnitudes(), 6);

            Assert.AreEqual(b.GetSum(), (Complex)22);
            Assert.AreEqual(b.GetSumMagnitudes(), 22);
        }