Esempio n. 1
0
        public void Clone()
        {
            ComplexFloatVector a = new ComplexFloatVector(new float[4] {
                0, 1, 2, 3
            });
            ComplexFloatVector b = a.Clone();

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

            a = a * 2;

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