blitz Version 0.9
|
#include <mattoep.h>
Public Types | |
typedef ToeplitzIterator | T_iterator |
Public Member Functions | |
Toeplitz () | |
Toeplitz (unsigned rows, unsigned cols) | |
unsigned | columns () const |
unsigned | coordToOffset (unsigned i, unsigned j) const |
unsigned | firstInRow (unsigned i) const |
template<typename T_numtype > | |
T_numtype | get (const T_numtype *restrict data, unsigned i, unsigned j) const |
template<typename T_numtype > | |
T_numtype & | get (T_numtype *restrict data, unsigned i, unsigned j) |
unsigned | lastInRow (const unsigned) const |
unsigned | firstInCol (const unsigned) const |
unsigned | lastInCol (const unsigned) const |
bool | inRange (const unsigned i, const unsigned j) const |
unsigned | numElements () const |
unsigned | rows () const |
void | resize (const unsigned rows, const unsigned cols) |
Private Attributes | |
unsigned | rows_ |
unsigned | cols_ |
typedef ToeplitzIterator Toeplitz::T_iterator |
Toeplitz::Toeplitz | ( | ) | [inline] |
Toeplitz::Toeplitz | ( | unsigned | rows, |
unsigned | cols | ||
) | [inline] |
unsigned Toeplitz::columns | ( | ) | const [inline] |
Reimplemented from AsymmetricMatrix.
References cols_.
unsigned Toeplitz::coordToOffset | ( | unsigned | i, |
unsigned | j | ||
) | const [inline] |
unsigned Toeplitz::firstInCol | ( | const unsigned | ) | const [inline] |
Reimplemented from GeneralMatrix.
unsigned Toeplitz::firstInRow | ( | unsigned | i | ) | const [inline] |
Reimplemented from GeneralMatrix.
T_numtype Toeplitz::get | ( | const T_numtype *restrict | data, |
unsigned | i, | ||
unsigned | j | ||
) | const [inline] |
References coordToOffset(), i, inRange(), and j.
T_numtype& Toeplitz::get | ( | T_numtype *restrict | data, |
unsigned | i, | ||
unsigned | j | ||
) | [inline] |
References coordToOffset(), i, inRange(), and j.
bool Toeplitz::inRange | ( | const unsigned | i, |
const unsigned | j | ||
) | const [inline] |
Reimplemented from AsymmetricMatrix.
Referenced by coordToOffset(), and get().
unsigned Toeplitz::lastInCol | ( | const unsigned | ) | const [inline] |
Reimplemented from GeneralMatrix.
References rows_.
unsigned Toeplitz::lastInRow | ( | const unsigned | ) | const [inline] |
Reimplemented from GeneralMatrix.
References cols_.
unsigned Toeplitz::numElements | ( | ) | const [inline] |
Reimplemented from GeneralMatrix.
void Toeplitz::resize | ( | const unsigned | rows, |
const unsigned | cols | ||
) | [inline] |
Reimplemented from AsymmetricMatrix.
References AsymmetricMatrix::cols(), cols_, rows(), and rows_.
unsigned Toeplitz::rows | ( | ) | const [inline] |
unsigned Toeplitz::cols_ [private] |
Reimplemented from AsymmetricMatrix.
Referenced by columns(), inRange(), lastInRow(), numElements(), and resize().
unsigned Toeplitz::rows_ [private] |
Reimplemented from AsymmetricMatrix.
Referenced by inRange(), lastInCol(), numElements(), resize(), and rows().