LA::NRMat_from1< T > Class Template Reference

#include <mat.h>

Inheritance diagram for LA::NRMat_from1< T >:

LA::NRMat< T >

List of all members.

Public Member Functions

 NRMat_from1 (const int n)
 NRMat_from1 (const NRMat< T > &rhs)
 NRMat_from1 (const int n, const int m)
 be able to convert the parent class transparently to this
 NRMat_from1 (const T &a, const int n, const int m)
 NRMat_from1 (const T *a, const int n, const int m)
const T & operator() (const int i, const int j) const
 get the const reference to the element with indices (i,j)
T & operator() (const int i, const int j)
 get the reference to the element with indices (i,j)
const T get_ij (const int i, const int j) const
 get the copy of the element with indices (i,j)


Detailed Description

template<typename T>
class LA::NRMat_from1< T >

implements NRMat<T> functionality with indexing from 1 all possible constructors have to be given explicitly, other stuff is inherited with exception of the operator() which differs

Member Function Documentation

template<typename T >
const T LA::NRMat_from1< T >::get_ij ( const int  i,
const int  j 
) const [inline]

get the copy of the element with indices (i,j)

for a given matrix $A$, determine the element with indices (i,j)

Parameters:
[in] i row number
[in] j col number
Returns:
const reference to $A_{i,j}$

Reimplemented from LA::NRMat< T >.

template<typename T >
T& LA::NRMat_from1< T >::operator() ( const int  i,
const int  j 
) [inline]

get the reference to the element with indices (i,j)

for a given matrix $A$, determine the element with indices (i,j)

Parameters:
[in] i row number
[in] j col number
Returns:
reference to $A_{i,j}$
See also:
NRMat<T>::count

Reimplemented from LA::NRMat< T >.

template<typename T >
const T& LA::NRMat_from1< T >::operator() ( const int  i,
const int  j 
) const [inline]

get the const reference to the element with indices (i,j)

for a given matrix $A$, determine the element with indices (i,j)

Parameters:
[in] i row number
[in] j col number
Returns:
const reference to $A_{i,j}$

Reimplemented from LA::NRMat< T >.


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


LA library home page http://www.pittnerovi.com/la .