Function prototypes for creating tridiagonal matrices.
More...
#include <armadillo>
Go to the source code of this file.
|
| arma::mat | create_tridiagonal (const arma::vec &a, const arma::vec &d, const arma::vec &e) |
| | Create a tridiagonal matrix.
|
| |
| arma::mat | create_tridiagonal (int n, double a, double d, double e) |
| | Create a tridiagonal matrix.
|
| |
| arma::mat | create_symmetric_tridiagonal (int n, double a, double d) |
| | Create a symmetric tridiagonal matrix.
|
| |
| double | max_offdiag_symmetric (arma::mat &A, int &k, int &l) |
| | Find the off-diagonal element with the largest absolute value.
|
| |
Function prototypes for creating tridiagonal matrices.
- Author
- Cory Alexander Balaton (coryab)
-
Janita Ovidie Sandtrøen Willumsen (janitaws)
- Bug:
- No known bugs
◆ create_symmetric_tridiagonal()
| arma::mat create_symmetric_tridiagonal |
( |
int |
n, |
|
|
double |
a, |
|
|
double |
d |
|
) |
| |
Create a symmetric tridiagonal matrix.
- Parameters
-
| n | The dimensions of the tridiagonal matrix |
| a | The signature for the off diagonals |
| d | The signature for the main diagonal |
- Returns
- arma::matrix
◆ create_tridiagonal() [1/2]
| arma::mat create_tridiagonal |
( |
const arma::vec & |
a, |
|
|
const arma::vec & |
d, |
|
|
const arma::vec & |
e |
|
) |
| |
Create a tridiagonal matrix.
- Parameters
-
| a | Vector for the lower diagonal of size N-1 |
| d | Vector for the main diagonal of size N |
| e | Vector for the upper diagonal of size N-1 |
- Returns
- arma::matrix
◆ create_tridiagonal() [2/2]
| arma::mat create_tridiagonal |
( |
int |
n, |
|
|
double |
a, |
|
|
double |
d, |
|
|
double |
e |
|
) |
| |
Create a tridiagonal matrix.
- Parameters
-
| n | The dimensions of the tridiagonal matrix |
| a | The signature for the lower diagonal |
| d | The signature for the main diagonal |
| e | The signature for the upper diagonal |
- Returns
- arma::matrix
◆ max_offdiag_symmetric()
| double max_offdiag_symmetric |
( |
arma::mat & |
A, |
|
|
int & |
k, |
|
|
int & |
l |
|
) |
| |
Find the off-diagonal element with the largest absolute value.
- Parameters
-
| A | Symmetric matrix |
| k | Variable to store the row of the return value |
| l | Variable to store the column of the return value |
- Returns
- Double