35 #ifndef _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UNIUPPERVALUE_H_ 36 #define _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UNIUPPERVALUE_H_ 104 template<
typename MT >
106 :
public Proxy< UniUpperValue<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;
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:650
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.
void invert() const
In-place inversion of the uniupper value.
Definition: UniUpperValue.h:423
Header file for basic type definitions.
RepresentedType get() const noexcept
Access to the represented value.
Definition: UniUpperValue.h:439
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:497
bool isRestricted() const noexcept
Returns whether the value represents a restricted matrix element..
Definition: UniUpperValue.h:452
RepresentedType * value_
The represented value.
Definition: UniUpperValue.h:189
Constraint on the data type.
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:588
#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.
Constraint on the data type.
void clear() const
Clearing the uniupper value.
Definition: UniUpperValue.h:407
Header file for the Proxy class.
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:670
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:772
ValueType value_type
Value type of the represented complex element.
Definition: UniUpperValue.h:136
Header file for the clear shim.
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:250
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.
bool isnan(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is not a number.
Definition: DiagonalProxy.h:710
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:374
UniUpperValue(RepresentedType &value, bool diagonal)
Constructor for the UniUpperValue class.
Definition: UniUpperValue.h:227
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:608
Header file for the isOne shim.
typename If_< IsComplex< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type ValueType
Value type of the represented complex element.
Definition: UniUpperValue.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
BLAZE_ALWAYS_INLINE T1 & operator+=(SIMDPack< T1 > &lhs, const SIMDPack< T2 > &rhs)
Addition assignment operator for the addition of two SIMD packs.
Definition: BasicTypes.h:1357
Utility type for generic codes.
Constraint on the data type.
Constraint on the data type.
ElementType_< MT > RepresentedType
Type of the represented matrix element.
Definition: UniUpperValue.h:129
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:154
#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
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:690
Header file for the isDefault shim.
Constraint on the data type.
Constraint on the data type.
EnableIf_< IsNumeric< ST >, MT &> operator/=(DenseMatrix< MT, SO > &mat, ST scalar)
Division assignment operator for the division of a dense matrix by a scalar value ( )...
Definition: DenseMatrix.h:655
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniUpperValue.h:534
bool diagonal_
true in case the element is on the diagonal, false if not.
Definition: UniUpperValue.h:190
void reset() const
Reset the uniupper value to its default initial value.
Definition: UniUpperValue.h:389
#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.
Representation of a value within a sparse upper unitriangular matrix.The UniUpperValue class represen...
Definition: UniUpperValue.h:105
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:628
#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
BLAZE_ALWAYS_INLINE T1 & operator-=(SIMDPack< T1 > &lhs, const SIMDPack< T2 > &rhs)
Subtraction assignment operator for the subtraction of two SIMD packs.
Definition: BasicTypes.h:1375
EnableIf_< IsNumeric< ST >, MT &> operator*=(DenseMatrix< MT, SO > &mat, ST scalar)
Multiplication assignment operator for the multiplication of a dense matrix and a scalar value ( )...
Definition: DenseMatrix.h:593
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