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.
| |
the ring type of the components.
| |
| |
bidirectional iterator for accessing
all components row-wise.
| |
| |
random access iterator for accessing row
entries.
| |
| |
random access iterator for accessing
column entries.
|
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 . Precondition: Forward_iterator has a value type V from which we require to provide a iterator type V::const_iterator, to have V::value_type == NT. Note that Vector or std::vector<NT> fulfill these requirements.
| |
| |
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). Precondition: . |
|
|
returns the -th column of M
(an - vector). Precondition: . |
|
|
returns . Precondition: and . |
|
| |
swaps rows and . Precondition: and . | ||
|
| |
swaps columns and
. Precondition: and . | ||
|
| |
an iterator pointing to the
first entry of the th row. Precondition: . | ||
|
|
an iterator pointing beyond
the last entry of the th row. Precondition: . |
|
| |
an iterator pointing
to the first entry of the th column. Precondition: . | ||
|
| |
an iterator pointing
beyond the last entry of the th column. Precondition: . | ||
|
| 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. Precondition: M.row_dimension() == M1.row_dimension() and M.column_dimension() == M1.column_dimension(). |
|
|
Subtraction. Precondition: M.row_dimension() == M1.row_dimension() and M.column_dimension() == M1.column_dimension(). |
|
| Negation. |
|
|
Multiplication. Precondition: M.column_dimension() = M1.row_dimension(). |
|
|
Multiplication with
vector. Precondition: M.column_dimension() = vec.dimension(). |
|
| Multiplication of every entry with x. |
|
| Multiplication of every entry with x. |