32template<
typename T,
int R=RowsAtCompileTime,
int C=ColsAtCompileTime>
33 requires (std::is_arithmetic_v<T> && IsIntervalDomain<Scalar> && IsVectorOrRow<R,C>)
37 assert_release(!std::empty(l));
39 for(
const auto& li : l)
54template<
int R=RowsAtCompileTime,
int C=ColsAtCompileTime>
55 requires IsIntervalDomain<Scalar> && IsVectorOrRow<R,C>
56Matrix(std::initializer_list<std::initializer_list<double>> l)
57 :
Matrix<codac2::Interval,R,C>(R == 1 ? 1 : l.size(), C == 1 ? 1 : l.size())
59 assert_release(!std::empty(l));
61 for(
const auto& li : l)
76template<
int R=RowsAtCompileTime,
int C=ColsAtCompileTime>
77 requires IsIntervalDomain<Scalar> && IsVectorOrRow<R,C>
78Matrix(std::initializer_list<codac2::Interval> l)
79 :
Matrix<codac2::Interval,R,C>(R == 1 ? 1 : l.size(), C == 1 ? 1 : l.size())
81 assert_release(!std::empty(l));
83 for(
const auto& li : l)
99template<
int R=RowsAtCompileTime,
int C=ColsAtCompileTime>
100 requires IsIntervalDomain<Scalar> && IsVectorOrRow<R,C>
102 :
Matrix<codac2::Interval,R,C>(R == 1 ? 1 : n, C == 1 ? 1 : n, bounds)
104 assert_release(n > 0);
115template<
int R=RowsAtCompileTime,
int C=ColsAtCompileTime>
116 requires IsIntervalDomain<Scalar> && IsVectorOrRow<R,C>
117inline static auto empty(Index n)
119 assert_release(n >= 0);
Interval class, for representing closed and connected subsets of .
Definition codac2_Interval.h:49
static Interval empty()
Provides an empty interval.
Definition codac2_Interval_impl.h:551
Matrix(const Matrix< double, R, C > &lb, const Matrix< double, R, C > &ub)
Constructs an interval matrix from lower and upper bound matrices.
Definition codac2_Matrix_addons_IntervalMatrixBase.h:50
Matrix()=delete
Deleted default constructor to prevent default instantiation when either the number of rows or column...