Exemple #1
0
        public void Ones_ShouldSucceed()
        {
            VectorXD v = VectorXD.Ones(4);

            Assert.True(v.Max() <= 1.0);
            Assert.True(v.Min() >= 1.0);
            Assert.Equal(4, v.Length);
            Assert.Equal(new VectorXD(new[] { 1.0, 1.0, 1.0, 1.0 }), v);
        }