Example #1
0
        // INITIALIZATION

        public static DenseColumnMajorMatrixStorage <T> OfMatrix(MatrixStorage <T> matrix)
        {
            var storage = new DenseColumnMajorMatrixStorage <T>(matrix.RowCount, matrix.ColumnCount);

            matrix.CopyToUnchecked(storage, ExistingData.AssumeZeros);
            return(storage);
        }
        // INITIALIZATION

        public static DenseColumnMajorMatrixStorage <T> OfMatrix(MatrixStorage <T> matrix)
        {
            var storage = new DenseColumnMajorMatrixStorage <T>(matrix.RowCount, matrix.ColumnCount);

            matrix.CopyToUnchecked(storage, skipClearing: true);
            return(storage);
        }