35 #ifndef _BLAZE_MATH_ADAPTORS_DIAGONALMATRIX_DIAGONALPROXY_H_
36 #define _BLAZE_MATH_ADAPTORS_DIAGONALMATRIX_DIAGONALPROXY_H_
97 template<
typename MT >
135 template<
typename T >
inline DiagonalProxy& operator+=(
const T& value );
136 template<
typename T >
inline DiagonalProxy& operator-=(
const T& value );
137 template<
typename T >
inline DiagonalProxy& operator*=(
const T& value );
138 template<
typename T >
inline DiagonalProxy& operator/=(
const T& value );
145 inline RawReference
get()
const;
202 template<
typename MT >
204 : value_ ( matrix( row, column ) )
205 , restricted_( row != column )
215 template<
typename MT >
217 : value_ ( dp.value_ )
218 , restricted_( dp.restricted_ )
241 template<
typename MT >
265 template<
typename MT >
266 template<
typename T >
290 template<
typename MT >
291 template<
typename T >
315 template<
typename MT >
316 template<
typename T >
340 template<
typename MT >
341 template<
typename T >
365 template<
typename MT >
366 template<
typename T >
393 template<
typename MT >
406 template<
typename MT >
427 template<
typename MT >
446 template<
typename MT >
450 template<
typename MT >
453 template<
typename MT >
456 template<
typename MT >
459 template<
typename MT >
462 template<
typename MT >
465 template<
typename MT >
468 template<
typename MT >
485 template<
typename MT >
491 return conj( (~proxy).
get() );
506 template<
typename MT >
526 template<
typename MT >
546 template<
typename MT >
568 template<
typename MT >
588 template<
typename MT >
608 template<
typename MT >
628 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:116
#define BLAZE_THROW_INVALID_ARGUMENT(MESSAGE)
Macro for the emission of a std::invalid_argument exceptionThis macro encapsulates the default way of...
Definition: Exception.h:187
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:609
Header file for the AddConst type trait.
Header file for basic type definitions.
Addition of a top level 'const' qualifier.The AddConst type trait adds a top level 'const' qualifier ...
Definition: AddConst.h:69
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:569
Constraint on the data type.
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:507
Access proxy for diagonal matrices.The DiagonalProxy provides controlled access to the elements of a ...
Definition: DiagonalProxy.h:98
DisableIf< Or< IsComputation< MT >, IsTransExpr< MT > >, typename ColumnExprTrait< MT >::Type >::Type column(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific column of the given matrix.
Definition: Column.h:107
DiagonalProxy & operator=(const DiagonalProxy &dp)
Copy assignment operator for DiagonalProxy.
Definition: DiagonalProxy.h:242
#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:116
Constraint on the data type.
Header file for the Proxy class.
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:547
Constraint on the data type.
Constraint on the data type.
AddConst< typename MT::Reference >::Type ReferenceType
Reference type of the underlying matrix type.
Definition: DiagonalProxy.h:103
Addition of a top level reference.In case the given type T is not a reference type, the AddReference type trait adds a top level reference to the given type T. Else the resulting type Type is T.
Definition: AddReference.h:69
ConjExprTrait< typename DiagonalProxy< MT >::RepresentedType >::Type conj(const DiagonalProxy< MT > &proxy)
Computing the complex conjugate of the represented element.
Definition: DiagonalProxy.h:487
Header file for the clear shim.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
#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:116
Constraint on the data type.
Header file for the isZero shim.
const bool restricted_
Access flag for the accessed matrix element.
Definition: DiagonalProxy.h:162
Constraint on the data type.
bool isnan(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is not a number.
Definition: DiagonalProxy.h:629
#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:118
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2586
const Type & ConstReference
Reference to a constant matrix value.
Definition: CompressedMatrix.h:2590
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:527
MT::ElementType RepresentedType
Type of the represented matrix element.
Definition: DiagonalProxy.h:109
Header file for the isOne shim.
RawReference get() const
Returning the value of the accessed matrix element.
Definition: DiagonalProxy.h:394
Header file for the conjugate shim.
DisableIf< Or< IsComputation< MT >, IsTransExpr< MT > >, typename RowExprTrait< MT >::Type >::Type row(Matrix< MT, SO > &matrix, size_t index)
Creating a view on a specific row of the given matrix.
Definition: Row.h:107
Evaluation of the return type of a complex conjugate expression.Via this type trait it is possible to...
Definition: ConjExprTrait.h:87
#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:116
Constraint on the data type.
Constraint on the data type.
AddReference< ReferenceType >::Type RawReference
Reference-to-non-const to the represented element.
Definition: DiagonalProxy.h:112
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:118
ReferenceType value_
Reference to the accessed matrix element.
Definition: DiagonalProxy.h:161
#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:116
Header file for the isDefault shim.
Constraint on the data type.
Constraint on the data type.
bool isRestricted() const
Returns whether the proxy represents a restricted matrix element..
Definition: DiagonalProxy.h:407
DiagonalProxy(MT &matrix, size_t row, size_t column)
Initialization constructor for a DiagonalProxy.
Definition: DiagonalProxy.h:203
#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:118
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:589
Header file for the AddReference type trait.
#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:116
#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:79
const RepresentedType & ConstReference
Reference-to-const to the represented element.
Definition: DiagonalProxy.h:115
Header file for exception macros.
Header file for the ConjExprTrait class template.
Header file for the isReal shim.