Go to the documentation of this file.
49 if( index >= arr.
nelem() )
52 os <<
"The index " << index
53 <<
" is outside the range of the array.";
54 throw runtime_error( os.str() );
72 if( index >= aoaoi.
nelem() )
75 os <<
"The index " << index
76 <<
" is outside the range of the Array.";
77 throw runtime_error( os.str() );
81 aoi.resize( aoaoi[index].nelem() );
96 if( index >= v.
nelem() )
99 os <<
"The index " << index
100 <<
" is outside the range of the Vector.";
101 throw runtime_error( os.str() );
119 if( index >= t3.
npages() )
122 os <<
"The index " << index
123 <<
" is outside the page range of the Tensor3.";
124 throw runtime_error( os.str() );
142 if( index >= t4.
nbooks() )
145 os <<
"The index " << index
146 <<
" is outside the book range of the Tensor4.";
147 throw runtime_error( os.str() );
169 os <<
"The index " << index
170 <<
"is outside the shelf range of the Tensor5.";
171 throw runtime_error( os.str() );
194 if( index >= aagf.
nelem() )
197 os <<
"The index " << index
198 <<
" is outside the range of the ArrayOfArrayOfGriddedField3.";
199 throw runtime_error( os.str() );
203 agf.resize( aagf[index].nelem() );
222 if( index >= agf4.
nelem() )
225 os <<
"The index " << index
226 <<
" is outside the range of The ArrayOfGriddedField4.";
227 throw runtime_error( os.str() );
Implementation of gridded fields.
void resize(Index b, Index p, Index r, Index c)
Resize function.
Index nbooks() const
Returns the number of books.
The declarations of all the exception classes.
Index ncols() const
Returns the number of columns.
This file contains the definition of Array.
void resize(Index p, Index r, Index c)
Resize function.
Index npages() const
Returns the number of pages.
Index npages() const
Returns the number of pages.
This can be used to make arrays out of anything.
Index nelem() const
Returns the number of elements.
Index ncols() const
Returns the number of columns.
NUMERIC Numeric
The type to use for all floating point numbers.
Index npages() const
Returns the number of pages.
Index nbooks() const
Returns the number of books.
Index nrows() const
Returns the number of rows.
Index nrows() const
Returns the number of rows.
Index nshelves() const
Returns the number of shelves.
INDEX Index
The type to use for all integer numbers and indices.
Index nelem() const
Number of elements.