A subclass of the NTL::Mat<T>
class.
More...
#include <latticetester/ntlwrap.h>
Inherits Mat< T >.
|
| matrix () |
| Empty constructor. More...
|
|
| matrix (const Mat< T > &a) |
| Copy constructor. More...
|
|
| matrix (size_type size1, size_type size2) |
| Allocation constructor. More...
|
|
void | resize (size_type size1, size_type size2) |
| Set the matrix dimensions to size1 \(\times\)size2 . More...
|
|
void | clear () |
| Releases space and sets the matrix this size \(0\times 0\). More...
|
|
size_type | size1 () const |
| Returns the number of rows of the matrix. More...
|
|
size_type | size2 () const |
| Returns the number of columns of the matrix. More...
|
|
T & | operator() (size_type i, size_type j) |
| Overload to change the indexation reference for (i,j) operator to start from 0. More...
|
|
template<typename T>
class NTL::matrix< T >
A subclass of the NTL::Mat<T>
class.
It extends its parent with a few methods and overloads a few others with more compatible defaults.
◆ matrix() [1/3]
◆ matrix() [2/3]
Copy constructor.
Creates a new matrix that is a copy of a.
- Parameters
-
◆ matrix() [3/3]
Allocation constructor.
Creates and allocates a size1
\(\times\)size2
matrix, initializing the elements T with their default constructor.
- Parameters
-
size1 | Height of the matrix |
size2 | Width of the matrix |
◆ clear()
Releases space and sets the matrix this size \(0\times 0\).
This uses NTL::Mat<T>::kill()
.
◆ operator()()
template<typename T>
T& NTL::matrix< T >::operator() |
( |
size_type |
i, |
|
|
size_type |
j |
|
) |
| |
|
inline |
Overload to change the indexation reference for (i,j) operator to start from 0.
In NTL::Vec<T> the (i,j) operator starts from 1 which is not compatible with boost.
◆ resize()
template<typename T>
void NTL::matrix< T >::resize |
( |
size_type |
size1, |
|
|
size_type |
size2 |
|
) |
| |
|
inline |
Set the matrix dimensions to size1
\(\times\)size2
.
This uses NTL::Mat<T>::SetDims(size1, size2)
.
- Parameters
-
size1 | New height of the matrix. |
size2 | New width of the matrix. |
◆ size1()
Returns the number of rows of the matrix.
◆ size2()
Returns the number of columns of the matrix.
The documentation for this class was generated from the following file:
- include/latticetester/ntlwrap.h