6 public static partial class ArithmeticsOperations
19 float[] Data = M.
Data;
21 for (y = 0; y < h; y++, Index += Skip)
23 for (x = 0; x < w; x++)
24 Data[Index++] *= Scalar;
41 for (y = 0; y < h; y++, Index += Skip)
43 for (x = 0; x < w; x++)
44 Data[Index++] *= Scalar;
static void ScalarMultiplication(this Matrix< float > M, float Scalar)
Performs a scalar multiplication on each element in the matrix.
static void ScalarMultiplication(this Matrix< int > M, int Scalar)
Performs a scalar multiplication on each element in the matrix.
Implements a Matrix, basic component for computations in Image Processing and Computer Vision.
int Height
Height of matrix (number of rows)
T[] Data
Underlying data on which the matrix is defined.
int Width
Width of matrix (number of columns)
int Skip
Number of elements to skip from the right edge in the underlying data to the left edge of the new row...
int Start
Start offset of matrix in underlying data.