Loading...
Searching...
No Matches
Special Matrices
Collaboration diagram for Special Matrices:
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]

template<class T , size_t m, size_t n>
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]Acontainer for matrix storage
Template Parameters
Tdata type
mnumber of matrix rows
nnumber of matrix columns

Definition at line 615 of file matrix_utilities.tpp.

◆ eye() [2/2]

template<class T >
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
Tdata type
Parameters
[in,out]Acontainer for matrix storage
[in]mnumber of matrix rows
[in]nnumber of matrix columns

Definition at line 571 of file matrix_utilities.tpp.

◆ ones() [1/2]

template<class T , size_t m, size_t n>
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]Acontainer for matrix storage
Template Parameters
Tdata type
mnumber of matrix rows
nnumber of matrix columns

Definition at line 531 of file matrix_utilities.tpp.

◆ ones() [2/2]

template<class T >
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]Acontainer for matrix storage
[in]mnumber of matrix rows
[in]nnumber of matrix columns

Definition at line 484 of file matrix_utilities.tpp.

◆ zeros() [1/2]

template<class T , size_t m, size_t n>
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]Acontainer for matrix storage
Template Parameters
Tdata type
mnumber of matrix rows
nnumber of matrix columns

Definition at line 428 of file matrix_utilities.tpp.

◆ zeros() [2/2]

template<class T >
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]Acontainer for matrix storage
[in]mnumber of matrix rows
[in]nnumber of matrix columns

Definition at line 381 of file matrix_utilities.tpp.

--- layout: doxygen_footer ---