205 if (!(x[i] >= x[i - 1]))
return false;
221 if (!(x[i] > x[i - 1]))
return false;
242 if (x[i] <= x[i - 1])
return false;
258 if (!(x[i] < x[i - 1]))
return false;
282 for (
Index s = 0; s < i; ++s)
283 if (x[i] == x[s])
return false;
305 if ((temp = fabs(A(i, j))) > big) big = temp;
309 throw runtime_error(
"Matrix is singular.");
330 for (
Index j = 0; j < i; j++) {
371 grid[grid.
nelem() - 1] - grid[0], 360., epsilon);
376 if (x.
size() < 2)
return true;
377 const Numeric dx0 = x[1] - x[0];
378 if (dx0 <= 0)
return false;
381 if (
Numeric dxi = x[i] - x[i - 1];
382 dxi <= 0 or std::abs(dxi - dx0) >= epsilon) {
base max(const Array< base > &x)
Max function.
Index nelem() const ARTS_NOEXCEPT
A constant view of a Matrix.
Index nrows() const noexcept
Index ncols() const noexcept
A constant view of a Tensor3.
Index npages() const
Returns the number of pages.
Index nrows() const
Returns the number of rows.
Index ncols() const
Returns the number of columns.
A constant view of a Tensor4.
Index ncols() const noexcept
Index nrows() const noexcept
Index nbooks() const noexcept
Index npages() const noexcept
A constant view of a Tensor5.
Index nrows() const noexcept
Index ncols() const noexcept
Index npages() const noexcept
Index nbooks() const noexcept
Index nshelves() const noexcept
A constant view of a Tensor6.
Index nbooks() const noexcept
Index nvitrines() const noexcept
Index ncols() const noexcept
Index npages() const noexcept
Index nshelves() const noexcept
Index nrows() const noexcept
A constant view of a Tensor7.
Index ncols() const noexcept
Index npages() const noexcept
Index nrows() const noexcept
Index nlibraries() const noexcept
Index nvitrines() const noexcept
Index nshelves() const noexcept
Index nbooks() const noexcept
A constant view of a Vector.
Index nelem() const noexcept
Returns the number of elements.
Index size() const noexcept
#define ARTS_ASSERT(condition,...)
bool is_increasing(ConstVectorView x)
Checks if a vector is sorted and strictly increasing.
bool is_sorted(ConstVectorView x)
Checks if a vector is sorted in ascending order.
bool is_bool(const Index &x)
Checks if a variable equals 0 or 1.
bool is_decreasing(ConstVectorView x)
Checks if a vector is sorted in reversed order and is strictly decreasing.
bool is_diagonal(ConstMatrixView A)
Checks if a square matrix is diagonal.
bool is_size(ConstVectorView x, const Index &n)
Verifies that the size of x is l.
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_lon_cyclic(ConstVectorView grid, const Numeric &epsilon)
Check if the given longitude grid is cyclic.
bool is_multiple(const Index &x, const Index &y)
Checks if an integer is a multiple of another integer.
bool is_unique(const ArrayOfIndex &x)
Checks if an ArrayOfIndex is unique, i.e., has no duplicate values.
bool is_regularly_increasing_within_epsilon(ConstVectorView x, const Numeric epsilon)
bool is_singular(ConstMatrixView A)
Checks if a square matrix is singular.
Header file for logic.cc.
void abs(Sparse &A, const Sparse &B)
Absolute value of sparse matrix elements.
NUMERIC Numeric
The type to use for all floating point numbers.
INDEX Index
The type to use for all integer numbers and indices.
Contains sorting routines.