Accord.Tests.Math.MatrixTest.SqrtTest C# (CSharp) Method

SqrtTest() private method

private SqrtTest ( ) : void
return void
        public void SqrtTest()
        {
            double[,] value = 
            {
                { 3,  2 },
                { 1, -2 },
            };

            double[,] expected = 
            {
                { 1.7321,  Accord.Math.Constants.Sqrt2 },          
                { 1.0000, Double.NaN },
            };

            double[,] actual = Matrix.Sqrt(value);
            Assert.IsTrue(expected.IsEqual(actual, 0.0001));
        }
        #endregion
MatrixTest