35 #ifndef _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UPPERPROXY_H_ 36 #define _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UPPERPROXY_H_ 100 template<
typename MT >
102 :
public Proxy< UniUpperProxy<MT> >
114 template<
typename T >
115 struct BuiltinType {
using Type = INVALID_TYPE; };
123 template<
typename T >
124 struct ComplexType {
using Type =
typename T::value_type; };
135 , ComplexType<RepresentedType>
136 , BuiltinType<RepresentedType> >::Type;
162 template<
typename T >
inline const UniUpperProxy& operator%=(
const T& value )
const;
176 inline
void reset () const;
177 inline
void clear () const;
178 inline
void invert() const;
246 template< typename MT >
248 : value_ ( matrix( row,
column ) )
260 template<
typename MT >
287 template<
typename MT >
311 template<
typename MT >
312 template<
typename T >
336 template<
typename MT >
337 template<
typename T >
361 template<
typename MT >
362 template<
typename T >
386 template<
typename MT >
387 template<
typename T >
411 template<
typename MT >
412 template<
typename T >
436 template<
typename MT >
437 template<
typename T >
464 template<
typename MT >
487 template<
typename MT >
505 template<
typename MT >
524 template<
typename MT >
544 template<
typename MT >
557 template<
typename MT >
578 template<
typename MT >
602 template<
typename MT >
621 template<
typename MT >
641 template<
typename MT >
660 template<
typename MT >
683 template<
typename MT >
686 template<
typename MT >
689 template<
typename MT >
692 template<
bool RF,
typename MT >
695 template<
bool RF,
typename MT >
698 template<
bool RF,
typename MT >
701 template<
bool RF,
typename MT >
704 template<
typename MT >
720 template<
typename MT >
738 template<
typename MT >
753 template<
typename MT >
771 template<
bool RF,
typename MT >
776 return isDefault<RF>( proxy.
get() );
793 template<
bool RF,
typename MT >
798 return isReal<RF>( proxy.
get() );
813 template<
bool RF,
typename MT >
818 return isZero<RF>( proxy.
get() );
833 template<
bool RF,
typename MT >
838 return isOne<RF>( proxy.
get() );
853 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
size_t row_
Row index of the accessed matrix element.
Definition: UniUpperProxy.h:207
Access proxy for upper unitriangular matrices.The UniUpperProxy provides controlled access to the ele...
Definition: UniUpperProxy.h:101
Header file for auxiliary alias declarations.
decltype(auto) column(Matrix< MT, SO > &matrix, RCAs... args)
Creating a view on a specific column of the given matrix.
Definition: Column.h:131
Constraint on the data type.
Header file for basic type definitions.
const UniUpperProxy * operator->() const noexcept
Direct access to the accessed matrix element.
Definition: UniUpperProxy.h:465
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: UniUpperProxy.h:603
void invert() const
In-place inversion of the represented element.
Definition: UniUpperProxy.h:525
Constraint on the data type.
size_t column_
Column index of the accessed matrix element.
Definition: UniUpperProxy.h:208
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:588
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniUpperProxy.h:642
const UniUpperProxy & operator=(const UniUpperProxy &uup) const
Copy assignment operator for UniUpperProxy.
Definition: UniUpperProxy.h:288
#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.
Header file for the Proxy class.
Constraint on the data type.
Constraint on the data type.
typename MT::Reference ReferenceType
Reference type of the underlying matrix type.
Definition: UniUpperProxy.h:107
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:670
RepresentedType get() const noexcept
Returning the value of the accessed matrix element.
Definition: UniUpperProxy.h:545
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:772
ReferenceType value_
Reference to the accessed matrix element.
Definition: UniUpperProxy.h:206
MatrixAccessProxy< This > Reference
Reference to a non-constant matrix value.
Definition: CompressedMatrix.h:3082
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
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.
void reset() const
Reset the represented element to its default initial value.
Definition: UniUpperProxy.h:488
ElementType_< MT > RepresentedType
Type of the represented matrix element.
Definition: UniUpperProxy.h:131
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
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:608
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
UniUpperProxy(MT &matrix, size_t row, size_t column)
Initialization constructor for a UniUpperProxy.
Definition: UniUpperProxy.h:247
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.
void clear() const
Clearing the represented element.
Definition: UniUpperProxy.h:506
ValueType value_type
Value type of the represented complex element.
Definition: UniUpperProxy.h:138
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:154
decltype(auto) row(Matrix< MT, SO > &, RRAs...)
Creating a view on a specific row of the given matrix.
Definition: Row.h:131
#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
bool isRestricted() const noexcept
Returns whether the proxy represents a restricted matrix element..
Definition: UniUpperProxy.h:558
#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.
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
#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
typename If_< IsComplex< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type ValueType
Value type of the represented complex element.
Definition: UniUpperProxy.h:136
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.