|
|
template<typename TargetType , typename TMatrix > |
| const TMatrix::top_type & | pm::convert_to (const GenericMatrix< TMatrix, TargetType > &m) |
| | explicit conversion of matrix elements to another type
|
| |
|
template<typename Vector > |
| SingleRow< unwary_t< Vector > & > | pm::vector2row (GenericVector< Vector > &v) |
| | disguise a GenericVector as a matrix with 1 row
|
| |
|
template<typename Vector > |
| SingleCol< unwary_t< Vector > & > | pm::vector2col (GenericVector< Vector > &v) |
| | disguise a GenericVector as a matrix with 1 column
|
| |
|
template<typename Vector > |
| const RepeatedRow< typename Diligent< const unwary_t< Vector > & >::type > | pm::repeat_row (const GenericVector< Vector > &v, int n=0) |
| | Create a matrix with n rows, each equal to v.
|
| |
|
template<typename Vector > |
| const RepeatedCol< typename Diligent< const unwary_t< Vector > & >::type > | pm::repeat_col (const GenericVector< Vector > &v, int n=0) |
| | Create a matrix with n columns, each equal to v.
|
| |
| template<typename E > |
| const RepeatedRow< SameElementVector< const E & > > | pm::same_element_matrix (const E &x, int m, int n) |
| |
| template<typename E > |
| const RepeatedRow< SameElementVector< const E & > > | pm::ones_matrix (int m, int n) |
| |
| template<typename E > |
| const RepeatedRow< SameElementVector< const E & > > | pm::zero_matrix (int m, int n) |
| |
|
template<typename Vector > |
| const DiagMatrix< const unwary_t< Vector > & > | pm::diag (const GenericVector< Vector > &v) |
| | Create a square diagonal matrix from a GenericVector.
|
| |
|
template<typename Vector > |
| const DiagMatrix< const unwary_t< Vector > &, false > | pm::anti_diag (const GenericVector< Vector > &v) |
| | Create a anti-diagonal matrix.
|
| |
|
template<typename E > |
| const DiagMatrix< SameElementVector< const E & > > | pm::unit_matrix (int dim) |
| | Create a unit_matrix of dimension dim.
|
| |
|
template<typename E , typename Matrix1 , typename Matrix2 > |
| auto | pm::diag (const GenericMatrix< Matrix1, E > &m1, const GenericMatrix< Matrix2, E > &m2) |
| | Create a block-diagonal matrix.
|
| |
| template<typename E , typename Vector1 , typename Matrix2 > |
| auto | pm::diag (const GenericVector< Vector1, E > &v1, const GenericMatrix< Matrix2, E > &m2) |
| |
| template<typename E , typename Matrix1 , typename Vector2 > |
| auto | pm::diag (const GenericMatrix< Matrix1, E > &m1, const GenericVector< Vector2, E > &v2) |
| |
|
template<typename E , typename Matrix1 , typename Matrix2 > |
| auto | pm::anti_diag (const GenericMatrix< Matrix1, E > &m1, const GenericMatrix< Matrix2, E > &m2) |
| | Create a block-anti-diagonal matrix.
|
| |
| template<typename E , typename Vector1 , typename Matrix2 > |
| auto | pm::anti_diag (const GenericVector< Vector1, E > &v1, const GenericMatrix< Matrix2, E > &m2) |
| |
| template<typename E , typename Matrix1 , typename Vector2 > |
| auto | pm::anti_diag (const GenericMatrix< Matrix1, E > &m1, const GenericVector< Vector2, E > &v2) |
| |