ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
Public Member Functions | List of all members
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.


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