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

TensorProductTest2() private method

private TensorProductTest2 ( ) : void
return void
        public void TensorProductTest2()
        {
            double[] a = { 1, 2 };

            double[] b = { 4, 5, 6 };

            double[] expected = { 4, 5, 6, 8, 10, 12 };

            double[] actual = Matrix.KroneckerProduct(a, b);
            Assert.IsTrue(Matrix.IsEqual(expected, actual));
        }
MatrixTest