35 #ifndef _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UPPERPROXY_H_
36 #define _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UPPERPROXY_H_
100 template<
typename MT >
113 template<
typename T >
114 struct BuiltinType {
typedef INVALID_TYPE Type; };
122 template<
typename T >
123 struct ComplexType {
typedef typename T::value_type Type; };
134 , ComplexType<RepresentedType>
157 template<
typename T >
inline const UniUpperProxy& operator+=(
const T& value )
const;
158 template<
typename T >
inline const UniUpperProxy& operator-=(
const T& value )
const;
159 template<
typename T >
inline const UniUpperProxy& operator*=(
const T& value )
const;
160 template<
typename T >
inline const UniUpperProxy& operator/=(
const T& value )
const;
167 inline void reset ()
const;
168 inline void clear ()
const;
169 inline void invert()
const;
171 inline RepresentedType
get()
const noexcept;
179 inline operator RepresentedType() const noexcept;
186 inline ValueType
real() const;
187 inline
void real( ValueType value ) const;
188 inline ValueType
imag() const;
189 inline
void imag( ValueType value ) const;
237 template< typename MT >
239 : value_ ( matrix( row,
column ) )
251 template<
typename MT >
278 template<
typename MT >
281 if( isRestricted() ) {
302 template<
typename MT >
303 template<
typename T >
306 if( isRestricted() ) {
327 template<
typename MT >
328 template<
typename T >
331 if( isRestricted() ) {
352 template<
typename MT >
353 template<
typename T >
356 if( isRestricted() ) {
377 template<
typename MT >
378 template<
typename T >
381 if( isRestricted() ) {
402 template<
typename MT >
403 template<
typename T >
406 if( isRestricted() ) {
432 template<
typename MT >
450 template<
typename MT >
469 template<
typename MT >
474 if( column_ < row_ ) {
489 template<
typename MT >
502 template<
typename MT >
505 return column_ <= row_;
523 template<
typename MT >
547 template<
typename MT >
550 return value_.real();
566 template<
typename MT >
569 if( isRestricted() ) {
573 value_.real( value );
586 template<
typename MT >
589 return value_.imag();
605 template<
typename MT >
608 if( isRestricted() ) {
612 value_.imag( value );
628 template<
typename MT >
631 template<
typename MT >
634 template<
typename MT >
637 template<
typename MT >
640 template<
typename MT >
643 template<
typename MT >
646 template<
typename MT >
649 template<
typename MT >
665 template<
typename MT >
683 template<
typename MT >
698 template<
typename MT >
716 template<
typename MT >
738 template<
typename MT >
758 template<
typename MT >
778 template<
typename MT >
798 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
size_t row_
Row index of the accessed matrix element.
Definition: UniUpperProxy.h:198
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:635
Access proxy for upper unitriangular matrices.The UniUpperProxy provides controlled access to the ele...
Definition: UniUpperProxy.h:101
Header file for auxiliary alias declarations.
Constraint on the data type.
MT::Reference ReferenceType
Reference type of the underlying matrix type.
Definition: UniUpperProxy.h:106
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:595
Constraint on the data type.
size_t column_
Column index of the accessed matrix element.
Definition: UniUpperProxy.h:199
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.
ElementType_< MT > RepresentedType
Type of the represented matrix element.
Definition: UniUpperProxy.h:130
Constraint on the data type.
DisableIf_< Or< IsComputation< MT >, IsTransExpr< MT > >, ColumnExprTrait_< MT > > column(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific column of the given matrix.
Definition: Column.h:126
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.
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:741
ReferenceType value_
Reference to the accessed matrix element.
Definition: UniUpperProxy.h:197
Header file for the clear shim.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
void reset() const
Reset the represented element to its default initial value.
Definition: UniUpperProxy.h:433
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
Constraint on the data type.
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 isRestricted() const noexcept
Returns whether the proxy represents a restricted matrix element..
Definition: UniUpperProxy.h:503
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
ValueType value_type
Value type of the represented complex element.
Definition: UniUpperProxy.h:137
const UniUpperProxy & operator=(const UniUpperProxy &uup) const
Copy assignment operator for UniUpperProxy.
Definition: UniUpperProxy.h:279
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:553
Header file for the isOne shim.
DisableIf_< Or< IsComputation< MT >, IsTransExpr< MT > >, RowExprTrait_< MT > > row(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific row of the given matrix.
Definition: Row.h:126
#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
UniUpperProxy(MT &matrix, size_t row, size_t column)
Initialization constructor for a UniUpperProxy.
Definition: UniUpperProxy.h:238
Utility type for generic codes.
Constraint on the data type.
Constraint on the data type.
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.
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniUpperProxy.h:587
Constraint on the data type.
Constraint on the data type.
void clear() const
Clearing the represented element.
Definition: UniUpperProxy.h:451
If_< IsComplex< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type ValueType
Value type of the represented complex element.
Definition: UniUpperProxy.h:135
void invert() const
In-place inversion of the represented element.
Definition: UniUpperProxy.h:470
#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
ValueType real() const
Returns the real part of the represented complex number.
Definition: UniUpperProxy.h:548
RepresentedType get() const noexcept
Returning the value of the accessed matrix element.
Definition: UniUpperProxy.h:490
Header file for the IsComplex type trait.
MatrixAccessProxy< This > Reference
Reference to a non-constant matrix value.
Definition: CompressedMatrix.h:2644
#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
#define BLAZE_CONSTRAINT_MUST_BE_MATRIX_TYPE(T)
Constraint on the data type.In case the given data type T is not a N-dimensional matrix type...
Definition: Matrix.h:61
Header file for the isReal shim.