コード例 #1
0
        public void ConvertNDArrayNDArrayDouble()
        {
            var np = new NDArray <double>().arange(9).reshape(3, 3);

            var npAsMatrix = np.AsMatrix();

            for (int idx = 0; idx < 3; idx++)
            {
                for (int jdx = 0; jdx < 3; jdx++)
                {
                    Assert.AreEqual(np[idx, jdx], npAsMatrix[idx, jdx]);
                }
            }
        }