Пример #1
0
        public void ColumnVectorCopy()
        {
            ColumnVector v = new ColumnVector(3);

            // test cloning and equality/inequality testing
            ColumnVector vc = v.Copy();

            Assert.IsTrue(vc == v);
            Assert.IsFalse(vc != v);

            // test independence clone and equality/inequality testing
            vc[0] += 1.0;
            Assert.IsFalse(vc == v);
            Assert.IsTrue(vc != v);
        }