|
|
| ListMatrix () |
| | create as empty
|
| |
|
| ListMatrix (int r, int c) |
| | create matrix with r rows and c columns, initialize all elements to 0
|
| |
| template<typename Iterator > |
| | ListMatrix (int r, int c, Iterator src) |
| |
| ListMatrix & | operator= (const ListMatrix &other) |
| |
| void | swap (ListMatrix &M) |
| |
|
void | resize (int r, int c) |
| | Resize to new dimensions, added elements initialized with default constructor.
|
| |
|
void | clear () |
| | Truncate to 0x0 matrix.
|
| |
|
int | rows () const |
| | the number of rows of the matrix
|
| |
|
int | cols () const |
| | the number of columns of the matrix
|
| |
|
template<typename TVector2 > |
| row_list::iterator | insert_row (const typename row_list::iterator &where, const GenericVector< TVector2 > &v) |
| | Insert a new row at the given position: before the row pointed to by where.
|
| |
|
void | delete_row (const typename row_list::iterator &where) |
| | Delete the row pointed to by where. Be aware that the iterator becomes void after the removal unless rescued in good time (with postincrement or postdecrement).
|
| |
| void | swap (GenericMatrix< TMatrix2, TVector::element_type > &m) |
| |
| void | fill (const E2 &x) |
| |
|
std::enable_if< compatible_symmetry_types< TMatrix2 >), top_type & >::type | operator+= (const GenericMatrix< TMatrix2 > &m) |
| | adding a GenericMatrix
|
| |
|
std::enable_if< compatible_symmetry_types< TMatrix2 >), top_type & >::type | operator-= (const GenericMatrix< TMatrix2, TVector::element_type > &m) |
| | subtracting a GenericMatrix
|
| |
|
top_type & | operator*= (const Right &r) |
| | multiply with an element
|
| |
|
std::enable_if< is_expandable_by< TMatrix2 >), top_type & >::type | operator/= (const GenericMatrix< TMatrix2 > &m) |
| | append the rows of a GenericMatrix
|
| |
|
std::enable_if< is_expandable_by< TVector >), top_type & >::type | operator/= (const GenericVector< TVector > &v) |
| | append a GenericVector as a row
|
| |
|
std::enable_if< isomorphic_types< TVector::element_type, Right >::value, top_type & >::type | div_exact (const Right &r) |
| | divide by an element
|
| |
|
std::enable_if< is_expandable_by< TMatrix2 >), top_type & >::type | operator|= (const GenericMatrix< TMatrix2 > &m) |
| | append the columns of a GenericMatrix
|
| |
|
std::enable_if< is_expandable_by< TVector >), top_type & >::type | operator|= (const GenericVector< TVector > &v) |
| | append a GenericVector as a column
|
| |
| IndexedSlice< ConcatRows< unwary_t< ListMatrix< TVector > > > &, series > | diagonal (int i=0) |
| |
| IndexedSlice< ConcatRows< unwary_t< ListMatrix< TVector > > > &, series > | anti_diagonal (int i=0) |
| |
template<typename TVector>
class pm::ListMatrix< TVector >
List of row vectors.
A list of row vectors. The implementation is based on std::list. It can be parameterized with any persistent vector type.