Loading [MathJax]/extensions/tex2jax.js
1.7.3
Geostatistics & Machine Learning toolbox | https://gstlearn.org
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MatrixT< T > Class Template Reference

#include <MatrixT.hpp>

Public Member Functions

 MatrixT (size_t nrow=0, size_t ncol=0, T defaultValue=T())
 
 MatrixT (const MatrixT &other)
 
MatrixToperator= (const MatrixT &other)
 
TgetRowPtr (size_t row)
 
Toperator() (size_t row, size_t col)
 
const Toperator() (size_t row, size_t col) const
 
void resize (size_t nrow, size_t ncol, T defaultValue=T())
 
void fill (const T &value)
 
size_t getSize () const
 
size_t getNRows () const
 
size_t getNCols () const
 
const std::vector< T > & getData () const
 

Constructor & Destructor Documentation

◆ MatrixT() [1/2]

template<typename T >
MatrixT< T >::MatrixT ( size_t  nrow = 0,
size_t  ncol = 0,
T  defaultValue = T() 
)
inline

◆ MatrixT() [2/2]

template<typename T >
MatrixT< T >::MatrixT ( const MatrixT< T > &  other)
inline

Member Function Documentation

◆ fill()

template<typename T >
void MatrixT< T >::fill ( const T value)
inline

◆ getData()

template<typename T >
const std::vector< T > & MatrixT< T >::getData ( ) const
inline

◆ getNCols()

template<typename T >
size_t MatrixT< T >::getNCols ( ) const
inline

◆ getNRows()

template<typename T >
size_t MatrixT< T >::getNRows ( ) const
inline

◆ getRowPtr()

template<typename T >
T * MatrixT< T >::getRowPtr ( size_t  row)
inline

◆ getSize()

template<typename T >
size_t MatrixT< T >::getSize ( ) const
inline

◆ operator()() [1/2]

template<typename T >
T & MatrixT< T >::operator() ( size_t  row,
size_t  col 
)
inline

◆ operator()() [2/2]

template<typename T >
const T & MatrixT< T >::operator() ( size_t  row,
size_t  col 
) const
inline

◆ operator=()

template<typename T >
MatrixT & MatrixT< T >::operator= ( const MatrixT< T > &  other)
inline

◆ resize()

template<typename T >
void MatrixT< T >::resize ( size_t  nrow,
size_t  ncol,
T  defaultValue = T() 
)
inline

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