Linear algebra tools.
More...
|
| struct | Eigen |
| | Stores eigen vectors and eigen values. More...
|
| struct | QR |
| | Contains a Q matrix and an R matrix resulant of QR decomposition. More...
|
◆ covariance()
Get covariance matrix.
- Parameters
-
| a | Matrix to get the covariance matrix of |
- Returns
- The covariance matrix
◆ find_eigen_values()
Get Eigen Values and Eigen Vectors of matrix.
- Parameters
-
| a | The matrix we want to find the eigen vectors and values of |
- Returns
- An Eigen struct with the eigen vectors and values
◆ frobenius_norm()
| double CNum::DataStructs::LinAlg::frobenius_norm |
( |
const Matrix< double > & | m, |
|
|
bool | is_off_diagonal = false ) |
Calculate the Frobenius norm of a Matrix.
- Parameters
-
| m | The matrix |
| is_off_diagonal | Whether or not to only take the norm of the off-diagonal part |
- Returns
- The norm
◆ qr_decomposition()
QR Decomposition.
- Parameters
-
- Returns
- The Q and R matrices
◆ unit_vector()
Get single column unit vector.
- Parameters
-
| a | The vector of which we want to find the unit vector (shape=(n, 1)) |
- Returns
- The unit vector