35 #ifndef _BLAZE_MATH_ADAPTORS_UNILOWERMATRIX_UNILOWERVALUE_H_
36 #define _BLAZE_MATH_ADAPTORS_UNILOWERMATRIX_UNILOWERVALUE_H_
104 template<
typename MT >
112 template<
typename T >
113 struct BuiltinType {
typedef INVALID_TYPE Type; };
121 template<
typename T >
122 struct ComplexType {
typedef typename T::value_type Type; };
132 , ComplexType<RepresentedType>
141 inline UniLowerValue( RepresentedType& value,
bool diagonal );
150 template<
typename T >
inline UniLowerValue& operator+=(
const T& value );
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 );
160 inline void reset ()
const;
161 inline void clear ()
const;
162 inline void invert()
const;
164 inline RepresentedType
get()
const noexcept;
172 inline operator RepresentedType() const noexcept;
179 inline ValueType
real() const;
180 inline
void real( ValueType value ) const;
181 inline ValueType
imag() const;
182 inline
void imag( ValueType value ) const;
225 template< typename MT >
228 , diagonal_( diagonal )
248 template<
typename MT >
269 template<
typename MT >
270 template<
typename T >
291 template<
typename MT >
292 template<
typename T >
313 template<
typename MT >
314 template<
typename T >
335 template<
typename MT >
336 template<
typename T >
357 template<
typename MT >
358 template<
typename T >
387 template<
typename MT >
405 template<
typename MT >
421 template<
typename MT >
437 template<
typename MT >
450 template<
typename MT >
471 template<
typename MT >
495 template<
typename MT >
512 template<
typename MT >
532 template<
typename MT >
551 template<
typename MT >
574 template<
typename MT >
577 template<
typename MT >
580 template<
typename MT >
583 template<
typename MT >
586 template<
typename MT >
589 template<
typename MT >
592 template<
typename MT >
595 template<
typename MT >
610 template<
typename MT >
627 template<
typename MT >
642 template<
typename MT >
660 template<
typename MT >
682 template<
typename MT >
702 template<
typename MT >
722 template<
typename MT >
742 template<
typename MT >
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
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:635
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:189
Proxy base class.The Proxy class is a base class for all proxy classes within the Blaze library that ...
Definition: Forward.h:51
bool isReal(const DiagonalProxy< MT > &proxy)
Returns whether the matrix element represents a real number.
Definition: DiagonalProxy.h:595
Constraint on the data type.
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:533
#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:188
Constraint on the data type.
Header file for the Proxy class.
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:573
Constraint on the data type.
Constraint on the data type.
If_< IsComplex< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type ValueType
Value type of the represented complex element.
Definition: UniLowerValue.h:133
Constraint on the data type.
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:741
Header file for the clear shim.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
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
bool isRestricted() const noexcept
Returns whether the value represents a restricted matrix element..
Definition: UniLowerValue.h:451
Header file for the isZero shim.
typename T::ElementType ElementType_
Alias declaration for nested ElementType type definitions.The ElementType_ alias declaration provides...
Definition: Aliases.h:163
Constraint on the data type.
ValueType value_type
Value type of the represented complex element.
Definition: UniLowerValue.h:135
bool isnan(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is not a number.
Definition: DiagonalProxy.h:655
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
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:553
Header file for the isOne shim.
#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
void invert() const
In-place inversion of the unilower value.
Definition: UniLowerValue.h:422
Utility type for generic codes.
Constraint on the data type.
Constraint on the data type.
ValueType real() const
Returns the real part of the represented complex number.
Definition: UniLowerValue.h:496
typename If< T1, T2, T3 >::Type If_
Auxiliary alias declaration for the If class template.The If_ alias declaration provides a convenient...
Definition: If.h:160
#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
Header file for the reset shim.
#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
Header file for the isDefault shim.
Constraint on the data type.
Constraint on the data type.
void reset() const
Reset the unilower value to its default initial value.
Definition: UniLowerValue.h:388
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniLowerValue.h:533
UniLowerValue & operator=(const UniLowerValue &ulv)
Copy assignment operator for UniLowerValue.
Definition: UniLowerValue.h:249
#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
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:615
Header file for the IsComplex type trait.
#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
ElementType_< MT > RepresentedType
Type of the represented matrix element.
Definition: UniLowerValue.h:128
RepresentedType get() const noexcept
Access to the represented value.
Definition: UniLowerValue.h:438
UniLowerValue(RepresentedType &value, bool diagonal)
Constructor for the UniLowerValue class.
Definition: UniLowerValue.h:226
Header file for the isReal shim.
void clear() const
Clearing the unilower value.
Definition: UniLowerValue.h:406
#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