|
| NMatrixInt (unsigned long rows, unsigned long cols) |
| Creates a new matrix of the given size. More...
|
|
| NMatrixInt (const NMatrixInt &cloneMe) |
| Creates a new matrix that is a clone of the given matrix. More...
|
|
void | divRowExact (unsigned long row, const NLargeInteger &divBy) |
| Divides all elements of the given row by the given integer. More...
|
|
void | divColExact (unsigned long col, const NLargeInteger &divBy) |
| Divides all elements of the given column by the given integer. More...
|
|
NLargeInteger | gcdRow (unsigned long row) |
| Computes the greatest common divisor of all elements of the given row. More...
|
|
NLargeInteger | gcdCol (unsigned long col) |
| Computes the greatest common divisor of all elements of the given column. More...
|
|
void | reduceRow (unsigned long row) |
| Reduces the given row by dividing all its elements by their greatest common divisor. More...
|
|
void | reduceCol (unsigned long col) |
| Reduces the given column by dividing all its elements by their greatest common divisor. More...
|
|
virtual void | writeTextShort (std::ostream &out) const |
| Writes this object in short text format to the given output stream. More...
|
|
virtual void | writeTextLong (std::ostream &out) const |
| Writes this object in long text format to the given output stream. More...
|
|
| NMatrixRing (unsigned long rows, unsigned long cols) |
| Creates a new matrix of the given size. More...
|
|
| NMatrixRing (const NMatrix< NLargeInteger > &cloneMe) |
| Creates a new matrix that is a clone of the given matrix. More...
|
|
void | makeIdentity () |
| Turns this matrix into an identity matrix. More...
|
|
bool | isIdentity () const |
| Determines whether this matrix is a square identity matrix. More...
|
|
void | addRow (unsigned long source, unsigned long dest) |
| Adds the given source row to the given destination row. More...
|
|
void | addRow (unsigned long source, unsigned long dest, NLargeIntegercopies) |
| Adds the given number of copies of the given source row to the given destination row. More...
|
|
void | addCol (unsigned long source, unsigned long dest) |
| Adds the given source column to the given destination column. More...
|
|
void | addCol (unsigned long source, unsigned long dest, NLargeIntegercopies) |
| Adds the given number of copies of the given source column to the given destination column. More...
|
|
void | multRow (unsigned long row, NLargeIntegerfactor) |
| Multiplies the given row by the given factor. More...
|
|
void | multCol (unsigned long column, NLargeIntegerfactor) |
| Multiplies the given column by the given factor. More...
|
|
std::auto_ptr< NMatrixRing
< NLargeInteger > > | operator* (const NMatrixRing< NLargeInteger > &other) const |
| Multiplies this by the given matrix, and returns the result. More...
|
|
std::auto_ptr< MatrixClass > | multiplyAs (const NMatrixRing< NLargeInteger > &other) const |
| Multiplies this by the given matrix, and returns a new matrix of subclass MatrixClass. More...
|
|
NLargeInteger | det () const |
| Evaluates the determinant of the matrix. More...
|
|
| NMatrix (unsigned long rows, unsigned long cols) |
| Creates a new matrix of the given size. More...
|
|
| NMatrix (const NMatrix &cloneMe) |
| Creates a new matrix that is a clone of the given matrix. More...
|
|
virtual | ~NMatrix () |
| Destroys this matrix. More...
|
|
void | initialise (const NLargeInteger &value) |
| Sets every entry in the matrix to the given value. More...
|
|
void | initialise (List allValues) |
| A Python-only routine that fills the matrix with the given set of elements. More...
|
|
unsigned long | rows () const |
| Returns the number of rows in this matrix. More...
|
|
unsigned long | columns () const |
| Returns the number of columns in this matrix. More...
|
|
NLargeInteger & | entry (unsigned long row, unsigned long column) |
| Returns the entry at the given row and column. More...
|
|
const NLargeInteger & | entry (unsigned long row, unsigned long column) const |
| Returns the entry at the given row and column. More...
|
|
bool | operator== (const NMatrix< NLargeInteger > &other) const |
| Determines whether this and the given matrix are identical. More...
|
|
bool | operator!= (const NMatrix< NLargeInteger > &other) const |
| Determines whether this and the given matrix are different. More...
|
|
virtual void | writeMatrix (std::ostream &out) const |
| Writes a complete representation of the matrix to the given output stream. More...
|
|
void | swapRows (unsigned long first, unsigned long second) |
| Swaps the elements of the two given rows in the matrix. More...
|
|
void | swapColumns (unsigned long first, unsigned long second) |
| Swaps the elements of the two given columns in the matrix. More...
|
|
| ShareableObject () |
| Default constructor that does nothing. More...
|
|
virtual | ~ShareableObject () |
| Default destructor that does nothing. More...
|
|
std::string | toString () const |
| Returns the output from writeTextShort() as a string. More...
|
|
std::string | toStringLong () const |
| Returns the output from writeTextLong() as a string. More...
|
|
Represents a matrix of arbitrary precision integers.
Calculations will be exact no matter how large the integers become.
Note that many important functions (such as entry()) are inherited from the superclasses NMatrix and NMatrixRing, and are not documented again here.
- Python:
- Most inherited member functions are implemented. Exceptions are noted in the documentation for each individual member function.