#include <nmatrix.h>
Inheritance diagram for regina::NMatrixRing< T >:
Public Member Functions | |
NMatrixRing (unsigned long rows, unsigned long cols) | |
Creates a new matrix of the given size. | |
NMatrixRing (const NMatrix< T > &cloneMe) | |
Creates a new matrix that is a clone of the given matrix. | |
void | makeIdentity () |
Turns this matrix into an identity matrix. | |
void | addRow (unsigned long source, unsigned long dest) |
Adds the given source row to the given destination row. | |
void | addRow (unsigned long source, unsigned long dest, T copies) |
Adds the given number of copies of the given source row to the given destination row. | |
void | addCol (unsigned long source, unsigned long dest) |
Adds the given source column to the given destination column. | |
void | addCol (unsigned long source, unsigned long dest, T copies) |
Adds the given number of copies of the given source column to the given destination column. | |
void | multRow (unsigned long row, T factor) |
Multiplies the given row by the given factor. | |
void | multCol (unsigned long column, T factor) |
Multiplies the given column by the given factor. | |
NMatrixRing< T > * | operator * (const NMatrixRing< T > &other) const |
Multiplies this by the given matrix. | |
Static Public Attributes | |
T | zero |
Zero in the underlying ring. | |
T | one |
One (the multiplicative identity) in the underlying ring. |
=
) operator.
An element t of type T can be written to an output stream out using the standard expression out << t
.
Type T provides binary operators +
and *
and unary operators +=
and *=
.
Type T has a long integer constructor. That is, if a
is of type T, then a
can be initialised to a long integer l
using a(l)
. Here the value 1 refers to the multiplicative identity in the ring T.
|
Creates a new matrix of the given size. All entries will be initialised using their default constructors.
|
|
Creates a new matrix that is a clone of the given matrix.
|
|
Adds the given number of copies of the given source column to the given destination column. Note that copies is passed by value in case it is an element of the row to be changed.
|
|
Adds the given source column to the given destination column.
|
|
Adds the given number of copies of the given source row to the given destination row. Note that copies is passed by value in case it is an element of the row to be changed.
|
|
Adds the given source row to the given destination row.
|
|
Turns this matrix into an identity matrix.
This matrix need not be square; after this routine it will have |
|
Multiplies the given column by the given factor. Note that factor is passed by value in case it is an element of the row to be changed.
|
|
Multiplies the given row by the given factor. Note that factor is passed by value in case it is an element of the row to be changed.
|
|
Multiplies this by the given matrix.
|