Xped
Loading...
Searching...
No Matches
Xped::TMatrix< Ttype > Struct Template Reference

#include <TMatrix.hpp>

Collaboration diagram for Xped::TMatrix< Ttype >:

Public Member Functions

 TMatrix ()=default
 
 TMatrix (const Pattern &pat, const std::string name="")
 
template<typename OtherTtype >
 TMatrix (const TMatrix< OtherTtype > &other)
 
std::size_t rows () const
 
std::size_t cols () const
 
std::size_t size () const
 
Ttype & operator() (const int row, const int col)
 
const Ttype & operator() (const int row, const int col) const
 
Ttype & operator[] (const std::size_t index)
 
const Ttype & operator[] (const std::size_t index) const
 
const Ttype & at (const std::size_t index) const
 
bool isChanged (const int row, const int col) const
 
void resetChange ()
 
void resize (const Pattern &pattern)
 
auto begin ()
 
auto end ()
 
auto cbegin () const
 
auto cend () const
 
void fill (const std::vector< Ttype > &tensors_in)
 
void setConstant (const Ttype &val)
 
Ttype sum () const
 
template<typename Ar >
void serialize (Ar &ar)
 
std::vector< Ttype > uncompressedVector () const
 

Public Attributes

Pattern pat
 

Constructor & Destructor Documentation

◆ TMatrix() [1/3]

template<typename Ttype >
Xped::TMatrix< Ttype >::TMatrix ( )
default

◆ TMatrix() [2/3]

template<typename Ttype >
Xped::TMatrix< Ttype >::TMatrix ( const Pattern pat,
const std::string  name = "" 
)
inlineexplicit
Here is the call graph for this function:

◆ TMatrix() [3/3]

template<typename Ttype >
template<typename OtherTtype >
Xped::TMatrix< Ttype >::TMatrix ( const TMatrix< OtherTtype > &  other)
inline
Here is the call graph for this function:

Member Function Documentation

◆ at()

template<typename Ttype >
const Ttype & Xped::TMatrix< Ttype >::at ( const std::size_t  index) const
inline

◆ begin()

template<typename Ttype >
auto Xped::TMatrix< Ttype >::begin ( )
inline
Here is the caller graph for this function:

◆ cbegin()

template<typename Ttype >
auto Xped::TMatrix< Ttype >::cbegin ( ) const
inline
Here is the caller graph for this function:

◆ cend()

template<typename Ttype >
auto Xped::TMatrix< Ttype >::cend ( ) const
inline
Here is the caller graph for this function:

◆ cols()

template<typename Ttype >
std::size_t Xped::TMatrix< Ttype >::cols ( ) const
inline

◆ end()

template<typename Ttype >
auto Xped::TMatrix< Ttype >::end ( )
inline
Here is the caller graph for this function:

◆ fill()

template<typename Ttype >
void Xped::TMatrix< Ttype >::fill ( const std::vector< Ttype > &  tensors_in)
inline

◆ isChanged()

template<typename Ttype >
bool Xped::TMatrix< Ttype >::isChanged ( const int  row,
const int  col 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()() [1/2]

template<typename Ttype >
Ttype & Xped::TMatrix< Ttype >::operator() ( const int  row,
const int  col 
)
inline
Here is the call graph for this function:

◆ operator()() [2/2]

template<typename Ttype >
const Ttype & Xped::TMatrix< Ttype >::operator() ( const int  row,
const int  col 
) const
inline
Here is the call graph for this function:

◆ operator[]() [1/2]

template<typename Ttype >
Ttype & Xped::TMatrix< Ttype >::operator[] ( const std::size_t  index)
inline

◆ operator[]() [2/2]

template<typename Ttype >
const Ttype & Xped::TMatrix< Ttype >::operator[] ( const std::size_t  index) const
inline

◆ resetChange()

template<typename Ttype >
void Xped::TMatrix< Ttype >::resetChange ( )
inline

◆ resize()

template<typename Ttype >
void Xped::TMatrix< Ttype >::resize ( const Pattern pattern)
inline
Here is the call graph for this function:

◆ rows()

template<typename Ttype >
std::size_t Xped::TMatrix< Ttype >::rows ( ) const
inline

◆ serialize()

template<typename Ttype >
template<typename Ar >
void Xped::TMatrix< Ttype >::serialize ( Ar &  ar)
inline

◆ setConstant()

template<typename Ttype >
void Xped::TMatrix< Ttype >::setConstant ( const Ttype &  val)
inline
Here is the caller graph for this function:

◆ size()

template<typename Ttype >
std::size_t Xped::TMatrix< Ttype >::size ( ) const
inline
Here is the caller graph for this function:

◆ sum()

template<typename Ttype >
Ttype Xped::TMatrix< Ttype >::sum ( ) const
inline
Here is the caller graph for this function:

◆ uncompressedVector()

template<typename Ttype >
std::vector< Ttype > Xped::TMatrix< Ttype >::uncompressedVector ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ pat

template<typename Ttype >
Pattern Xped::TMatrix< Ttype >::pat

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