
template<class T> | |
void | bitpit::linearalgebra::zeros (std::vector< std::vector< T > > &, int, int) |
template<class T, size_t m, size_t n> | |
void | bitpit::linearalgebra::zeros (std::array< std::array< T, n >, m > &) |
template<class T> | |
void | bitpit::linearalgebra::ones (std::vector< std::vector< T > > &, int, int) |
template<class T, size_t m, size_t n> | |
void | bitpit::linearalgebra::ones (std::array< std::array< T, n >, m > &) |
template<class T> | |
void | bitpit::linearalgebra::eye (std::vector< std::vector< T > > &, int, int) |
template<class T, size_t m, size_t n> | |
void | bitpit::linearalgebra::eye (std::array< std::array< T, n >, m > &) |
Detailed Description
Function Documentation
◆ eye() [1/2]
void bitpit::linearalgebra::eye | ( | std::array< std::array< T, n >, m > & | A | ) |
Initialize a m-by-n identity matrix having. All the entries on the main diagonal are set to 1. Overloading of eye() function for container array.
- Parameters
-
[in,out] A container for matrix storage
- Template Parameters
-
T data type m number of matrix rows n number of matrix columns
Definition at line 615 of file matrix_utilities.tpp.
◆ eye() [2/2]
void bitpit::linearalgebra::eye | ( | std::vector< std::vector< T > > & | A, |
int | m, | ||
int | n ) |
Initialize a m-by-n identity matrix having. All the entries on the main diagonal are set to 1.
- Template Parameters
-
T data type
- Parameters
-
[in,out] A container for matrix storage [in] m number of matrix rows [in] n number of matrix columns
Definition at line 571 of file matrix_utilities.tpp.
◆ ones() [1/2]
void bitpit::linearalgebra::ones | ( | std::array< std::array< T, n >, m > & | A | ) |
Initialize a m-by-n matrix of ones. Overloading of ones() function for container array.
- Parameters
-
[in,out] A container for matrix storage
- Template Parameters
-
T data type m number of matrix rows n number of matrix columns
Definition at line 531 of file matrix_utilities.tpp.
◆ ones() [2/2]
void bitpit::linearalgebra::ones | ( | std::vector< std::vector< T > > & | A, |
int | m, | ||
int | n ) |
Initialize a m-by-n matrix of ones.
- Parameters
-
[in,out] A container for matrix storage [in] m number of matrix rows [in] n number of matrix columns
Definition at line 484 of file matrix_utilities.tpp.
◆ zeros() [1/2]
void bitpit::linearalgebra::zeros | ( | std::array< std::array< T, n >, m > & | A | ) |
Initalize a m-by-n matrix with 0-entries. Overloading of zeros() function for container array.
- Parameters
-
[in,out] A container for matrix storage
- Template Parameters
-
T data type m number of matrix rows n number of matrix columns
Definition at line 428 of file matrix_utilities.tpp.
◆ zeros() [2/2]
void bitpit::linearalgebra::zeros | ( | std::vector< std::vector< T > > & | A, |
int | m, | ||
int | n ) |
Initialize a m-by-n matrix with 0 entries
- Parameters
-
[in,out] A container for matrix storage [in] m number of matrix rows [in] n number of matrix columns
Definition at line 381 of file matrix_utilities.tpp.
