Function or value | Description |
|
Performs a element wise addition of matrices matrix1 and matrix2 (matrix1 + matrix2).
Example
|
|
|
|
|
|
|
|
Performs a element wise comparison of matrices matrix1 and matrix2 always preserving the greater value.
Example
|
|
Performs a element wise comparison of matrices matrix1 and matrix2 always preserving the smaller value.
Example
|
|
Performs a element wise multiplication of matrices matrix1 and matrix2 (matrix1 * matrix2, Hadamard-Product).
Example
|
Full Usage:
create lengthRow lengthCol value
Parameters:
int
lengthCol : int
value : 'a
Returns: Matrix<'a>
|
|
|
|
|
Performs a dot product of matrices matrix1 and matrix2.
Example
|
Full Usage:
exists predicate matrix
Parameters:
'a -> bool
-
matrix : Matrix<'a>
-
Returns: bool
|
Iterates the given Matrix row wise and applies the function predicate element wise.
Example
|
Full Usage:
existsi predicate matrix
Parameters:
int -> int -> 'a -> bool
-
matrix : Matrix<'a>
-
Returns: bool
|
Iterates the given Matrix row wise and applies the function predicate element wise.
Example
|
|
Example
|
|
Example
|
Full Usage:
fold folder state matrix
Parameters:
'a -> 'b -> 'a
state : 'a
matrix : Matrix<'b>
Returns: 'a
|
|
Full Usage:
foldi folder state matrix
Parameters:
int -> int -> 'b -> 'c -> 'b
state : 'b
matrix : Matrix<'c>
Returns: 'b
|
|
Full Usage:
forall predicate matrix
Parameters:
'a -> bool
-
matrix : Matrix<'a>
-
Returns: bool
|
Iterates the given Matrix row wise and applies the function predicate element wise.
Example
|
Full Usage:
foralli predicate matrix
Parameters:
int -> int -> 'a -> bool
-
matrix : Matrix<'a>
-
Returns: bool
|
Iterates the given Matrix row wise and applies the function predicate element wise.
Example
|
Full Usage:
get matrix indexRow indexCol
Parameters:
Matrix<'a>
indexRow : int
indexCol : int
Returns: 'a
|
|
|
Example
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
|
|
Full Usage:
init lengthRow lengthCol initializer
Parameters:
int
lengthCol : int
initializer : int -> int -> 'b
Returns: Matrix<'b>
|
|
Full Usage:
initDense lengthRow lengthCol source
Parameters:
int
lengthCol : int
source : seq<int * int * 'a>
Returns: Matrix<'a>
|
|
|
|
|
|
Full Usage:
initSparse lengthRow lengthCol source
Parameters:
int
lengthCol : int
source : seq<int * int * 'a>
Returns: Matrix<'a>
|
|
|
Performs an element wise addition of matrices matrix1 and matrix2 (matrix1 + matrix2).
Example
|
|
Performs an element wise substraction of matrices matrix1 and matrix2 (matrix1 - matrix2).
Example
|
|
|
|
|
|
|
Full Usage:
inplace_mapi mapping matrix
Parameters:
int -> int -> 'a -> 'a
matrix : Matrix<'a>
|
|
|
|
|
|
|
Example
|
|
Example
|
|
|
|
Example
|
|
Example
|
|
Performs a left sided matrix multiplication of matrices matrix1 and matrix2 (matrix1 * matrix2).
Example
|
|
Performs a matrix multiplication of the 1*n rowVector and the m*n matrix (rowVector*matrix).
Example
|
|
Performs a matrix multiplication of a m*n matrix and the m*1 vector (matrix*vector).
Example
|
|
Example
|
|
|
|
Example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
|
Full Usage:
readCSV path separator removeHeaderRow removeHeaderCol transform
Parameters:
string
-
separator : char
-
removeHeaderRow : bool
-
removeHeaderCol : bool
-
transform : string -> 'a
-
Returns: Matrix<'a>
|
Example
|
|
Builds a new matrix where the elements are the result of multiplying every element of the given matrix with the given value
Example
|
Full Usage:
set matrix indexRow indexCol value
Parameters:
Matrix<'a>
indexRow : int
indexCol : int
value : 'a
|
|
|
Replaces column of given index of a matrix with values of a vector, if vector length matches columnsize
Example
|
|
Example
|
|
Example
|
|
Performs a element wise substraction of matrices matrix1 and matrix2 (matrix1 - matrix2).
Example
|
|
Example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
Example
|
|
Example
|
|
Computes the trace of the matrix by summing elements of the diagonal.
Example
|
|
Example
|
Full Usage:
zeroCreate lengthRow lengthCol
Parameters:
int
lengthCol : int
Returns: Matrix<'a>
|
|