Go to the documentation of this file.
106 class Array :
public std::vector<base>
137 fill(this->begin(),this->end(),fillvalue);
145 fill(this->begin(),this->end(),x);
169 this->resize(A.size());
170 copy( A.begin(), A.end(), this->begin() );
178 size_t s = this->size();
180 return static_cast<long>(s);
190 return std::vector<base>::operator[](n);
200 return std::vector<base>::operator[](n);
215 os << std::setw(3) << *i;
219 for ( ; i!=end; ++i )
221 os <<
" " << std::setw(3) << *i;
237 for ( ; xi!=xe ; ++xi )
256 for ( ; xi!=xe ; ++xi )
280 template <
class base>
305 template <
class base>
base & operator[](Index n)
Non-constant index operator.
Array< Numeric > ArrayOfNumeric
An array of Numeric.
Array< Tensor4 > ArrayOfTensor4
An array of Tensor4.
Array< Tensor3 > ArrayOfTensor3
An array of Tensor3.
Array< Vector > ArrayOfVector
An array of vectors.
cmplx FADDEEVA() w(cmplx z, double relerr)
This can be used to make arrays out of anything.
Array(Index n, const base &fillvalue)
Constructor filling with constant value.
Array< ArrayOfTensor3 > ArrayOfArrayOfTensor3
Array< ArrayOfIndex > ArrayOfArrayOfIndex
Array< Index > ArrayOfIndex
An array of Index.
const base & operator[](Index n) const
Constant index operator.
Array< Matrix > ArrayOfMatrix
An array of matrices.
Array< Tensor7 > ArrayOfTensor7
An array of Tensor7.
Array< Sparse > ArrayOfSparse
An array of sparse matrices.
Array & operator=(base x)
Assignment from base type (fill entire Array with this value).
Array< ArrayOfTensor4 > ArrayOfArrayOfTensor4
Array< Tensor5 > ArrayOfTensor5
An array of Tensor5.
void find_all(ArrayOfIndex &pos, const Array< base > &x, const base &w)
Find all occurances.
base max(const Array< base > &x)
Max function.
Array< ArrayOfVector > ArrayOfArrayOfVector
std::ostream & operator<<(std::ostream &os, const Array< base > &v)
Output operator.
Array & operator=(const Array< base > &A)
Assignment from another Array.
INDEX Index
The type to use for all integer numbers and indices.
Array(const Array< base > &A)
Index find_first(const Array< base > &x, const base &w)
Find first occurance.
Array< ArrayOfMatrix > ArrayOfArrayOfMatrix
Array< Tensor6 > ArrayOfTensor6
An array of Tensor6.
base min(const Array< base > &x)
Min function.
void copy(ConstIterator1D origin, const ConstIterator1D &end, Iterator1D target)
Copy data between begin and end to target.
Index nelem() const
Number of elements.
Array< ArrayOfTensor6 > ArrayOfArrayOfTensor6