Matrix class.
Constructor | Description | ||
Full Usage:
Matrix(m, n)
Parameters:
int
-
Number of rows.
n : int
-
Number of colums.
|
Construct an m-by-n matrix of zeros.
|
||
Full Usage:
Matrix(m, n, s)
Parameters:
int
-
Number of rows.
n : int
-
Number of colums.
s : float
-
Fill the matrix with this scalar value.
|
Construct an m-by-n constant matrix.
|
||
Full Usage:
Matrix(A)
Parameters:
float[][]
-
Two-dimensional array of doubles.
|
Construct a matrix from a 2-D jagged array. Array is not copied
|
||
Full Usage:
Matrix(arr)
Parameters:
float[,]
|
|
||
Full Usage:
Matrix(A, m, n)
Parameters:
float[][]
-
Two-dimensional array of doubles.
m : int
-
Number of rows.
n : int
-
Number of columns.
|
Construct a matrix quickly without checking arguments.
|
Instance member | Description | ||
Full Usage:
this.Cholesky
Returns: Matrix
Lower-triangular Cholesky factor for a symmetric positive-definite matrix
|
Cholesky factorization
|
||
|
Make a deep copy of a matrix
|
||
Full Usage:
this.CloneColumn
Parameters:
int
-
Column number (zero based)
Returns: Vector
Vector containing copy of column's elements
|
Gets column with number coumnnum from matrix res
|
||
Full Usage:
this.ColumnDimension
Returns: int
The number of columns.
|
Get column dimension.
|
||
|
Matrix inverse for a lower triangular matrix
|
||
Full Usage:
this.[arg1, arg2]
Parameters:
int
Returns: int
A(i,j)
|
Matrix elements accessor.
|
||
Full Usage:
this.[arg1]
Returns: int
A(i)
|
Access the Column
|
||
Multiply a matrix by a scalar in place, A = s*A
|
|||
Full Usage:
this.RowDimension
Returns: int
The number of rows.
|
Get row dimension.
|
||
|
Solve A*x = b using Gaussian elimination with partial pivoting
|
||
|
|
||
|
|
||
Full Usage:
this.Submatrix
Parameters:
int
-
Initial row index
i1 : int
-
Final row index
j0 : int
-
Initial column index
j1 : int
-
Final column index
Returns: Matrix
A(i0:i1,j0:j1)
|
Get a submatrix.
|
||
Full Usage:
this.Submatrix
Parameters:
int[]
-
Array of row indices.
c : int[]
-
Array of column indices.
Returns: Matrix
A(r(:),c(:))
|
Get a submatrix.
|
||
Full Usage:
this.Submatrix
Parameters:
int
-
Initial row index
i1 : int
-
Final row index
c : int[]
-
Array of column indices.
Returns: Matrix
A(i0:i1,c(:))
|
Get a submatrix.
|
||
Full Usage:
this.Submatrix
Parameters:
int[]
-
Array of row indices.
j0 : int
-
Initial column index.
j1 : int
-
Final column index.
Returns: Matrix
A(r(:),j0:j1)
|
Get a submatrix.
|
||
Full Usage:
this.Transpose
Returns: Matrix
An n-by-m matrix where the input matrix has m rows and n columns.
|
Transpose of a dense matrix
|
||
|
Multiply a matrix by a scalar, C = s*A
|
Static member | Description |
|
|
|
|
|
|
|
|
|
|
Full Usage:
Matrix.Identity(m, n)
Parameters:
int
-
Number of rows.
n : int
-
Number of colums.
Returns: Matrix
An m-by-n matrix with ones on the diagonal and zeros elsewhere.
|
Generate identity matrix
|
|
|
|
|