Go to the documentation of this file.
133 fill(this->begin(),this->end(),fillvalue);
141 fill(this->begin(),this->end(),x);
165 this->resize(A.size());
166 copy( A.begin(), A.end(), this->begin() );
174 size_t s = this->size();
176 return static_cast<long>(s);
186 return vector<base>::operator[](n);
196 return vector<base>::operator[](n);
215 for ( ; i!=end; ++i )
217 os <<
" " << setw(3) << *i;
233 for ( ; xi!=xe ; ++xi )
252 for ( ; xi!=xe ; ++xi )
276 template <
class base>
301 template <
class base>
ostream & operator<<(ostream &os, const Array< base > &v)
Output operator.
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.
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< 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 & 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