Example #1
0
 public static Matrix operator *(Matrix A, double b)
 {
     double[,] c = MatrixMath.MultiplyMatrixScalar(A.matrix, b);
     return(new Matrix(c));
 }
Example #2
0
 public static Matrix operator *(double a, Matrix B)
 {
     double[,] c = MatrixMath.MultiplyMatrixScalar(B.matrix, a);
     return(new Matrix(c));
 }
Example #3
0
 public static Matrix Multiply(Matrix matrix, double scalar)
 {
     double[,] result = MatrixMath.MultiplyMatrixScalar(matrix.matrix, scalar);
     return(new Matrix(result));
 }