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

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

◆ Array2DMatrix() [1/4]

template<class fT >
Array2DMatrix< fT >::Array2DMatrix ( int  sz0 = 1,
int  sz1 = 0 
)
inline

◆ Array2DMatrix() [2/4]

template<class fT >
Array2DMatrix< fT >::Array2DMatrix ( const Array2DMatrix< fT > &  oth)
inline

◆ Array2DMatrix() [3/4]

template<class fT >
Array2DMatrix< fT >::Array2DMatrix ( const Array2DImpl< fT > &  a2d)
inline

◆ Array2DMatrix() [4/4]

template<class fT >
Array2DMatrix< fT >::Array2DMatrix ( const Array2D< fT > &  a2d)
inline

Member Function Documentation

◆ add() [1/2]

template<class fT >
void Array2DMatrix< fT >::add ( const Array2DMatrix< fT > &  in)
inline

◆ add() [2/2]

template<class fT >
void Array2DMatrix< fT >::add ( fT  val)
inline

◆ get() [1/2]

template<class fT >
fT & Array2DMatrix< fT >::get ( int  i0,
int  i1 
)
inline

◆ get() [2/2]

template<class fT >
fT Array2DMatrix< fT >::get ( int  i0,
int  i1 
) const
inline

◆ getCholesky()

template<class fT >
bool Array2DMatrix< fT >::getCholesky ( Array2DMatrix< fT > &  out) const
inline

◆ getProduct() [1/2]

template<class fT >
void Array2DMatrix< fT >::getProduct ( const Array1DVector vin,
Array1DVector vout 
) const
inline

◆ getProduct() [2/2]

template<class fT >
void Array2DMatrix< fT >::getProduct ( const Array2DMatrix< fT > &  in,
Array2DMatrix< fT > &  out 
) const
inline

◆ getSum()

template<class fT >
void Array2DMatrix< fT >::getSum ( const Array2DMatrix< fT > &  in,
Array2DMatrix< fT > &  out 
) const
inline

◆ getTransposed()

template<class fT >
void Array2DMatrix< fT >::getTransposed ( Array2DMatrix< fT > &  out)
inline

◆ isEq()

template<class fT >
bool Array2DMatrix< fT >::isEq ( const Array2D< fT > &  a2d,
fT  eps = fT(1e-6) 
) const
inline

◆ multiply() [1/2]

template<class fT >
void Array2DMatrix< fT >::multiply ( const Array2DMatrix< fT > &  in)
inline

◆ multiply() [2/2]

template<class fT >
void Array2DMatrix< fT >::multiply ( fT  fac)
inline

◆ operator=() [1/3]

template<class fT >
Array2DMatrix& Array2DMatrix< fT >::operator= ( const Array2D< fT > &  a2d)
inline

◆ operator=() [2/3]

template<class fT >
Array2DMatrix& Array2DMatrix< fT >::operator= ( const Array2DImpl< fT > &  a2d)
inline

◆ operator=() [3/3]

template<class fT >
Array2DMatrix& Array2DMatrix< fT >::operator= ( const Array2DMatrix< fT > &  oth)
inline

◆ operator==()

template<class fT >
bool Array2DMatrix< fT >::operator== ( const Array2DMatrix< fT > &  oth) const
inline

◆ set()

template<class fT >
void Array2DMatrix< fT >::set ( int  i0,
int  i1,
fT  v 
)
inline

◆ setAll()

template<class fT >
void Array2DMatrix< fT >::setAll ( fT  v = fT(0))
inline

◆ setDiagonal()

template<class fT >
void Array2DMatrix< fT >::setDiagonal ( fT  v)
inline

◆ setToIdentity()

template<class fT >
void Array2DMatrix< fT >::setToIdentity ( )
inline

◆ size()

template<class fT >
int Array2DMatrix< fT >::size ( bool  dim1 = false) const
inline

◆ transpose()

template<class fT >
void Array2DMatrix< fT >::transpose
inline

Member Data Documentation

◆ a2d_

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

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