示例#1
0
        public void Transpose()
        {
            Vector3[,] expected = MakeResult(size, size, fifteen);
            FastMatrix <Vector3> matrix = MakeMatrix(size, size, fifteen);

            matrix[0, size - 1]   = five;
            expected[size - 1, 0] = five;

            matrix = cpu.Transpose(matrix);

            VerifyResults(matrix, expected);
        }
示例#2
0
        public void Transpose()
        {
            double[,] expected = MakeResult(size, size, 10);
            FastMatrix matrix = MakeMatrix(size, size, 10);

            matrix[0, size - 1]   = 5;
            expected[size - 1, 0] = 5;

            matrix = cpu.Transpose(matrix);

            VerifyResults(matrix, expected);
        }
        static void Transpose()
        {
            //process is same for parallel
            SingleThreadedOperator op = new SingleThreadedOperator();

            //5*3 matrix
            FastMatrix one = new FastMatrix(5, 3);

            Utilities.FillMatrix(one, 5);

            //10 will start at the bottom left and go to the top right
            one[0, one.GetSize(0) - 1] = 10;
            FastMatrix result = op.Transpose(one);

            result.Print();
        }
示例#4
0
        static void Transpose()
        {
            //process is same for parallel
            SingleThreadedOperator <IntWrapper> op = new SingleThreadedOperator <IntWrapper>();

            //5*3 matrix
            FastMatrix <IntWrapper> one = new FastMatrix <IntWrapper>(5, 3);

            Utilities.FillMatrix(one, 5);

            //10 will start at the bottom left and go to the top right
            one[0, one.Rows - 1] = 10;
            FastMatrix <IntWrapper> result = op.Transpose(one);

            Console.WriteLine(result);
        }