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 nelem() const ARTS_NOEXCEPT
Number of elements.
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.
#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_singular(ConstMatrixView A)
Checks if a square matrix is singular.
Header file for logic.cc.
NUMERIC Numeric
The type to use for all floating point numbers.
INDEX Index
The type to use for all integer numbers and indices.
constexpr Numeric l(const Index p0, const Index n, const Numeric x, const SortedVectorType &xi, const Index j, const std::pair< Numeric, Numeric > cycle={ -180, 180}) noexcept
Contains sorting routines.