blitz  Version 0.9
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions
RowMajor Class Reference

#include <matgen.h>

Inheritance diagram for RowMajor:
GeneralMatrix AsymmetricMatrix MatrixStructure

List of all members.

Public Types

typedef RowMajorIterator T_iterator

Public Member Functions

 RowMajor ()
 RowMajor (unsigned rows, unsigned cols)
unsigned coordToOffset (unsigned i, unsigned j) 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)
- Public Member Functions inherited from GeneralMatrix
 GeneralMatrix ()
 GeneralMatrix (unsigned rows, unsigned cols)
unsigned firstInRow (unsigned i) const
unsigned lastInRow (unsigned i) const
unsigned firstInCol (unsigned j) const
unsigned lastInCol (unsigned j) const
unsigned numElements () const
- Public Member Functions inherited from AsymmetricMatrix
 AsymmetricMatrix ()
 AsymmetricMatrix (unsigned rows, unsigned cols)
unsigned columns () const
unsigned cols () const
bool inRange (const unsigned i, const unsigned j) const
void resize (unsigned rows, unsigned cols)
unsigned rows () const

Member Typedef Documentation


Constructor & Destructor Documentation

RowMajor::RowMajor ( )
inline
RowMajor::RowMajor ( unsigned  rows,
unsigned  cols 
)
inline

Member Function Documentation

unsigned RowMajor::coordToOffset ( unsigned  i,
unsigned  j 
) const
inline

References AsymmetricMatrix::cols_, and j.

Referenced by get().

template<typename T_numtype >
T_numtype RowMajor::get ( const T_numtype *restrict  data,
unsigned  i,
unsigned  j 
) const
inline
template<typename T_numtype >
T_numtype& RowMajor::get ( T_numtype *restrict  data,
unsigned  i,
unsigned  j 
)
inline

The documentation for this class was generated from the following file: