46 for (ArrayOfIndex::const_iterator it = dim_sizes.begin();
47 it != dim_sizes.end(); it++)
56 const Index min_num_elem,
60 if (type.
nelem() > min_num_elem) dim_sizes.push_back(type.
nelem());
66 const Index min_num_elem,
70 if (type.
nrows() > min_num_elem) dim_sizes.push_back(type.
nrows());
71 if (type.
ncols() > min_num_elem) dim_sizes.push_back(type.
ncols());
77 const Index min_num_elem,
81 if (type.
npages() > min_num_elem) dim_sizes.push_back(type.
npages());
82 if (type.
nrows() > min_num_elem) dim_sizes.push_back(type.
nrows());
83 if (type.
ncols() > min_num_elem) dim_sizes.push_back(type.
ncols());
89 const Index min_num_elem,
93 if (type.
nbooks() > min_num_elem) dim_sizes.push_back(type.
nbooks());
94 if (type.
npages() > min_num_elem) dim_sizes.push_back(type.
npages());
95 if (type.
nrows() > min_num_elem) dim_sizes.push_back(type.
nrows());
96 if (type.
ncols() > min_num_elem) dim_sizes.push_back(type.
ncols());
102 const Index min_num_elem,
107 if (type.
nbooks() > min_num_elem) dim_sizes.push_back(type.
nbooks());
108 if (type.
npages() > min_num_elem) dim_sizes.push_back(type.
npages());
109 if (type.
nrows() > min_num_elem) dim_sizes.push_back(type.
nrows());
110 if (type.
ncols() > min_num_elem) dim_sizes.push_back(type.
ncols());
116 const Index min_num_elem,
122 if (type.
nbooks() > min_num_elem) dim_sizes.push_back(type.
nbooks());
123 if (type.
npages() > min_num_elem) dim_sizes.push_back(type.
npages());
124 if (type.
nrows() > min_num_elem) dim_sizes.push_back(type.
nrows());
125 if (type.
ncols() > min_num_elem) dim_sizes.push_back(type.
ncols());
131 const Index min_num_elem,
138 if (type.
nbooks() > min_num_elem) dim_sizes.push_back(type.
nbooks());
139 if (type.
npages() > min_num_elem) dim_sizes.push_back(type.
npages());
140 if (type.
nrows() > min_num_elem) dim_sizes.push_back(type.
nrows());
141 if (type.
ncols() > min_num_elem) dim_sizes.push_back(type.
ncols());
165 os <<
"The Vector is not also a Numeric";
166 throw std::runtime_error( os.str() );
180 if( i.
ncols() == 1 &&
186 os <<
"The Matrix is not also a Numeric";
187 throw std::runtime_error( os.str() );
201 if( i.
ncols() == 1 &&
208 os <<
"The Tensor3 is not also a Numeric";
209 throw std::runtime_error( os.str() );
223 if( i.
ncols() == 1 &&
231 os <<
"The Tensor4 is not also a Numeric";
232 throw std::runtime_error( os.str() );
246 if( i.
ncols() == 1 &&
255 os <<
"The Tensor5 is not also a Numeric";
256 throw std::runtime_error( os.str() );
270 if( i.
ncols() == 1 &&
280 os <<
"The Tensor6 is not also a Numeric";
281 throw std::runtime_error( os.str() );
295 if( i.
ncols() == 1 &&
306 os <<
"The Tensor7 is not also a Numeric";
307 throw std::runtime_error( os.str() );
339 os <<
"The Matrix of size (" << dim_sizes <<
") \n" 340 <<
"does not fit a Vector";
341 throw std::runtime_error(os.str());
370 os <<
"The Tensor3 of size (" << dim_sizes <<
") \n" 371 <<
"does not fit a Vector";
372 throw std::runtime_error(os.str());
401 os <<
"The Tensor4 of size (" << dim_sizes <<
") \n" 402 <<
"does not fit a Vector";
403 throw std::runtime_error(os.str());
432 os <<
"The Tensor5 of size (" << dim_sizes <<
") \n" 433 <<
"does not fit a Vector";
434 throw std::runtime_error(os.str());
463 os <<
"The Tensor6 of size (" << dim_sizes <<
") \n" 464 <<
"does not fit a Vector";
465 throw std::runtime_error(os.str());
494 os <<
"The Tensor7 of size (" << dim_sizes <<
") \n" 495 <<
"does not fit a Vector";
496 throw std::runtime_error(os.str());
529 os <<
"The Tensor3 of size (" << dim_sizes <<
") \n" 530 <<
"does not fit a Matrix";
531 throw std::runtime_error(os.str());
561 os <<
"The Tensor4 of size (" << dim_sizes <<
") \n" 562 <<
"does not fit a Matrix";
563 throw std::runtime_error(os.str());
593 os <<
"The Tensor5 of size (" << dim_sizes <<
") \n" 594 <<
"does not fit a Matrix";
595 throw std::runtime_error(os.str());
625 os <<
"The Tensor6 of size (" << dim_sizes <<
") \n" 626 <<
"does not fit a Matrix";
627 throw std::runtime_error(os.str());
657 os <<
"The Tensor7 of size (" << dim_sizes <<
") \n" 658 <<
"does not fit a Matrix";
659 throw std::runtime_error(os.str());
693 os <<
"The Tensor4 of size (" << dim_sizes <<
") \n" 694 <<
"does not fit a Tensor3";
695 throw std::runtime_error(os.str());
726 os <<
"The Tensor5 of size (" << dim_sizes <<
") \n" 727 <<
"does not fit a Tensor3";
728 throw std::runtime_error(os.str());
759 os <<
"The Tensor6 of size (" << dim_sizes <<
") \n" 760 <<
"does not fit a Tensor3";
761 throw std::runtime_error(os.str());
792 os <<
"The Tensor7 of size (" << dim_sizes <<
") \n" 793 <<
"does not fit a Tensor3";
794 throw std::runtime_error(os.str());
829 os <<
"The Tensor5 of size (" << dim_sizes <<
") \n" 830 <<
"does not fit a Tensor4";
831 throw std::runtime_error(os.str());
863 os <<
"The Tensor6 of size (" << dim_sizes <<
") \n" 864 <<
"does not fit a Tensor4";
865 throw std::runtime_error(os.str());
897 os <<
"The Tensor7 of size (" << dim_sizes <<
") \n" 898 <<
"does not fit a Tensor4";
899 throw std::runtime_error(os.str());
935 os <<
"The Tensor6 of size (" << dim_sizes <<
") \n" 936 <<
"does not fit a Tensor5";
937 throw std::runtime_error(os.str());
970 os <<
"The Tensor7 of size (" << dim_sizes <<
") \n" 971 <<
"does not fit a Tensor5";
972 throw std::runtime_error(os.str());
1009 os <<
"The Tensor7 of size (" << dim_sizes <<
") \n" 1010 <<
"does not fit a Tensor6";
1011 throw std::runtime_error(os.str());
Index npages() const
Returns the number of pages.
INDEX Index
The type to use for all integer numbers and indices.
Index nrows() const
Returns the number of rows.
Index nelem() const
Number of elements.
void resize(Index s, Index b, Index p, Index r, Index c)
Resize function.
const Numeric * get_c_array() const
Conversion to plain C-array.
Index nvitrines() const
Returns the number of vitrines.
Index nrows() const
Returns the number of rows.
Index npages() const
Returns the number of pages.
Index num_elem_from_dim_sizes(const ArrayOfIndex &dim_sizes)
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 nelem() const
Returns the number of elements.
This file contains the definition of Array.
Index ncols() const
Returns the number of columns.
const Numeric * get_c_array() const
Conversion to plain C-array.
Index nshelves() const
Returns the number of shelves.
void Reduce(Numeric &o, const Vector &i, const Verbosity &)
WORKSPACE METHOD: Reduce.
Index ncols() const
Returns the number of columns.
The declarations of all the exception classes.
Index nrows() const
Returns the number of rows.
NUMERIC Numeric
The type to use for all floating point numbers.
Index nlibraries() const
Returns the number of libraries.
const Numeric * get_c_array() const
Conversion to plain C-array.
const Numeric * get_c_array() const
Conversion to plain C-array.
void resize(Index p, Index r, Index c)
Resize function.
Index npages() const
Returns the number of pages.
This can be used to make arrays out of anything.
Index nshelves() const
Returns the number of shelves.
Index ncols() const
Returns the number of columns.
const Numeric * get_c_array() const
Conversion to plain C-array.
void resize(Index n)
Assignment operator from VectorView.
Index npages() const
Returns the number of pages.
Index nshelves() const
Returns the number of shelves.
Index npages() const
Returns the number of pages.
Index nbooks() const
Returns the number of books.
void resize(Index v, Index s, Index b, Index p, Index r, Index c)
Resize function.
void select_dims_by_size(ArrayOfIndex &dim_sizes, const Index min_num_elem, const Vector &type)
Index ncols() const
Returns the number of columns.
const Numeric * get_c_array() const
Conversion to plain C-array.
Index nvitrines() const
Returns the number of vitrines.
Index ncols() const
Returns the number of columns.
Index ncols() const
Returns the number of columns.
Index nrows() const
Returns the number of rows.
Index nbooks() const
Returns the number of books.
void resize(Index b, Index p, Index r, Index c)
Resize function.
void resize(Index r, Index c)
Resize function.
const Numeric * get_c_array() const
Conversion to plain C-array.
Index nbooks() const
Returns the number of books.