202 if (!(x[
i] >= x[
i - 1]))
return false;
218 if (!(x[
i] > x[
i - 1]))
return false;
239 if (x[
i] <= x[
i - 1])
return false;
255 if (!(x[
i] < x[
i - 1]))
return false;
279 for (
Index s = 0; s <
i; ++s)
280 if (x[i] == x[s])
return false;
302 if ((temp = fabs(A(
i, j))) > big) big = temp;
306 throw runtime_error(
"Matrix is singular.");
327 for (
Index j = 0; j <
i; j++) {
371 grid[grid.
nelem() - 1] - grid[0], 360., epsilon);
Index npages() const
Returns the number of pages.
INDEX Index
The type to use for all integer numbers and indices.
bool is_lon_cyclic(ConstVectorView grid, const Numeric &epsilon)
Check if the given longitude grid is cyclic.
Index nrows() const
Returns the number of rows.
Index nelem() const
Number of elements.
A constant view of a Tensor7.
Index nvitrines() const
Returns the number of vitrines.
A constant view of a Tensor6.
bool is_increasing(ConstVectorView x)
Checks if a vector is sorted and strictly increasing.
bool is_multiple(const Index &x, const Index &y)
Checks if an integer is a multiple of another integer.
Index nrows() const
Returns the number of rows.
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 nelem() const
Returns the number of elements.
Contains sorting routines.
A constant view of a Tensor4.
bool is_unique(const ArrayOfIndex &x)
Checks if an ArrayOfIndex is unique, i.e., has no duplicate values.
Index ncols() const
Returns the number of columns.
Index nshelves() const
Returns the number of shelves.
bool is_same_within_epsilon(const Numeric &a, const Numeric &b, const Numeric &epsilon)
Check, if two numbers agree within a given epsilon.
bool is_sorted(ConstVectorView x)
Checks if a vector is sorted in ascending order.
Index ncols() const
Returns the number of columns.
Index nrows() const
Returns the number of rows.
A constant view of a Tensor5.
bool is_diagonal(ConstMatrixView A)
Checks if a square matrix is diagonal.
NUMERIC Numeric
The type to use for all floating point numbers.
Index nlibraries() const
Returns the number of libraries.
Header file for logic.cc.
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.
bool is_singular(ConstMatrixView A)
Checks if a square matrix is singular.
Index ncols() const
Returns the number of columns.
A constant view of a Tensor3.
A constant view of a Vector.
Index npages() const
Returns the number of pages.
Index nshelves() const
Returns the number of shelves.
A constant view of a Matrix.
Index npages() const
Returns the number of pages.
Index nbooks() const
Returns the number of books.
bool is_bool(const Index &x)
Checks if a variable equals 0 or 1.
Index ncols() const
Returns the number of columns.
bool is_decreasing(ConstVectorView x)
Checks if a vector is sorted in reversed order and is strictly decreasing.
bool is_size(ConstVectorView x, const Index &n)
Verifies that the size of x is l.
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.
Index nbooks() const
Returns the number of books.