35 #ifndef _BLAZE_MATH_ADAPTORS_LOWERMATRIX_UNILOWERPROXY_H_ 36 #define _BLAZE_MATH_ADAPTORS_LOWERMATRIX_UNILOWERPROXY_H_ 100 template<
typename MT >
102 :
public Proxy< UniLowerProxy<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;
161 template<
typename T >
inline const UniLowerProxy& operator+=(
const T& value )
const;
162 template<
typename T >
inline const UniLowerProxy& operator-=(
const T& value )
const;
163 template<
typename T >
inline const UniLowerProxy& operator*=(
const T& value )
const;
164 template<
typename T >
inline const UniLowerProxy& operator/=(
const T& value )
const;
165 template<
typename T >
inline const UniLowerProxy& operator%=(
const T& value )
const;
179 inline
void reset () const;
180 inline
void clear () const;
181 inline
void invert() const;
249 template< typename MT >
263 template<
typename MT >
290 template<
typename MT >
293 if( isRestricted() ) {
314 template<
typename MT >
315 template<
typename T >
318 if( isRestricted() ) {
339 template<
typename MT >
340 template<
typename T >
343 if( isRestricted() ) {
364 template<
typename MT >
365 template<
typename T >
368 if( isRestricted() ) {
389 template<
typename MT >
390 template<
typename T >
393 if( isRestricted() ) {
414 template<
typename MT >
415 template<
typename T >
418 if( isRestricted() ) {
439 template<
typename MT >
440 template<
typename T >
443 if( isRestricted() ) {
467 template<
typename MT >
490 template<
typename MT >
508 template<
typename MT >
527 template<
typename MT >
532 if( row_ < column_ ) {
547 template<
typename MT >
560 template<
typename MT >
563 return row_ <= column_;
581 template<
typename MT >
605 template<
typename MT >
608 return value_.real();
624 template<
typename MT >
627 if( isRestricted() ) {
631 value_.real( value );
644 template<
typename MT >
647 return value_.imag();
663 template<
typename MT >
666 if( isRestricted() ) {
670 value_.imag( value );
686 template<
typename MT >
689 template<
typename MT >
692 template<
typename MT >
695 template<
bool RF,
typename MT >
698 template<
bool RF,
typename MT >
701 template<
bool RF,
typename MT >
704 template<
bool RF,
typename MT >
707 template<
typename MT >
723 template<
typename MT >
741 template<
typename MT >
756 template<
typename MT >
774 template<
bool RF,
typename MT >
779 return isDefault<RF>( proxy.
get() );
796 template<
bool RF,
typename MT >
801 return isReal<RF>( proxy.
get() );
816 template<
bool RF,
typename MT >
821 return isZero<RF>( proxy.
get() );
836 template<
bool RF,
typename MT >
841 return isOne<RF>( proxy.
get() );
856 template<
typename MT >
bool isReal(const DiagonalProxy< MT > &proxy)
Returns whether the matrix element represents a real number.
Definition: DiagonalProxy.h:653
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.
decltype(auto) column(Matrix< MT, SO > &matrix, RCAs... args)
Creating a view on a specific column of the given matrix.
Definition: Column.h:133
Constraint on the data type.
const UniLowerProxy * operator->() const noexcept
Direct access to the accessed matrix element.
Definition: UniLowerProxy.h:468
Header file for basic type definitions.
typename If_t< IsComplex_v< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type ValueType
Value type of the represented complex element.
Definition: UniLowerProxy.h:136
bool isRestricted() const noexcept
Returns whether the proxy represents a restricted matrix element..
Definition: UniLowerProxy.h:561
typename If< Condition, T1, T2 >::Type If_t
Auxiliary alias declaration for the If class template.The If_t alias declaration provides a convenien...
Definition: If.h:109
Proxy base class.The Proxy class is a base class for all proxy classes within the Blaze library that ...
Definition: Forward.h:51
ReferenceType value_
Reference to the accessed matrix element.
Definition: UniLowerProxy.h:209
Header file for the isZero shim.
Constraint on the data type.
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:591
#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.
ValueType value_type
Value type of the represented complex element.
Definition: UniLowerProxy.h:138
Header file for the reset shim.
Constraint on the data type.
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
const UniLowerProxy & operator=(const UniLowerProxy &ulp) const
Copy assignment operator for UniLowerProxy.
Definition: UniLowerProxy.h:291
Constraint on the data type.
ValueType real() const
Returns the real part of the represented complex number.
Definition: UniLowerProxy.h:606
Constraint on the data type.
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:673
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:775
MatrixAccessProxy< This > Reference
Reference to a non-constant matrix value.
Definition: CompressedMatrix.h:3083
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
Header file for the If class template.
typename MT::Reference ReferenceType
Reference type of the underlying matrix type.
Definition: UniLowerProxy.h:107
#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.
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniLowerProxy.h:645
Constraint on the data type.
bool isnan(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is not a number.
Definition: DiagonalProxy.h:713
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:611
void invert() const
In-place inversion of the represented element.
Definition: UniLowerProxy.h:528
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
RepresentedType get() const noexcept
Returning the value of the accessed matrix element.
Definition: UniLowerProxy.h:548
Utility type for generic codes.
Constraint on the data type.
Constraint on the data type.
decltype(auto) row(Matrix< MT, SO > &, RRAs...)
Creating a view on a specific row of the given matrix.
Definition: Row.h:133
#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, 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:693
Header file for the isDefault shim.
Constraint on the data type.
Constraint on the data type.
size_t row_
Row index of the accessed matrix element.
Definition: UniLowerProxy.h:210
UniLowerProxy(MT &matrix, size_t row, size_t column)
Initialization constructor for an UniLowerProxy.
Definition: UniLowerProxy.h:250
void reset() const
Reset the represented element to its default initial value.
Definition: UniLowerProxy.h:491
size_t column_
Column index of the accessed matrix element.
Definition: UniLowerProxy.h:211
#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
ElementType_t< MT > RepresentedType
Type of the represented matrix element.
Definition: UniLowerProxy.h:131
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:631
#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
Access proxy for lower unitriangular matrices.The UniLowerProxy provides controlled access to the ele...
Definition: UniLowerProxy.h:101
Header file for the isReal shim.
Header file for the clear shim.
void clear() const
Clearing the represented element.
Definition: UniLowerProxy.h:509