21template <AnyMatrixSize MatrixSizeT_, ArithmeticValue ValueT_,
typename ImplementationT_>
47 static_assert(std::is_same_v<ImplementationT, typename Evaluate<AccessImplementation<ImplementationT>>
::type>,
48 "Unevaluated values cannot be assigned to. Evaluate them first.");
57 template <
typename T0,
typename... Ts>
72 static_assert(std::is_floating_point_v<ValueT>,
"Random values are only supported for floating point types.");
79 template <
int RowIdV_,
int ColIdV_>
81 static_assert(internal::RequireElementInRange<MatrixSizeT, RowIdV_, ColIdV_>::value);
107 return get(internal::vectorElementRowId<ThisT>(
id), internal::vectorElementColId<ThisT>(
id));
112 template <
int RowIdV_,
int ColIdV_,
typename ValueOtherT_>
114 static_assert(internal::RequireElementInRange<MatrixSizeT, RowIdV_, ColIdV_>::value);
115 return set(RowIdV_, ColIdV_, value);
120 template <
int IdV_,
typename ValueOtherT_>
127 template <
typename ValueOtherT_>
137 template <
typename ValueOtherT_>
138 ThisT&
set(
int rowId,
int colId, ValueOtherT_ value) {
140 "The common type of the element and the value type is not the value type, e.g. a double element with int values.");
147 template <
typename ValueOtherT_>
151 return set(internal::vectorElementRowId<ThisT>(
id), internal::vectorElementColId<ThisT>(
id), value);
169 template <
typename MatrixSizeOtherT_,
typename ValueOtherT_,
typename ImplementationOtherT_>
172 if constexpr (std::is_integral_v<ValueT> || std::is_integral_v<ValueOtherT_>) {
173 return *
this == other;
183 template <
int BlockRowIdV_,
int BlockColIdV_,
int BlockRowsV_,
int BlockColsV_>
194 template <
typename MatrixSizeOtherT_,
typename ValueOtherT_,
typename ImplementationOtherT_>
196 return typename InnerProduct<ThisT, ValuesWrapper<MatrixSizeOtherT_, ValueOtherT_, ImplementationOtherT_>>
::type(
202 template <
typename MatrixSizeOtherT_,
typename ValueOtherT_,
typename ImplementationOtherT_>
204 return typename OuterProduct<ThisT, ValuesWrapper<MatrixSizeOtherT_, ValueOtherT_, ImplementationOtherT_>>
::type(
210 template <
typename MatrixSizeOtherT_,
typename ValueOtherT_,
typename ImplementationOtherT_>
217 template <
typename MatrixSizeOtherT_,
typename ValueOtherT_,
typename ImplementationOtherT_>
241 template <
typename FunctionT_>
243 static_assert(std::is_same_v<std::invoke_result_t<const FunctionT_&, ValueT>,
ValueT>,
244 "The function must map a value of the value type to a value of the value type.");
260 if constexpr (std::is_same_v<typename Evaluate<ThisT>::type,
ThisT>) {
261 return std::move(*
this);
263 return std::as_const(*this).evaluate();
268 template <
typename MatrixSizeOtherT_,
typename ValueOtherT_,
typename ImplementationOtherT_>
273 static_assert(ConversionT::RowsMatchV,
"Number of rows do not match.");
274 static_assert(ConversionT::ColsMatchV,
"Number of cols do not match.");
278 template <
typename T0>
279 requires(!ArithmeticValue<std::remove_cvref_t<T0>>)
286 template <
typename T0,
typename... Ts>
288 static_assert(
sizeof...(Ts) + 1 == MatrixSizeT::NumElementsV,
"Number of arguments does not match size of matrix.");
291 "The common type of the element and the value type is not the value type, e.g. a double element with int values.");
293 if constexpr (
sizeof...(Ts) + 1 == MatrixSizeT::NumElementsV) {
294 ReserveMemory<ImplementationT_, MatrixSizeT_>::run(implementation_);
295 Initialize<ImplementationT_, HomogeneousTuple<MatrixSizeT::NumElementsV, ValueT>>::run(
296 implementation_,
static_cast<ValueT>(std::forward<T0>(t0)),
static_cast<ValueT>(std::forward<Ts>(
ts))...);
302 template <
typename ImplementationOtherT_>
303 static ImplementationT copyImplementation(ImplementationOtherT_&& other) {
304 if constexpr (std::is_lvalue_reference_v<ImplementationOtherT_> &&
305 std::is_same_v<std::remove_cvref_t<ImplementationOtherT_>,
ImplementationT>) {
306 return Copy<AccessImplementation<ImplementationT>>::value(other);
315template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_,
typename MatrixSizeOtherT_,
typename ValueOtherT_,
316 typename ImplementationOtherT_>
318 ValuesWrapper<MatrixSizeOtherT_, ValueOtherT_, ImplementationOtherT_>> {
325template <
typename... Xs,
typename... Ts>
328 using first = std::decay_t<std::tuple_element_t<0, std::tuple<Ts...>>>;
336template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
342template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_,
typename ValueOtherT_,
int RowsV_,
int ColsV_>
350template <
typename ValuesT_,
typename ValueT_>
353template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
358template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
363template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
364 typename ImplementationRhsT_>
366 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
372template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
373 typename ImplementationRhsT_>
374struct Difference<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
375 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
382template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
390template <
typename ValueLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
typename ImplementationRhsT_>
391struct Product<ValueLhsT_,
ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
392 using type =
typename Product<ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>, ValueLhsT_>
::type;
394template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_>
395struct Product<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>, ValueRhsT_> {
397 typename Product<AccessImplementation<ImplementationLhsT_>, ValueRhsT_>
::type>;
399template <
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_,
typename ImplementationRhsT_>
405 typename Product<AccessImplementation<ImplementationLhsT_>, ValueRhsT_>
::type>;
407template <
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
typename ImplementationRhsT_>
409 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
410 using type =
typename Product<ValueLhsT_, ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>>
::type;
412template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_,
typename ImplementationRhsT_>
413struct Product<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
417 typename Product<AccessImplementation<ImplementationLhsT_>, ValueRhsT_>
::type>;
419template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
420 typename ImplementationRhsT_>
421struct Product<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
422 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
428template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
429 typename ImplementationRhsT_>
430struct InnerProduct<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
431 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
438template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
439 typename ImplementationRhsT_>
440struct OuterProduct<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
441 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
448template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
449 typename ImplementationRhsT_>
451 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
457template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
458 typename ImplementationRhsT_>
460 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
467template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_>
468struct Division<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>, ValueRhsT_> {
470 typename Division<AccessImplementation<ImplementationLhsT_>, ValueRhsT_>
::type>;
472template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_,
typename ImplementationRhsT_>
473struct Division<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
477 typename Division<AccessImplementation<ImplementationLhsT_>, ValueRhsT_>
::type>;
479template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
480 typename ImplementationRhsT_>
481struct Division<
ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
482 ValuesWrapper<MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_>> {
488template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
497template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
499 static_assert(std::is_floating_point_v<ValueT_>,
500 "The inverse of an integer matrix is not an integer matrix. Use a floating-point value type.");
504template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
509template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_,
typename FunctionT_>
514template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_,
int BlockRowIdV_,
int BlockColIdV_,
int BlockRowsV_,
516struct Block<
ValuesWrapper<MatrixSizeT_, ValueT_, ImplementationT_>, BlockRowIdV_, BlockColIdV_, BlockRowsV_, BlockColsV_> {
522template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
527template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_,
typename... Args>
530template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
531 typename ImplementationRhsT_>
534 return typename Sum<ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
540template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
541 typename ImplementationRhsT_>
544 return sum(lhs, rhs);
547template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
548 typename ImplementationRhsT_>
551 return typename Difference<ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
557template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
558 typename ImplementationRhsT_>
564template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
570template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
575template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_>
577 return typename Product<ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>, ValueRhsT_>::type(
581template <
typename ValueLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
typename ImplementationRhsT_>
585template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
586 typename ImplementationRhsT_>
589 using Result =
typename Product<ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
592 if constexpr (std::is_same_v<MatrixSizeRhsT_, MatrixSize<1, 1>>) {
594 }
else if constexpr (std::is_same_v<MatrixSizeLhsT_, MatrixSize<1, 1>>) {
602template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_>
633template <
typename ValueLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
typename ImplementationRhsT_>
637template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
638 typename ImplementationRhsT_>
644template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
645 typename ImplementationRhsT_>
651template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
652 typename ImplementationRhsT_>
658template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_>
660 return typename Division<ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>, ValueRhsT_>::type(
664template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
665 typename ImplementationRhsT_>
668 using Result =
typename Division<ValuesWrapper<MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_>,
670 if constexpr (std::is_same_v<MatrixSizeRhsT_, MatrixSize<1, 1>>) {
678template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename ValueRhsT_>
682template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
683 typename ImplementationRhsT_>
689template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
690 typename ImplementationRhsT_>
697template <
typename MatrixSizeLhsT_,
typename ValueLhsT_,
typename ImplementationLhsT_,
typename MatrixSizeRhsT_,
typename ValueRhsT_,
698 typename ImplementationRhsT_>
701 return !(lhs == rhs);
704template <
typename MatrixSizeT_,
typename ValueT_,
typename ImplementationT_>
706 lhs << rhs.
evaluate().getImplementation();
Wrapper for the actual implementation of a value container.
ValuesWrapper(const ValuesWrapper &other)
Copies the values.
ThisT & set(ValueOtherT_ value)
auto get() const
The element in the row RowIdV_ and the column ColIdV_, which are checked at compile time.
auto inverse() const
The matrix inverse of a square matrix, like Eigen's MatrixBase::inverse().
auto dotProduct(const ValuesWrapper< MatrixSizeOtherT_, ValueOtherT_, ImplementationOtherT_ > &other) const
std::decay_t< ImplementationT_ > ImplementationT
ValuesWrapper & operator=(const ValuesWrapper &other)
Only evaluated values can be assigned to: an unevaluated value, e.g. the lazy sum of two matrices of ...
ValuesWrapper & operator=(ValuesWrapper &&other) noexcept
static ThisT random()
Random values, uniformly distributed in [-1, 1].
ImplementationT & implementation()
ThisT & set(ValueOtherT_ value)
Sets the element in the row RowIdV_ and the column ColIdV_, which are checked at compile time,...
auto evaluate() &&
Evaluated values of a temporary, e.g. of the result of an operation: if they are evaluated already,...
ValuesWrapper< MatrixSizeT, ValueT, ImplementationT > ThisT
auto get(int id) const
The element with the single index id of values of dimension 0 or 1, like get<IdV_>(),...
ThisT & setImplementation(const ImplementationT &implementation)
static ThisT zero()
Values that are all zero.
auto innerProduct(const ValuesWrapper< MatrixSizeOtherT_, ValueOtherT_, ImplementationOtherT_ > &other) const
operator typename GetValue< ThisT >::type() const
auto crossProduct(const ValuesWrapper< MatrixSizeOtherT_, ValueOtherT_, ImplementationOtherT_ > &other) const
ThisT & set(int rowId, int colId, ValueOtherT_ value)
Sets an element.
auto outerProduct(const ValuesWrapper< MatrixSizeOtherT_, ValueOtherT_, ImplementationOtherT_ > &other) const
auto get() const
The element with the single index IdV_ of values of dimension 0 or 1: the row of a column,...
auto cwiseFunction(const FunctionT_ &function) const
The function applied to every element, like Eigen's DenseBase::unaryExpr(): the values function(value...
ThisT & set(int id, ValueOtherT_ value)
Sets the element with the single index id of values of dimension 0 or 1, like set<IdV_>(value),...
bool isApprox(const ValuesWrapper< MatrixSizeOtherT_, ValueOtherT_, ImplementationOtherT_ > &other, const ValueT precision=Precision< ValueT >::value()) const
Whether the values are approximately equal to the other values: relatively, like Eigen's isApprox(),...
const ImplementationT & getImplementation() const
ValuesWrapper(ValuesWrapper &&other) noexcept
Moves the values.
auto get(int rowId, int colId) const
auto cwiseInverse() const
The elementwise reciprocal, like Eigen's ArrayBase::inverse() or MatrixBase::cwiseInverse().
ThisT & set(ValueOtherT_ value)
Sets the element with the single index IdV_ of values of dimension 0 or 1 (see get<IdV_>()),...
Any value matrix: a specialization of ValuesWrapper.
Whether constructing a Class from the arguments copies or moves it, i.e. whether they are a single Cl...
auto operator*(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValueRhsT_ rhs)
auto product(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValueRhsT_ rhs)
void initialize(ValuesWrapper< MatrixSizeT_, ValueT_, ImplementationT_ > &values, Args &&... args)
auto negation(const Quantities< ValuesT_, UnitsT_ > &rhs)
auto outerProduct(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs)
auto operator+(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs)
bool operator!=(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs)
std::ostream & operator<<(std::ostream &lhs, const Quantities< ValuesT_, UnitsT_ > &rhs)
constexpr bool isConvertedToValueType
Whether an arithmetic scalar of the type ScalarT_ is converted into the value type ValueT_: if their ...
auto operator-(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs)
typename Rebind< ValuesT_, ValueT_, 1, 1 >::type ScalarValues
Evaluated 1x1 values of the value matrix backend of ValuesT_, with the value type ValueT_: e....
auto innerProduct(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs)
Tag< FromImplementationArgsLabel > FromImplementationArgs
bool operator==(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs)
Tag< FromSimilarLabel > FromSimilar
auto division(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValueRhsT_ rhs)
auto difference(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs)
auto sum(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const Quantities< ValuesRhsT_, UnitsRhsT_ > &rhs)
auto operator/(const Quantities< ValuesLhsT_, UnitsLhsT_ > &lhs, const ValueRhsT_ rhs)
Type wrapper which is used to access traits partially specialized in the implementation header files.
ValuesWrapper< typename Block< MatrixSizeT_, BlockRowIdV_, BlockColIdV_, BlockRowsV_, BlockColsV_ >::type, ValueT_, typename Block< AccessImplementation< ImplementationT_ >, BlockRowIdV_, BlockColIdV_, BlockRowsV_, BlockColsV_ >::type > type
Element access of a matrix of a value matrix backend: get(impl, row, col) returns an element,...
static constexpr int value
ValuesWrapper< typename CrossProduct< MatrixSizeLhsT_, MatrixSizeRhsT_ >::type, typename Product< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename CrossProduct< AccessImplementation< ImplementationLhsT_ >, AccessImplementation< ImplementationRhsT_ > >::type > type
ValuesWrapper< MatrixSizeT_, ValueT_, typename CwiseFunction< AccessImplementation< ImplementationT_ >, FunctionT_ >::type > type
A function applied to every element of a matrix, like Eigen's DenseBase::unaryExpr(): value(impl,...
ValuesWrapper< MatrixSizeT_, ValueT_, typename CwiseInverse< AccessImplementation< ImplementationT_ > >::type > type
The elementwise reciprocal of a matrix, like Eigen's ArrayBase::inverse() or cwiseInverse().
ValuesWrapper< typename Difference< MatrixSizeLhsT_, MatrixSizeRhsT_ >::type, typename Difference< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Difference< AccessImplementation< ImplementationLhsT_ >, AccessImplementation< ImplementationRhsT_ > >::type > type
static constexpr int value
ValuesWrapper< typename Division< MatrixSizeLhsT_, MatrixSize< 1, 1 > >::type, typename Division< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Division< AccessImplementation< ImplementationLhsT_ >, ValueRhsT_ >::type > type
ValuesWrapper< MatrixSizeLhsT_, typename Division< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Division< AccessImplementation< ImplementationLhsT_ >, ValueRhsT_ >::type > type
ValuesWrapper< typename Division< MatrixSizeLhsT_, MatrixSizeRhsT_ >::type, typename Division< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Division< AccessImplementation< ImplementationLhsT_ >, AccessImplementation< ImplementationRhsT_ > >::type > type
typename Evaluate< typename InnerProduct< typename Transpose< ValuesWrapper< MatrixSizeLhsT_, ValueLhsT_, ImplementationLhsT_ > >::type, ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > >::type >::type type
ValuesWrapper< MatrixSizeT_, ValueT_, typename Evaluate< AccessImplementation< ImplementationT_ > >::type > type
typename IfThenElse< sizeof...(Ts)==1, typename IfThenElse< AnyValuesWrapper< first >, FromSimilar, FromImplementationArgs >::type, FromImplementationArgs >::type type
Trait to select one type or another depending on a boolean. Note that both types must be defined even...
ValuesWrapper< typename InnerProduct< MatrixSizeLhsT_, MatrixSizeRhsT_ >::type, typename Product< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename InnerProduct< AccessImplementation< ImplementationLhsT_ >, AccessImplementation< ImplementationRhsT_ > >::type > type
ValuesWrapper< typename Inverse< MatrixSizeT_ >::type, ValueT_, typename Inverse< AccessImplementation< ImplementationT_ > >::type > type
The inverse: the matrix inverse of a matrix, like Eigen's MatrixBase::inverse(), and the reciprocal o...
Whether T is a specialization of Template.
static constexpr bool ColsMatchV
static constexpr bool RowsMatchV
static constexpr bool value
Whether converting a From into a To passes the checks of the converting constructor of To,...
Moves a matrix of a value matrix backend: construct returns the moved matrix, assign moves it into an...
ValuesWrapper< MatrixSizeT_, ValueT_, typename Negation< AccessImplementation< ImplementationT_ > >::type > type
The negation is performed elementwise.
ValuesWrapper< typename OuterProduct< MatrixSizeLhsT_, MatrixSizeRhsT_ >::type, typename Product< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename OuterProduct< AccessImplementation< ImplementationLhsT_ >, AccessImplementation< ImplementationRhsT_ > >::type > type
static constexpr ValueT_ value()
typename Product< ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ >, ValueLhsT_ >::type type
ValuesWrapper< typename Product< MatrixSizeLhsT_, MatrixSize< 1, 1 > >::type, typename Product< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Product< AccessImplementation< ImplementationLhsT_ >, ValueRhsT_ >::type > type
ValuesWrapper< typename Product< MatrixSizeLhsT_, MatrixSizeRhsT_ >::type, typename Product< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Product< AccessImplementation< ImplementationLhsT_ >, AccessImplementation< ImplementationRhsT_ > >::type > type
ValuesWrapper< MatrixSizeLhsT_, typename Product< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Product< AccessImplementation< ImplementationLhsT_ >, ValueRhsT_ >::type > type
ValuesWrapper< typename Product< MatrixSize< 1, 1 >, MatrixSize< 1, 1 > >::type, typename Product< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Product< AccessImplementation< ImplementationLhsT_ >, ValueRhsT_ >::type > type
typename Product< ValueLhsT_, ValuesWrapper< MatrixSizeRhsT_, ValueRhsT_, ImplementationRhsT_ > >::type type
ValuesWrapper< MatrixSize< RowsV_, ColsV_ >, ValueOtherT_, typename Rebind< AccessImplementation< ImplementationT_ >, ValueOtherT_, RowsV_, ColsV_ >::type > type
The evaluated type of another value type and size, of the same backend as T: e.g. the 1x1 values of a...
Allocates a default constructed matrix of a value matrix backend for the size MatrixSizeT_: run(impl)...
static constexpr int value
ValuesWrapper< typename Sum< MatrixSizeLhsT_, MatrixSizeRhsT_ >::type, typename Sum< ValueType< ValueLhsT_ >, ValueType< ValueRhsT_ > >::type, typename Sum< AccessImplementation< ImplementationLhsT_ >, AccessImplementation< ImplementationRhsT_ > >::type > type
ValuesWrapper< typename Transpose< MatrixSizeT_ >::type, ValueT_, typename Transpose< AccessImplementation< ImplementationT_ > >::type > type
Wrapper for partial specializations of trait for values types.