Diagonal Class Reference

#include <matdiag.h>

Inheritance diagram for Diagonal:
Inheritance graph
[legend]
Collaboration diagram for Diagonal:
Collaboration graph
[legend]

List of all members.

Public Types

typedef DiagonalIterator T_iterator

Public Member Functions

 Diagonal ()
 Diagonal (const unsigned size)
 Diagonal (const unsigned rows, const unsigned cols)
unsigned columns () const
unsigned coordToOffset (const unsigned i, const unsigned j) const
unsigned firstInRow (const unsigned i) const
template<typename T_numtype >
T_numtype get (const T_numtype *data, const unsigned i, const unsigned j) const
template<typename T_numtype >
T_numtype & get (T_numtype *data, const unsigned i, const unsigned j)
unsigned lastInRow (const unsigned i) const
unsigned firstInCol (const unsigned j) const
unsigned lastInCol (const unsigned j) const
int inRange (const unsigned i, const unsigned j) const
unsigned numElements () const
unsigned rows () const
void resize (const unsigned size)
void resize (const unsigned rows, const unsigned cols)

Private Attributes

unsigned size_

Member Typedef Documentation


Constructor & Destructor Documentation

Diagonal::Diagonal (  )  [inline]
Diagonal::Diagonal ( const unsigned  size  )  [inline]
Diagonal::Diagonal ( const unsigned  rows,
const unsigned  cols 
) [inline]

Member Function Documentation

unsigned Diagonal::columns (  )  const [inline]

References size_.

unsigned Diagonal::coordToOffset ( const unsigned  i,
const unsigned  j 
) const [inline]

References inRange().

Referenced by get().

unsigned Diagonal::firstInCol ( const unsigned  j  )  const [inline]
unsigned Diagonal::firstInRow ( const unsigned  i  )  const [inline]
template<typename T_numtype >
T_numtype& Diagonal::get ( T_numtype *  data,
const unsigned  i,
const unsigned  j 
) [inline]

References coordToOffset(), i, inRange(), and j.

template<typename T_numtype >
T_numtype Diagonal::get ( const T_numtype *  data,
const unsigned  i,
const unsigned  j 
) const [inline]

References coordToOffset(), i, inRange(), and j.

int Diagonal::inRange ( const unsigned  i,
const unsigned  j 
) const [inline]

References size_.

Referenced by coordToOffset(), and get().

unsigned Diagonal::lastInCol ( const unsigned  j  )  const [inline]
unsigned Diagonal::lastInRow ( const unsigned  i  )  const [inline]
unsigned Diagonal::numElements (  )  const [inline]

References size_.

void Diagonal::resize ( const unsigned  rows,
const unsigned  cols 
) [inline]

References size_.

void Diagonal::resize ( const unsigned  size  )  [inline]

References size_.

unsigned Diagonal::rows (  )  const [inline]

References size_.


Member Data Documentation

unsigned Diagonal::size_ [private]

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Tue Sep 15 12:43:00 2009 for blitz by  doxygen 1.6.1