35 #ifndef _BLAZE_MATH_ADAPTORS_UNILOWERMATRIX_UNILOWERVALUE_H_ 36 #define _BLAZE_MATH_ADAPTORS_UNILOWERMATRIX_UNILOWERVALUE_H_ 104 template<
typename MT >
106 :
public Proxy< UniLowerValue<MT> >
113 template<
typename T >
114 struct BuiltinType {
using Type = INVALID_TYPE; };
122 template<
typename T >
123 struct ComplexType {
using Type =
typename T::value_type; };
133 , ComplexType<RepresentedType>
134 , BuiltinType<RepresentedType> >::Type;
151 template<
typename T >
inline UniLowerValue& operator+=(
const T& value );
152 template<
typename T >
inline UniLowerValue& operator-=(
const T& value );
153 template<
typename T >
inline UniLowerValue& operator*=(
const T& value );
154 template<
typename T >
inline UniLowerValue& operator/=(
const T& value );
161 inline void reset ()
const;
162 inline void clear ()
const;
163 inline void invert()
const;
226 template< typename MT >
249 template<
typename MT >
270 template<
typename MT >
271 template<
typename T >
292 template<
typename MT >
293 template<
typename T >
314 template<
typename MT >
315 template<
typename T >
336 template<
typename MT >
337 template<
typename T >
358 template<
typename MT >
359 template<
typename T >
388 template<
typename MT >
406 template<
typename MT >
422 template<
typename MT >
438 template<
typename MT >
451 template<
typename MT >
472 template<
typename MT >
496 template<
typename MT >
513 template<
typename MT >
533 template<
typename MT >
552 template<
typename MT >
575 template<
typename MT >
578 template<
typename MT >
581 template<
typename MT >
584 template<
bool RF,
typename MT >
587 template<
bool RF,
typename MT >
590 template<
bool RF,
typename MT >
593 template<
bool RF,
typename MT >
596 template<
typename MT >
611 template<
typename MT >
628 template<
typename MT >
643 template<
typename MT >
661 template<
bool RF,
typename MT >
666 return isDefault<RF>( value.
get() );
683 template<
bool RF,
typename MT >
688 return isReal<RF>( value.
get() );
703 template<
bool RF,
typename MT >
708 return isZero<RF>( value.
get() );
723 template<
bool RF,
typename MT >
728 return isOne<RF>( value.
get() );
743 template<
typename MT >
bool isReal(const DiagonalProxy< MT > &proxy)
Returns whether the matrix element represents a real number.
Definition: DiagonalProxy.h:653
Header file for the isnan shim.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_CONST(T)
Constraint on the data type.In case the given data type is a const-qualified type, a compilation error is created.
Definition: Const.h:79
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exception.This macro encapsulates the default way o...
Definition: Exception.h:235
Header file for auxiliary alias declarations.
Constraint on the data type.
Representation of a value within a sparse lower unitriangular matrix.The UniLowerValue class represen...
Definition: UniLowerValue.h:105
Header file for basic type definitions.
bool diagonal_
true in case the element is on the diagonal, false if not.
Definition: UniLowerValue.h:190
typename If< Condition, T1, T2 >::Type If_t
Auxiliary alias declaration for the If class template.The If_t alias declaration provides a convenien...
Definition: If.h:109
Proxy base class.The Proxy class is a base class for all proxy classes within the Blaze library that ...
Definition: Forward.h:51
Header file for the isZero shim.
void reset() const
Reset the unilower value to its default initial value.
Definition: UniLowerValue.h:389
Constraint on the data type.
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:591
void clear() const
Clearing the unilower value.
Definition: UniLowerValue.h:407
#define BLAZE_CONSTRAINT_MUST_NOT_BE_VOLATILE(T)
Constraint on the data type.In case the given data type is a volatile-qualified type, a compilation error is created.
Definition: Volatile.h:79
Header file for the invert shim.
RepresentedType * value_
The represented value.
Definition: UniLowerValue.h:189
Header file for the reset shim.
Constraint on the data type.
Header file for the Proxy class.
typename T::ElementType ElementType_t
Alias declaration for nested ElementType type definitions.The ElementType_t alias declaration provide...
Definition: Aliases.h:170
Constraint on the data type.
Constraint on the data type.
Constraint on the data type.
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:673
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:775
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the If class template.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_POINTER_TYPE(T)
Constraint on the data type.In case the given data type T is not a pointer type, a compilation error ...
Definition: Pointer.h:79
RepresentedType get() const noexcept
Access to the represented value.
Definition: UniLowerValue.h:439
Constraint on the data type.
bool isnan(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is not a number.
Definition: DiagonalProxy.h:713
Header file for the exception macros of the math module.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_UPPER_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is a upper triangular matrix type...
Definition: Upper.h:81
ValueType real() const
Returns the real part of the represented complex number.
Definition: UniLowerValue.h:497
decltype(auto) diagonal(Matrix< MT, SO > &matrix, RDAs... args)
Creating a view on the diagonal of the given matrix.
Definition: Band.h:375
ElementType_t< MT > RepresentedType
Type of the represented matrix element.
Definition: UniLowerValue.h:129
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:611
Header file for the isOne shim.
typename If_t< IsComplex_v< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type ValueType
Value type of the represented complex element.
Definition: UniLowerValue.h:134
#define BLAZE_CONSTRAINT_MUST_NOT_BE_SYMMETRIC_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is a symmetric matrix type, a compilation error is created.
Definition: Symmetric.h:79
Utility type for generic codes.
void invert() const
In-place inversion of the unilower value.
Definition: UniLowerValue.h:423
Constraint on the data type.
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_BE_NUMERIC_TYPE(T)
Constraint on the data type.In case the given data type T is not a numeric (integral or floating poin...
Definition: Numeric.h:61
#define BLAZE_CONSTRAINT_MUST_NOT_BE_LOWER_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is a lower triangular matrix type...
Definition: Lower.h:81
#define BLAZE_CONSTRAINT_MUST_NOT_BE_REFERENCE_TYPE(T)
Constraint on the data type.In case the given data type T is not a reference type, a compilation error is created.
Definition: Reference.h:79
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:693
Header file for the isDefault shim.
ValueType value_type
Value type of the represented complex element.
Definition: UniLowerValue.h:136
Constraint on the data type.
Constraint on the data type.
bool isRestricted() const noexcept
Returns whether the value represents a restricted matrix element..
Definition: UniLowerValue.h:452
UniLowerValue & operator=(const UniLowerValue &ulv)
Copy assignment operator for UniLowerValue.
Definition: UniLowerValue.h:250
#define BLAZE_CONSTRAINT_MUST_NOT_BE_EXPRESSION_TYPE(T)
Constraint on the data type.In case the given data type T is an expression (i.e. a type derived from ...
Definition: Expression.h:81
Header file for the IsComplex type trait.
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniLowerValue.h:534
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:631
#define BLAZE_CONSTRAINT_MUST_NOT_BE_HERMITIAN_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is an Hermitian matrix type, a compilation error is created.
Definition: Hermitian.h:79
UniLowerValue(RepresentedType &value, bool diagonal)
Constructor for the UniLowerValue class.
Definition: UniLowerValue.h:227
Header file for the isReal shim.
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a sparse, N-dimensional matrix type...
Definition: SparseMatrix.h:61
Header file for the clear shim.