Type/Module | Description |
Function or value | Description |
Performs a element wise addition of matrices a and b (a+b).
Example
|
|
|
|
|
|
|
Example
|
|
Example
|
|
|
Example
|
|
|
|
Full Usage:
covarianceMatrixOf dataSource orientation dataMatrix
Parameters:
DataSource
-
orientation : Orientation
-
dataMatrix : matrix
-
Returns: matrix
|
computes the orientation and dataSource specific covariance matrix of a dataMatrix\
Example
|
|
Performs a element wise comparison of matrices a and b always preserving the greater value.
Example
|
|
Performs a element wise comparison of matrices a and b always preserving the smaller value.
Example
|
|
Performs a element wise multiplication of matrices a and b (a+b, Hadamard-Product).
Example
|
|
|
|
|
|
|
|
|
|
Iterates the given Matrix row wise and applies function f element wise.
Example
|
|
Iterates the given Matrix row wise and applies function f element wise.
Example
|
|
Example
|
|
Example
|
|
Example
|
|
Example
|
|
Applies a function f row wise to each element of the matrix, threading an accumulator argument through the computation.
Example
|
|
|
|
|
Full Usage:
foldCol f z a j
Parameters:
'T -> 'a -> 'T
z : 'T
a : Matrix<'a>
j : int
Returns: 'T
|
|
Full Usage:
foldRow f z a i
Parameters:
'T -> 'a -> 'T
z : 'T
a : Matrix<'a>
i : int
Returns: 'T
|
|
Full Usage:
foldi f z a
Parameters:
int -> int -> 'a -> float -> 'a
-
z : 'a
-
a : matrix
-
Returns: 'a
|
Applies a function f row wise to each element of the matrix, threading an accumulator argument through the computation.
Example
|
|
Iterates the given Matrix row wise and applies function f element wise.
Example
|
|
Iterates the given Matrix row wise and applies function f element wise.
Example
|
|
|
|
Example
|
|
Accesses the m*n matrix a and returns a total of j2 Columns starting from column index j1. The Result is a new
Example
|
|
|
|
|
|
Returns lower triangular Matrix by setting all values beneath the diagonal to Zero.
Example
|
|
Accesses the m*n matrix a and returns a total of i2 rows and j2 columns starting from row index i1 and colum index j1. The Result is a new
Example
|
|
Example
|
|
Accesses the m*n matrix a and returns a total of i2 rows starting from row index i1. The Result is a new
Example
|
|
Returns upper triangular Matrix by setting all values beneath the diagonal to Zero.
Example
|
|
Creates a dense identiy m*m matrix. A identity matrix is always squared and the elements are set to zero exept elements
Example
|
|
returns a dense matrix with m rows and n rows, applying the init function with the two indices as arguments
|
Full Usage:
initDense i j a
Parameters:
int
-
j : int
-
a : seq<int * int * float>
-
Returns: matrix
|
Example
|
|
|
Full Usage:
initSparse i j a
Parameters:
int
-
j : int
-
a : seq<int * int * float>
-
Returns: matrix
|
Example
|
|
|
|
|
|
|
|
|
|
|
|
|
Builds a new matrix whose elements are the result of row wise applying the given function on each element of a.
Example
|
|
|
Example
|
|
Example
|
Builds a new matrix whose elements are the result of row wise applying the given function on each element of a. The integer index
Example
|
|
|
Example
|
|
Example
|
Full Usage:
meanAsSeq orientation a
Parameters:
Orientation
a : matrix
Returns: seq<float>
|
|
|
Example
|
|
Example
|
Performs a left sided matrix multiplication of a and b (a*b).
Example
|
|
Performs a matrix multiplication of the 1*n rowvector a and the m*n matrix b (a*b).
Example
|
|
Performs a matrix multiplication m*n matrix a and the m*1 vector b (a*b).
Example
|
|
Example
|
|
|
Iterates the m*n matrix a row wise and returns a list of tuples (mi,ni,v) containing non zero elements of a
Example
|
|
|
|
|
|
Example
|
|
|
|
Example
|
|
|
|
|
|
|
|
|
|
|
|
Example
|
|
|
|
|
Example
|
|
|
|
|
|
Full Usage:
readCSV path separator removeHeaderRow removeHeaderCol
Parameters:
string
-
separator : char
-
removeHeaderRow : bool
-
removeHeaderCol : bool
-
Returns: Matrix<float>
|
Example
|
|
Example
|
|
Example
|
|
Example
|
|
|
|
Example
|
Builds a new matrix where the elements are the result of multiplying every element of the given matrix with the given value
Example
|
|
|
|
|
Example
|
|
Example
|
|
Example
|
|
Splits a matrix along column direction according to given indices. Returns (matrix including cols according to indices, rest)
Example
|
|
Splits a matrix along row direction according to given indices. Returns (matrix including rows according to indices, rest)
Example
|
Performs a element wise substraction of matrices a and b (a-b).
Example
|
|
|
|
|
Example
|
Example
|
|
|
|
Example
|
|
|
Returns diagonal matrix by setting all values beneath and above the diagonal to Zero.
Example
|
|
|
|
Example
|
|
Example
|
|
Example
|
|
|
|
|
|
Example
|
|
|
Computes the trace of matrix a by summing elements of the diagonal.
Example
|
|
|
Example
|
|
|
Full Usage:
x
Returns: ('a -> 'b -> 'a) -> 'a -> 'b list -> 'a
|
|
Example
|