35 #ifndef _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UNIUPPERVALUE_H_
36 #define _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UNIUPPERVALUE_H_
106 template<
typename MT >
114 template<
typename T >
115 struct BuiltinType {
typedef INVALID_TYPE Type; };
123 template<
typename T >
124 struct ComplexType {
typedef typename T::value_type Type; };
134 , ComplexType<RepresentedType>
143 inline UniUpperValue( RepresentedType& value,
bool diagonal );
152 template<
typename T >
inline UniUpperValue& operator+=(
const T& value );
153 template<
typename T >
inline UniUpperValue& operator-=(
const T& value );
154 template<
typename T >
inline UniUpperValue& operator*=(
const T& value );
155 template<
typename T >
inline UniUpperValue& operator/=(
const T& value );
162 inline void reset ()
const;
163 inline void clear ()
const;
164 inline void invert()
const;
166 inline RepresentedType
get()
const;
181 inline ValueType
real()
const;
182 inline void real( ValueType value )
const;
183 inline ValueType
imag()
const;
184 inline void imag( ValueType value )
const;
227 template<
typename MT >
230 , diagonal_( diagonal )
250 template<
typename MT >
257 *value_ = *uuv.value;
271 template<
typename MT >
272 template<
typename T >
293 template<
typename MT >
294 template<
typename T >
315 template<
typename MT >
316 template<
typename T >
337 template<
typename MT >
338 template<
typename T >
359 template<
typename MT >
360 template<
typename T >
389 template<
typename MT >
407 template<
typename MT >
423 template<
typename MT >
439 template<
typename MT >
452 template<
typename MT >
473 template<
typename MT >
497 template<
typename MT >
500 return value_->real();
514 template<
typename MT >
517 if( isRestricted() ) {
521 value_->real( value );
534 template<
typename MT >
537 return value_->imag();
553 template<
typename MT >
556 if( isRestricted() ) {
560 value_->imag( value );
576 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 >
598 template<
typename MT >
601 template<
typename MT >
618 template<
typename MT >
624 return conj( (~value).
get() );
638 template<
typename MT >
655 template<
typename MT >
670 template<
typename MT >
688 template<
typename MT >
710 template<
typename MT >
730 template<
typename MT >
750 template<
typename MT >
770 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:116
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exceptionThis macro encapsulates the default way of...
Definition: Exception.h:187
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:609
Constraint on the data type.
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
Header file for basic type definitions.
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:569
RepresentedType * value_
The represented value.
Definition: UniUpperValue.h:190
Constraint on the data type.
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:507
#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:116
Header file for the invert shim.
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:547
Constraint on the data type.
Constraint on the data type.
ValueType value_type
Value type of the represented complex element.
Definition: UniUpperValue.h:137
ConjExprTrait< typename DiagonalProxy< MT >::RepresentedType >::Type conj(const DiagonalProxy< MT > &proxy)
Computing the complex conjugate of the represented element.
Definition: DiagonalProxy.h:487
ValueType real() const
Returns the real part of the represented complex number.
Definition: UniUpperValue.h:498
Constraint on the data type.
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:767
Header file for the clear shim.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
Header file for the If class template.
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniUpperValue.h:535
#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:116
UniUpperValue & operator=(const UniUpperValue &uuv)
Copy assignment operator for UniUpperValue.
Definition: UniUpperValue.h:251
Header file for the isZero shim.
Constraint on the data type.
RepresentedType get() const
Access to the represented value.
Definition: UniUpperValue.h:440
bool isnan(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is not a number.
Definition: DiagonalProxy.h:629
#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:118
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2586
UniUpperValue(RepresentedType &value, bool diagonal)
Constructor for the UniUpperValue class.
Definition: UniUpperValue.h:228
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:527
Header file for the isOne shim.
Header file for the conjugate shim.
Evaluation of the return type of a complex conjugate expression.Via this type trait it is possible to...
Definition: ConjExprTrait.h:87
#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:116
Utility type for generic codes.
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:79
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:118
#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:116
Header file for the isDefault shim.
Constraint on the data type.
Constraint on the data type.
bool isRestricted() const
Returns whether the value represents a restricted matrix element..
Definition: UniUpperValue.h:453
MT::ElementType RepresentedType
Type of the represented matrix element.
Definition: UniUpperValue.h:130
bool diagonal_
true in case the element is on the diagonal, false if not.
Definition: UniUpperValue.h:191
Header file for the IsRowMajorMatrix type trait.
If< IsComplex< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type::Type ValueType
Value type of the represented complex element.
Definition: UniUpperValue.h:135
#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:118
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:589
void invert() const
In-place inversion of the uniupper value.
Definition: UniUpperValue.h:424
Header file for the IsComplex type trait.
Representation of a value within a sparse upper unitriangular matrix.The UniUpperValue class represen...
Definition: UniUpperValue.h:107
#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:116
void reset() const
Reset the uniupper value to its default initial value.
Definition: UniUpperValue.h:390
Header file for exception macros.
Header file for the ConjExprTrait class template.
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:79
void clear() const
Clearing the uniupper value.
Definition: UniUpperValue.h:408