35 #ifndef _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UNIUPPERVALUE_H_ 36 #define _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UNIUPPERVALUE_H_ 106 template<
typename MT >
108 :
public Proxy< UniUpperValue<MT> >
115 template<
typename T >
116 struct BuiltinType {
using Type = INVALID_TYPE; };
124 template<
typename T >
125 struct ComplexType {
using Type =
typename T::value_type; };
135 , ComplexType<RepresentedType>
136 , BuiltinType<RepresentedType> >::Type;
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 );
156 template<
typename T >
inline UniUpperValue& operator/=(
const T& value );
163 inline void reset ()
const;
164 inline void clear ()
const;
165 inline void invert()
const;
230 template< typename MT >
253 template<
typename MT >
274 template<
typename MT >
275 template<
typename T >
296 template<
typename MT >
297 template<
typename T >
318 template<
typename MT >
319 template<
typename T >
340 template<
typename MT >
341 template<
typename T >
362 template<
typename MT >
363 template<
typename T >
392 template<
typename MT >
410 template<
typename MT >
426 template<
typename MT >
442 template<
typename MT >
455 template<
typename MT >
476 template<
typename MT >
500 template<
typename MT >
517 template<
typename MT >
537 template<
typename MT >
556 template<
typename MT >
579 template<
typename MT >
582 template<
typename MT >
585 template<
typename MT >
588 template<
bool RF,
typename MT >
591 template<
bool RF,
typename MT >
594 template<
bool RF,
typename MT >
597 template<
bool RF,
typename MT >
600 template<
typename MT >
615 template<
typename MT >
632 template<
typename MT >
647 template<
typename MT >
665 template<
bool RF,
typename MT >
670 return isDefault<RF>( value.
get() );
687 template<
bool RF,
typename MT >
692 return isReal<RF>( value.
get() );
707 template<
bool RF,
typename MT >
712 return isZero<RF>( value.
get() );
727 template<
bool RF,
typename MT >
732 return isOne<RF>( value.
get() );
747 template<
typename MT >
bool isReal(const DiagonalProxy< MT > &proxy)
Returns whether the matrix element represents a real number.
Definition: DiagonalProxy.h:657
#define BLAZE_CONSTRAINT_MUST_NOT_BE_TRANSFORMATION_TYPE(T)
Constraint on the data type.In case the given data type T is a transformation expression (i....
Definition: Transformation.h:81
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,...
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
Constraint on the data type.
Header file for auxiliary alias declarations.
Constraint on the data type.
Constraint on the data type.
void invert() const
In-place inversion of the uniupper value.
Definition: UniUpperValue.h:427
Header file for basic type definitions.
typename If< Condition, T1, T2 >::Type If_t
Auxiliary alias template for the If class template.The If_t alias template provides a convenient shor...
Definition: If.h:109
RepresentedType get() const noexcept
Access to the represented value.
Definition: UniUpperValue.h:443
Proxy base class.The Proxy class is a base class for all proxy classes within the Blaze library that ...
Definition: Forward.h:51
ValueType real() const
Returns the real part of the represented complex number.
Definition: UniUpperValue.h:501
Header file for the isZero shim.
bool isRestricted() const noexcept
Returns whether the value represents a restricted matrix element..
Definition: UniUpperValue.h:456
#define BLAZE_CONSTRAINT_MUST_NOT_BE_COMPUTATION_TYPE(T)
Constraint on the data type.In case the given data type T is a computational expression (i....
Definition: Computation.h:81
RepresentedType * value_
The represented value.
Definition: UniUpperValue.h:191
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:595
#define BLAZE_CONSTRAINT_MUST_NOT_BE_VOLATILE(T)
Constraint on the data type.In case the given data type is a volatile-qualified type,...
Definition: Volatile.h:79
Header file for the invert shim.
ElementType_t< MT > RepresentedType
Type of the represented matrix element.
Definition: UniUpperValue.h:131
Header file for the reset shim.
Constraint on the data type.
void clear() const
Clearing the uniupper value.
Definition: UniUpperValue.h:411
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:677
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:779
ValueType value_type
Value type of the represented complex element.
Definition: UniUpperValue.h:138
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
UniUpperValue & operator=(const UniUpperValue &uuv)
Copy assignment operator for UniUpperValue.
Definition: UniUpperValue.h:254
Constraint on the data type.
bool isnan(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is not a number.
Definition: DiagonalProxy.h:717
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
decltype(auto) diagonal(Matrix< MT, SO > &matrix, RDAs... args)
Creating a view on the diagonal of the given matrix.
Definition: Band.h:377
UniUpperValue(RepresentedType &value, bool diagonal)
Constructor for the UniUpperValue class.
Definition: UniUpperValue.h:231
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:615
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,...
Definition: Symmetric.h:79
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: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,...
Definition: Reference.h:79
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:697
Header file for the isDefault shim.
Constraint on the data type.
Constraint on the data type.
#define BLAZE_CONSTRAINT_MUST_NOT_BE_VIEW_TYPE(T)
Constraint on the data type.In case the given data type T is a view type (i.e. a subvector,...
Definition: View.h:81
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniUpperValue.h:538
bool diagonal_
true in case the element is on the diagonal, false if not.
Definition: UniUpperValue.h:192
void reset() const
Reset the uniupper value to its default initial value.
Definition: UniUpperValue.h:393
typename If_t< IsComplex_v< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type ValueType
Value type of the represented complex element.
Definition: UniUpperValue.h:136
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
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:635
#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,...
Definition: Hermitian.h:79
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.