Пример #1
0
        public void Axpy()
        {
            ComplexFloatVector a = new ComplexFloatVector(new float[4] {
                0, 1, 2, 3
            });
            float scal           = 3;
            ComplexFloatVector b = new ComplexFloatVector(4);

            b.Axpy(scal, a);
            a.Scale(scal);

            Assert.AreEqual(a[0], b[0]);
            Assert.AreEqual(a[1], b[1]);
            Assert.AreEqual(a[2], b[2]);
            Assert.AreEqual(a[3], b[3]);
        }