Exemple #1
0
 public static Matrix operator *(double a, Matrix B)
 {
     double[,] c = MatrixMath.MultiplyMatrixScalar(B.matrix, a);
     return(new Matrix(c));
 }
Exemple #2
0
 //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));
 }
Exemple #3
0
 public static Matrix Inverse(Matrix A)
 {
     double[,] inverseData = MatrixMath.InvertMatrix(A.matrix);
     return(new Matrix(inverseData));
 }
Exemple #4
0
 public static Matrix operator *(Matrix A, double b)
 {
     double[,] c = MatrixMath.MultiplyMatrixScalar(A.matrix, b);
     return(new Matrix(c));
 }
Exemple #5
0
 public static double Norm(Matrix A)
 {
     return(MatrixMath.MatrixNorm(A.matrix));
 }
Exemple #6
0
 public Matrix Inverse()
 {
     double[,] inverseData = MatrixMath.InvertMatrix(this.matrix);
     return(new Matrix(inverseData));
 }
Exemple #7
0
 public double Norm()
 {
     return(MatrixMath.MatrixNorm(this.matrix));
 }
Exemple #8
0
 public static Matrix Transpose(Matrix A)
 {
     double[,] data = MatrixMath.TransposeMatrix(A.matrix);
     return(new Matrix(data));
 }
Exemple #9
0
 public Matrix Transpose()
 {
     double[,] data = MatrixMath.TransposeMatrix(this.matrix);
     return(new Matrix(data));
 }
Exemple #10
0
 public static Matrix operator /(Matrix A, double b)
 {
     double[,] C = MatrixMath.DivideMatrixScalar(A.matrix, b);
     return(new Matrix(C));
 }
Exemple #11
0
 public static Matrix Multiply(Matrix matrix, double scalar)
 {
     double[,] result = MatrixMath.MultiplyMatrixScalar(matrix.matrix, scalar);
     return(new Matrix(result));
 }