|
MyMediaLite
3.11
|
Utilities to work with matrices More...
Static Public Member Functions | |
| static float | ColumnAverage (this Matrix< float > matrix, int col) |
| Compute the average value of the entries in a column of a matrix More... | |
| static void | ColumnInitNormal (this Matrix< float > matrix, int column, double mean, double stddev) |
| Initializes one column of a float matrix with normal distributed (Gaussian) noise More... | |
| static float | FrobeniusNorm (this Matrix< float > matrix) |
| Compute the Frobenius norm (square root of the sum of squared entries) of a matrix More... | |
| static void | Inc (this Matrix< float > matrix, int i, int j, double v) |
| Increments the specified matrix element by a double value More... | |
| static void | Inc (this Matrix< float > matrix1, Matrix< float > matrix2) |
| Increment the elements in one matrix by the ones in another More... | |
| static void | Inc (this Matrix< int > matrix, int i, int j) |
| Increments the specified matrix element by 1 More... | |
| static void | Inc (this Matrix< float > matrix, float v) |
| Increment the seach matrix element by a given value More... | |
| static void | InitNormal (this Matrix< float > matrix, double mean, double stddev) |
| Initializes a float matrix with normal distributed (Gaussian) noise More... | |
| static int | Max (this Matrix< int > m) |
| return the maximum value contained in a matrix More... | |
| static float | Max (this Matrix< float > m) |
| return the maximum value contained in a matrix More... | |
| static void | Multiply (this Matrix< float > matrix, float f) |
| Multiply all entries of a matrix with a scalar More... | |
| static void | MultiplyColumn (this Matrix< float > matrix, int j, float scalar) |
| Multiplies one column of a matrix with a scalar More... | |
| static IList< float > | RowDifference (Matrix< float > matrix1, int i, Matrix< float > matrix2, int j) |
| Compute the difference vector between two rows of two matrices More... | |
| static void | RowInitNormal (this Matrix< float > matrix, int row, double mean, double stddev) |
| Initializes one row of a float matrix with normal distributed (Gaussian) noise More... | |
| static float | RowScalarProduct (this Matrix< float > matrix, int i, IList< float > vector) |
| Compute the scalar product between a vector and a row of the matrix More... | |
| static double | RowScalarProduct (this Matrix< float > matrix, int i, IList< double > vector) |
| Compute the scalar product between a vector and a row of the matrix More... | |
| static float | RowScalarProduct (Matrix< float > matrix1, int i, Matrix< float > matrix2, int j) |
| Compute the scalar product between two rows of two matrices More... | |
| static double | RowScalarProductWithRowDifference (Matrix< float > matrix1, int i, Matrix< float > matrix2, int j, Matrix< float > matrix3, int k) |
| Compute the scalar product of a matrix row with the difference vector of two other matrix rows More... | |
| static IList< float > | SumOfRows (this Matrix< float > matrix, ICollection< int > row_ids) |
| Sum up a given number of rows of a matrix More... | |
Utilities to work with matrices
|
inlinestatic |
Compute the average value of the entries in a column of a matrix
| matrix | the matrix |
| col | the column ID |
|
inlinestatic |
Initializes one column of a float matrix with normal distributed (Gaussian) noise
| matrix | the matrix to initialize |
| mean | the mean of the normal distribution drawn from |
| stddev | the standard deviation of the normal distribution |
| column | the column to be initialized |
|
inlinestatic |
Compute the Frobenius norm (square root of the sum of squared entries) of a matrix
See http://en.wikipedia.org/wiki/Matrix_norm
| matrix | the matrix |
|
inlinestatic |
Increments the specified matrix element by a double value
| matrix | the matrix |
| i | the row |
| j | the column |
| v | the value |
Increment the elements in one matrix by the ones in another
| matrix1 | the matrix to be incremented |
| matrix2 | the other matrix |
|
inlinestatic |
Increments the specified matrix element by 1
| matrix | the matrix |
| i | the row |
| j | the column |
|
inlinestatic |
Increment the seach matrix element by a given value
| matrix | the matrix |
| v | the value to increment with |
|
inlinestatic |
Initializes a float matrix with normal distributed (Gaussian) noise
| matrix | the matrix to initialize |
| mean | the mean of the normal distribution drawn from |
| stddev | the standard deviation of the normal distribution |
|
inlinestatic |
return the maximum value contained in a matrix
| m | the matrix |
|
inlinestatic |
return the maximum value contained in a matrix
| m | the matrix |
|
inlinestatic |
Multiply all entries of a matrix with a scalar
| matrix | the matrix |
| f | the number to multiply with |
|
inlinestatic |
Multiplies one column of a matrix with a scalar
| matrix | the matrix |
| j | the column ID |
| scalar | the scalar value to multiply with |
|
inlinestatic |
Compute the difference vector between two rows of two matrices
| matrix1 | the first matrix |
| i | the first row ID |
| matrix2 | the second matrix |
| j | the second row ID |
|
inlinestatic |
Initializes one row of a float matrix with normal distributed (Gaussian) noise
| matrix | the matrix to initialize |
| row | the row to be initialized |
| mean | the mean of the normal distribution drawn from |
| stddev | the standard deviation of the normal distribution |
|
inlinestatic |
Compute the scalar product between a vector and a row of the matrix
| matrix | the matrix |
| i | the row ID |
| vector | the numeric vector |
|
inlinestatic |
Compute the scalar product between a vector and a row of the matrix
| matrix | the matrix |
| i | the row ID |
| vector | the numeric vector |
|
inlinestatic |
Compute the scalar product between two rows of two matrices
| matrix1 | the first matrix |
| i | the first row ID |
| matrix2 | the second matrix |
| j | the second row ID |
|
inlinestatic |
Compute the scalar product of a matrix row with the difference vector of two other matrix rows
| matrix1 | the first matrix |
| i | the first row ID |
| matrix2 | the second matrix |
| j | the second row ID |
| matrix3 | the third matrix |
| k | the third row ID |
///
|
inlinestatic |
Sum up a given number of rows of a matrix
| matrix | the matrix |
| row_ids | a collection of row IDs |
1.8.9.1