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 n × n initialized to the zero matrix.
| |||
| |||
creates an instance M of
type Matrix of dimension m × n initialized to the zero
matrix.
| |||
| |||
creates an instance
M of type Matrix of dimension
p.first × p.second initialized to the zero matrix.
| |||
| |||
creates an
instance M of type Matrix of dimension n × n
initialized to the identity matrix (times x).
| |||
| |||
creates an instance M
of type Matrix of dimension m × n initialized to the
matrix with x entries.
| |||
| |||
| |||
creates an
instance M of type Matrix. Let S be the ordered set of
n column-vectors of common dimension m as given by the iterator
range [first,last). M is initialized to an m × n
matrix with the columns as specified by S.
| |||
| |||
creates an instance
M of type Matrix. Let A be an array of n
column-vectors of common dimension m. M is initialized to an
m × n matrix with the columns as specified by A.
|
|
| returns n, the number of rows of M. | ||
|
| returns m, the number of columns of M. | ||
|
| returns (m,n), the dimension pair of M. | ||
|
|
returns the i-th row of M (an
m - vector).
| ||
|
|
returns the i-th column of M
(an n - vector).
| ||
|
|
returns Mi,j.
| ||
|
|
swaps rows i and j.
| ||
|
|
swaps columns i and
j.
| ||
|
|
an iterator pointing to the
first entry of the ith row.
| ||
|
|
an iterator pointing beyond
the last entry of the ith row.
| ||
|
|
an iterator pointing
to the first entry of the ith column.
| ||
|
|
an iterator pointing
beyond the last entry of the ith column.
| ||
|
| an iterator pointing to the first entry of M. | ||
|
| an iterator pointing beyond the last entry of M. |
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. |