ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
|
A view onto a 1D array; used for rows/collumns of ND array. Can have a stride. More...
#include <Array.hpp>
Public Member Functions | |
ArrayView (T *data, std::size_t size, std::size_t stride=1) | |
std::size_t | size () const |
T & | operator[] (std::size_t i) |
T | operator[] (std::size_t i) const |
T & | at (std::size_t i) |
T | at (std::size_t i) const |
T & | operator() (std::size_t i) |
T | operator() (std::size_t i) const |
T & | front () |
T | front () const |
T & | back () |
T | back () const |
T * | data () |
auto | begin () |
Iterator to the beginning. | |
auto | cbegin () const |
auto | end () |
auto | cend () const |
auto | rbegin () |
auto | crbegin () const |
auto | rend () |
auto | crend () const |
A view onto a 1D array; used for rows/collumns of ND array. Can have a stride.