35 #ifndef _BLAZE_MATH_ADAPTORS_LOWERMATRIX_UNILOWERPROXY_H_ 36 #define _BLAZE_MATH_ADAPTORS_LOWERMATRIX_UNILOWERPROXY_H_ 102 template<
typename MT >
104 :
public Proxy< UniLowerProxy<MT> >
116 template<
typename T >
117 struct BuiltinType {
using Type = INVALID_TYPE; };
125 template<
typename T >
126 struct ComplexType {
using Type =
typename T::value_type; };
137 , ComplexType<RepresentedType>
138 , BuiltinType<RepresentedType> >::Type;
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;
166 template<
typename T >
inline const UniLowerProxy& operator/=(
const T& value )
const;
167 template<
typename T >
inline const UniLowerProxy& operator%=(
const T& value )
const;
181 inline
void reset () const;
182 inline
void clear () const;
183 inline
void invert() const;
253 template< typename MT >
267 template<
typename MT >
294 template<
typename MT >
297 if( isRestricted() ) {
318 template<
typename MT >
319 template<
typename T >
322 if( isRestricted() ) {
343 template<
typename MT >
344 template<
typename T >
347 if( isRestricted() ) {
368 template<
typename MT >
369 template<
typename T >
372 if( isRestricted() ) {
393 template<
typename MT >
394 template<
typename T >
397 if( isRestricted() ) {
418 template<
typename MT >
419 template<
typename T >
422 if( isRestricted() ) {
443 template<
typename MT >
444 template<
typename T >
447 if( isRestricted() ) {
471 template<
typename MT >
494 template<
typename MT >
512 template<
typename MT >
531 template<
typename MT >
536 if( row_ < column_ ) {
551 template<
typename MT >
564 template<
typename MT >
567 return row_ <= column_;
585 template<
typename MT >
609 template<
typename MT >
612 return value_.real();
628 template<
typename MT >
631 if( isRestricted() ) {
635 value_.real( value );
648 template<
typename MT >
651 return value_.imag();
667 template<
typename MT >
670 if( isRestricted() ) {
674 value_.imag( value );
690 template<
typename MT >
693 template<
typename MT >
696 template<
typename MT >
699 template<
bool RF,
typename MT >
702 template<
bool RF,
typename MT >
705 template<
bool RF,
typename MT >
708 template<
bool RF,
typename MT >
711 template<
typename MT >
727 template<
typename MT >
745 template<
typename MT >
760 template<
typename MT >
778 template<
bool RF,
typename MT >
783 return isDefault<RF>( proxy.
get() );
800 template<
bool RF,
typename MT >
805 return isReal<RF>( proxy.
get() );
820 template<
bool RF,
typename MT >
825 return isZero<RF>( proxy.
get() );
840 template<
bool RF,
typename MT >
845 return isOne<RF>( proxy.
get() );
860 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.
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.
Constraint on the data type.
const UniLowerProxy * operator->() const noexcept
Direct access to the accessed matrix element.
Definition: UniLowerProxy.h:472
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:138
bool isRestricted() const noexcept
Returns whether the proxy represents a restricted matrix element..
Definition: UniLowerProxy.h:565
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
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:211
Header file for the isZero shim.
#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
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.
ValueType value_type
Value type of the represented complex element.
Definition: UniLowerProxy.h:140
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:295
Constraint on the data type.
ValueType real() const
Returns the real part of the represented complex number.
Definition: UniLowerProxy.h:610
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
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:109
#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:649
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
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:615
void invert() const
In-place inversion of the represented element.
Definition: UniLowerProxy.h:532
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
RepresentedType get() const noexcept
Returning the value of the accessed matrix element.
Definition: UniLowerProxy.h:552
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,...
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.
size_t row_
Row index of the accessed matrix element.
Definition: UniLowerProxy.h:212
#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
UniLowerProxy(MT &matrix, size_t row, size_t column)
Initialization constructor for an UniLowerProxy.
Definition: UniLowerProxy.h:254
void reset() const
Reset the represented element to its default initial value.
Definition: UniLowerProxy.h:495
size_t column_
Column index of the accessed matrix element.
Definition: UniLowerProxy.h:213
ElementType_t< MT > RepresentedType
Type of the represented matrix element.
Definition: UniLowerProxy.h:133
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: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
#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:103
Header file for the isReal shim.
Header file for the clear shim.
void clear() const
Clearing the represented element.
Definition: UniLowerProxy.h:513
constexpr Type & get(StaticVector< Type, N, TF > &v) noexcept
Tuple-like index-based access the contents of a static vector.
Definition: StaticVector.h:2704