Esempio n. 1
0
        [Fact] public void WithElementVector2()
        {
            var v = MathS.ZeroVector(5);

            Assert.Equal(MathS.Vector(0, 0, 5, 6, 0), v.WithElement(2, 5).WithElement(3, 6));
            Assert.Equal(MathS.Vector(0, 0, 0, 0, 0), v);
        }
Esempio n. 2
0
 [Fact] public void WithColumnVector()
 => Assert.Equal(MathS.Vector(1, 2, 3), MathS.ZeroVector(3).WithColumn(0, MathS.Vector(1, 2, 3)));
Esempio n. 3
0
 [Fact] public void WithRowVector()
 => Assert.Equal(MathS.Vector(0, 0, 3, 0), MathS.ZeroVector(4).WithRow(2, MathS.Vector(3)));
Esempio n. 4
0
 [Fact] public void ZeroVector()
 => Assert.Equal(MathS.Vector(0, 0, 0, 0), MathS.ZeroVector(4));