public static Matrix operator *(double a, Matrix B) { double[,] c = MatrixMath.MultiplyMatrixScalar(B.matrix, a); return(new Matrix(c)); }
//This is just an alias for the same function in the MatrixMath class public static double[] MultiplyMatrixVector(double[,] A, double[] B) { return(MatrixMath.MultiplyMatrixVector(A, B)); }
public static Matrix Inverse(Matrix A) { double[,] inverseData = MatrixMath.InvertMatrix(A.matrix); return(new Matrix(inverseData)); }
public static Matrix operator *(Matrix A, double b) { double[,] c = MatrixMath.MultiplyMatrixScalar(A.matrix, b); return(new Matrix(c)); }
public static double Norm(Matrix A) { return(MatrixMath.MatrixNorm(A.matrix)); }
public Matrix Inverse() { double[,] inverseData = MatrixMath.InvertMatrix(this.matrix); return(new Matrix(inverseData)); }
public double Norm() { return(MatrixMath.MatrixNorm(this.matrix)); }
public static Matrix Transpose(Matrix A) { double[,] data = MatrixMath.TransposeMatrix(A.matrix); return(new Matrix(data)); }
public Matrix Transpose() { double[,] data = MatrixMath.TransposeMatrix(this.matrix); return(new Matrix(data)); }
public static Matrix operator /(Matrix A, double b) { double[,] C = MatrixMath.DivideMatrixScalar(A.matrix, b); return(new Matrix(C)); }
public static Matrix Multiply(Matrix matrix, double scalar) { double[,] result = MatrixMath.MultiplyMatrixScalar(matrix.matrix, scalar); return(new Matrix(result)); }