Go to the documentation of this file.
89 return (r ==
x.nrows() && c ==
x.ncols());
104 return (p ==
x.npages() && r ==
x.nrows() && c ==
x.ncols());
121 return (b ==
x.nbooks() && p ==
x.npages() && r ==
x.nrows() &&
141 return (s ==
x.nshelves() && b ==
x.nbooks() && p ==
x.npages() &&
142 r ==
x.nrows() && c ==
x.ncols());
163 return (v ==
x.nvitrines() && s ==
x.nshelves() && b ==
x.nbooks() &&
164 p ==
x.npages() && r ==
x.nrows() && c ==
x.ncols());
187 return (l ==
x.nlibraries() && v ==
x.nvitrines() && s ==
x.nshelves() &&
188 b ==
x.nbooks() && p ==
x.npages() && r ==
x.nrows() &&
201 for (
Index i = 1; i <
x.nelem(); i++) {
202 if (!(
x[i] >=
x[i - 1]))
return false;
217 for (
Index i = 1; i <
x.nelem(); i++) {
218 if (!(
x[i] >
x[i - 1]))
return false;
238 for (
Index i = 1; i <
x.nelem(); i++) {
239 if (
x[i] <=
x[i - 1])
return false;
254 for (
Index i = 1; i <
x.nelem(); i++) {
255 if (!(
x[i] <
x[i - 1]))
return false;
278 for (
Index i = 1; i <
x.nelem(); ++i)
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);
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_diagonal(ConstMatrixView A)
Checks if a square matrix is diagonal.
A constant view of a Tensor7.
Vector y(Workspace &ws) noexcept
bool is_singular(ConstMatrixView A)
Checks if a square matrix is singular.
Index nrows() const
Returns the number of rows.
bool is_bool(const Index &x)
Checks if a variable equals 0 or 1.
bool is_size(ConstVectorView x, const Index &n)
Verifies that the size of x is l.
A constant view of a Tensor4.
This can be used to make arrays out of anything.
bool is_decreasing(ConstVectorView x)
Checks if a vector is sorted in reversed order and is strictly decreasing.
Index ncols() const
Returns the number of columns.
Index nelem() const
Returns the number of elements.
A constant view of a Tensor6.
NUMERIC Numeric
The type to use for all floating point numbers.
bool is_lon_cyclic(ConstVectorView grid, const Numeric &epsilon)
Check if the given longitude grid is cyclic.
A constant view of a Matrix.
bool is_increasing(ConstVectorView x)
Checks if a vector is sorted and strictly increasing.
Header file for logic.cc.
bool is_multiple(const Index &x, const Index &y)
Checks if an integer is a multiple of another integer.
A constant view of a Tensor3.
Vector x(Workspace &ws) noexcept
INDEX Index
The type to use for all integer numbers and indices.
bool is_unique(const ArrayOfIndex &x)
Checks if an ArrayOfIndex is unique, i.e., has no duplicate values.
bool is_sorted(ConstVectorView x)
Checks if a vector is sorted in ascending order.
A constant view of a Vector.
Contains sorting routines.
A constant view of a Tensor5.