An instance of data type Matrix is a matrix of variables of number type NT. The types Matrix and Vector together realize many functions of basic linear algebra.
There also constant versions of the above iterators: const_iterator, row_const_iterator, and column_const_iterator.
| |
a tag class for identity initialization
| |
| |
the vector type used.
|
| |||
creates an instance M of type
Matrix.
| |||
| |||
creates an instance M of type
Matrix of dimension initialized to the zero matrix.
| |||
| |||
creates an instance M of
type Matrix of dimension initialized to the zero
matrix.
| |||
| |||
creates an instance
M of type Matrix of dimension
p.firstp.second initialized to the zero matrix.
| |||
| |||
creates an
instance M of type Matrix of dimension
initialized to the identity matrix (times x).
| |||
| |||
creates an instance M
of type Matrix of dimension initialized to the
matrix with x entries.
| |||
| |||
| |||
creates an
instance M of type Matrix. Let be the ordered set of
column-vectors of common dimension as given by the iterator
range [first,last). M is initialized to an
matrix with the columns as specified by .
| |||
| |||
creates an instance
M of type Matrix. Let be an array of
column-vectors of common dimension . M is initialized to an
matrix with the columns as specified by .
|
|
| returns , the number of rows of M. | ||
|
| returns , the number of columns of M. | ||
|
| returns , the dimension pair of M. | ||
|
|
returns the -th row of M (an
- vector).
| ||
|
|
returns the -th column of M
(an - vector).
| ||
|
|
returns .
| ||
|
|
swaps rows and .
| ||
|
|
swaps columns and
.
| ||
|
|
an iterator pointing to the
first entry of the th row.
| ||
|
|
an iterator pointing beyond
the last entry of the th row.
| ||
|
|
an iterator pointing
to the first entry of the th column.
| ||
|
|
an iterator pointing
beyond the last entry of the th column.
| ||
|
| an iterator pointing to the first entry of . | ||
|
| an iterator pointing beyond the last entry of . |
The same operations exist for row_const_iterator, column_const_iterator and const_iterator.
|
| Test for equality. |
|
| Test for inequality. |
|
|
Addition.
| ||
|
|
Subtraction.
| ||
|
| Negation. | ||
|
|
Multiplication.
| ||
|
|
Multiplication with
vector.
| ||
|
| Multiplication of every entry with x. | ||
|
| Multiplication of every entry with x. |