35 #ifndef _BLAZE_MATH_ADAPTORS_DIAGONALMATRIX_DIAGONALPROXY_H_ 36 #define _BLAZE_MATH_ADAPTORS_DIAGONALMATRIX_DIAGONALPROXY_H_ 99 template<
typename MT >
101 :
public Proxy< DiagonalProxy<MT>, ElementType_t<MT> >
136 template<
typename T >
139 template<
typename T >
143 template<
typename T >
inline DiagonalProxy& operator+=(
const T& value );
144 template<
typename T >
inline DiagonalProxy& operator-=(
const T& value );
145 template<
typename T >
inline DiagonalProxy& operator*=(
const T& value );
146 template<
typename T >
inline DiagonalProxy& operator/=(
const T& value );
147 template<
typename T >
inline DiagonalProxy& operator%=(
const T& value );
220 template< typename MT >
233 template<
typename MT >
259 template<
typename MT >
283 template<
typename MT >
284 template<
typename T >
308 template<
typename MT >
309 template<
typename T >
333 template<
typename MT >
334 template<
typename T >
358 template<
typename MT >
359 template<
typename T >
383 template<
typename MT >
384 template<
typename T >
408 template<
typename MT >
409 template<
typename T >
433 template<
typename MT >
434 template<
typename T >
458 template<
typename MT >
459 template<
typename T >
486 template<
typename MT >
507 template<
typename MT >
520 template<
typename MT >
541 template<
typename MT >
544 return static_cast<ConstReference>( value_ );
560 template<
typename MT >
563 template<
typename MT >
566 template<
bool RF,
typename MT >
569 template<
bool RF,
typename MT >
572 template<
bool RF,
typename MT >
575 template<
bool RF,
typename MT >
578 template<
typename MT >
594 template<
typename MT >
614 template<
typename MT >
634 template<
bool RF,
typename MT >
639 return isDefault<RF>( proxy.
get() );
656 template<
bool RF,
typename MT >
661 return isReal<RF>( proxy.
get() );
676 template<
bool RF,
typename MT >
681 return isZero<RF>( proxy.
get() );
696 template<
bool RF,
typename MT >
701 return isOne<RF>( proxy.
get() );
716 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 the AddConst type trait.
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.
ElementType_t< MT > RepresentedType
Type of the represented matrix element.
Definition: DiagonalProxy.h:111
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
Header file for the isZero shim.
const RepresentedType & ConstReference
Reference-to-const to the represented element.
Definition: DiagonalProxy.h:113
#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
Access proxy for diagonal matrices.The DiagonalProxy provides controlled access to the elements of a ...
Definition: DiagonalProxy.h:100
DiagonalProxy & operator=(const DiagonalProxy &dp)
Copy assignment operator for DiagonalProxy.
Definition: DiagonalProxy.h:260
#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 reset shim.
Header file for the extended initializer_list functionality.
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
Constraint on the data type.
Constraint on the data type.
typename AddReference< T >::Type AddReference_t
Auxiliary alias declaration for the AddReference type trait.The AddReference_t alias declaration prov...
Definition: AddReference.h:95
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:677
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
#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.
RawReference get() const noexcept
Returning the value of the accessed matrix element.
Definition: DiagonalProxy.h:508
const bool restricted_
Access flag for the accessed matrix element.
Definition: DiagonalProxy.h:178
Constraint on the data type.
bool isRestricted() const noexcept
Returns whether the proxy represents a restricted matrix element..
Definition: DiagonalProxy.h:521
typename AddConst< T >::Type AddConst_t
Auxiliary alias declaration for the AddConst type trait.The AddConst_t alias declaration provides a c...
Definition: AddConst.h:95
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
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
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_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
ReferenceType value_
Reference to the accessed matrix element.
Definition: DiagonalProxy.h:177
#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.
const DiagonalProxy * operator->() const noexcept
Direct access to the accessed matrix element.
Definition: DiagonalProxy.h:487
AddReference_t< ReferenceType > RawReference
Reference-to-non-const to the represented element.
Definition: DiagonalProxy.h:112
Constraint on the data type.
Constraint on the data type.
DiagonalProxy(MT &matrix, size_t row, size_t column)
Initialization constructor for a DiagonalProxy.
Definition: DiagonalProxy.h:221
#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
AddConst_t< typename MT::Reference > ReferenceType
Reference type of the underlying matrix type.
Definition: DiagonalProxy.h:106
Initializer list type of the Blaze library.
Header file for the AddReference 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
Header file for the isReal shim.
Header file for the clear shim.