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());