OpendTect-6_4  6.4
Public Member Functions | Public Attributes | List of all members
Array2DMatrix< fT > Class Template Reference

Matrix class based on Array2D. Initialized to 0. More...

Inheritance diagram for Array2DMatrix< fT >:
[legend]

Public Member Functions

 Array2DMatrix (int sz0=1, int sz1=0)
 
 Array2DMatrix (const Array2DMatrix &oth)
 
 Array2DMatrix (const Array2DImpl< fT > &a2d)
 
 Array2DMatrix (const Array2D< fT > &a2d)
 
Array2DMatrixoperator= (const Array2DMatrix &oth)
 
Array2DMatrixoperator= (const Array2DImpl< fT > &a2d)
 
Array2DMatrixoperator= (const Array2D< fT > &a2d)
 
bool operator== (const Array2DMatrix< fT > &oth) const
 
bool isEq (const Array2D< fT > &, fT eps=fT(1e-6)) const
 
int size (bool dim1=false) const
 
void set (int i0, int i1, fT v)
 
fT & get (int i0, int i1)
 
fT get (int i0, int i1) const
 
void setAll (fT v=fT(0))
 
void setDiagonal (fT)
 
void setToIdentity ()
 
void add (fT)
 
void add (const Array2DMatrix &)
 
void multiply (fT)
 
void multiply (const Array2DMatrix &)
 
void transpose ()
 
void getSum (const Array2DMatrix &, Array2DMatrix &) const
 
void getProduct (const Array1DVector &, Array1DVector &) const
 
void getProduct (const Array2DMatrix &, Array2DMatrix &) const
 
void getTransposed (Array2DMatrix &)
 
bool getCholesky (Array2DMatrix &) const
 

Public Attributes

Array2DImpl< fT > a2d_
 

Detailed Description

template<class fT>
class Array2DMatrix< fT >

Matrix class based on Array2D. Initialized to 0.

The general policy is to handle stupidities like dimension size errors with a pErrMsg, and do whatever seems to be reasonable then.

Constructor & Destructor Documentation

template<class fT>
Array2DMatrix< fT >::Array2DMatrix ( int  sz0 = 1,
int  sz1 = 0 
)
inline
template<class fT>
Array2DMatrix< fT >::Array2DMatrix ( const Array2DMatrix< fT > &  oth)
inline
template<class fT>
Array2DMatrix< fT >::Array2DMatrix ( const Array2DImpl< fT > &  a2d)
inline
template<class fT>
Array2DMatrix< fT >::Array2DMatrix ( const Array2D< fT > &  a2d)
inline

Member Function Documentation

template<class fT>
void Array2DMatrix< fT >::add ( fT  val)
inline
template<class fT>
void Array2DMatrix< fT >::add ( const Array2DMatrix< fT > &  in)
inline
template<class fT >
fT & Array2DMatrix< fT >::get ( int  i0,
int  i1 
)
inline
template<class fT>
fT Array2DMatrix< fT >::get ( int  i0,
int  i1 
) const
inline
template<class fT >
bool Array2DMatrix< fT >::getCholesky ( Array2DMatrix< fT > &  out) const
inline
template<class fT >
void Array2DMatrix< fT >::getProduct ( const Array1DVector vin,
Array1DVector vout 
) const
inline
template<class fT >
void Array2DMatrix< fT >::getProduct ( const Array2DMatrix< fT > &  in,
Array2DMatrix< fT > &  out 
) const
inline
template<class fT >
void Array2DMatrix< fT >::getSum ( const Array2DMatrix< fT > &  in,
Array2DMatrix< fT > &  out 
) const
inline
template<class fT >
void Array2DMatrix< fT >::getTransposed ( Array2DMatrix< fT > &  out)
inline
template<class fT>
bool Array2DMatrix< fT >::isEq ( const Array2D< fT > &  a2d,
fT  eps = fT(1e-6) 
) const
inline
template<class fT>
void Array2DMatrix< fT >::multiply ( fT  fac)
inline
template<class fT>
void Array2DMatrix< fT >::multiply ( const Array2DMatrix< fT > &  in)
inline
template<class fT>
Array2DMatrix& Array2DMatrix< fT >::operator= ( const Array2DMatrix< fT > &  oth)
inline
template<class fT>
Array2DMatrix& Array2DMatrix< fT >::operator= ( const Array2DImpl< fT > &  a2d)
inline
template<class fT>
Array2DMatrix& Array2DMatrix< fT >::operator= ( const Array2D< fT > &  a2d)
inline
template<class fT>
bool Array2DMatrix< fT >::operator== ( const Array2DMatrix< fT > &  oth) const
inline
template<class fT>
void Array2DMatrix< fT >::set ( int  i0,
int  i1,
fT  v 
)
inline
template<class fT>
void Array2DMatrix< fT >::setAll ( fT  v = fT(0))
inline
template<class fT>
void Array2DMatrix< fT >::setDiagonal ( fT  v)
inline
template<class fT>
void Array2DMatrix< fT >::setToIdentity ( )
inline
template<class fT >
int Array2DMatrix< fT >::size ( bool  dim1 = false) const
inline
template<class fT >
void Array2DMatrix< fT >::transpose ( )
inline

Member Data Documentation

template<class fT>
Array2DImpl<fT> Array2DMatrix< fT >::a2d_

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019