ampsci
High-precision calculations for one- and two-valence atomic systems
LinAlg::View< T >

Proved a "view" onto an array. More...

Public Member Functions

 View (T *data, std::size_t start, std::size_t size, std::size_t stride)
 
std::size_t size () const
 
T & operator[] (std::size_t i)
 [] index access (with no range checking). [i][j] returns ith row, jth col
 
operator[] (std::size_t i) const
 As above, but const.
 
T & at (std::size_t i)
 () index access (with range checking). (i,j) returns ith row, jth col
 
at (std::size_t i) const
 As above, but const.
 
T & operator() (std::size_t i)
 () index access (with range checking). (i,j) returns ith row, jth col
 
operator() (std::size_t i) const
 As above, but const.
 
T * data ()
 

Detailed Description

template<typename T>
class LinAlg::View< T >

Proved a "view" onto an array.

Member Function Documentation

◆ operator[]() [1/2]

template<typename T >
T & LinAlg::View< T >::operator[] ( std::size_t  i)
inline

[] index access (with no range checking). [i][j] returns ith row, jth col

◆ operator[]() [2/2]

template<typename T >
T LinAlg::View< T >::operator[] ( std::size_t  i) const
inline

As above, but const.

◆ at() [1/2]

template<typename T >
T & LinAlg::View< T >::at ( std::size_t  i)
inline

() index access (with range checking). (i,j) returns ith row, jth col

◆ at() [2/2]

template<typename T >
T LinAlg::View< T >::at ( std::size_t  i) const
inline

As above, but const.

◆ operator()() [1/2]

template<typename T >
T & LinAlg::View< T >::operator() ( std::size_t  i)
inline

() index access (with range checking). (i,j) returns ith row, jth col

◆ operator()() [2/2]

template<typename T >
T LinAlg::View< T >::operator() ( std::size_t  i) const
inline

As above, but const.


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