35 #ifndef _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UPPERPROXY_H_
36 #define _BLAZE_MATH_ADAPTORS_UNIUPPERMATRIX_UPPERPROXY_H_
101 template<
typename MT >
114 template<
typename T >
115 struct BuiltinType {
typedef INVALID_TYPE Type; };
123 template<
typename T >
124 struct ComplexType {
typedef typename T::value_type Type; };
135 , ComplexType<RepresentedType>
158 template<
typename T >
inline const UniUpperProxy& operator+=(
const T& value )
const;
159 template<
typename T >
inline const UniUpperProxy& operator-=(
const T& value )
const;
160 template<
typename T >
inline const UniUpperProxy& operator*=(
const T& value )
const;
161 template<
typename T >
inline const UniUpperProxy& operator/=(
const T& value )
const;
168 inline void reset ()
const;
169 inline void clear ()
const;
170 inline void invert()
const;
172 inline RepresentedType
get()
const;
187 inline ValueType
real()
const;
188 inline void real( ValueType value )
const;
189 inline ValueType
imag()
const;
190 inline void imag( ValueType value )
const;
238 template<
typename MT >
240 : value_ ( matrix( row, column ) )
252 template<
typename MT >
254 : value_ ( uup.value_ )
256 , column_( uup.column_ )
279 template<
typename MT >
282 if( isRestricted() ) {
303 template<
typename MT >
304 template<
typename T >
307 if( isRestricted() ) {
328 template<
typename MT >
329 template<
typename T >
332 if( isRestricted() ) {
353 template<
typename MT >
354 template<
typename T >
357 if( isRestricted() ) {
378 template<
typename MT >
379 template<
typename T >
382 if( isRestricted() ) {
403 template<
typename MT >
404 template<
typename T >
407 if( isRestricted() ) {
433 template<
typename MT >
451 template<
typename MT >
470 template<
typename MT >
475 if( column_ < row_ ) {
490 template<
typename MT >
503 template<
typename MT >
506 return column_ <= row_;
524 template<
typename MT >
548 template<
typename MT >
551 return value_.real();
567 template<
typename MT >
570 if( isRestricted() ) {
574 value_.real( value );
587 template<
typename MT >
590 return value_.imag();
606 template<
typename MT >
609 if( isRestricted() ) {
613 value_.imag( value );
629 template<
typename MT >
633 template<
typename MT >
636 template<
typename MT >
639 template<
typename MT >
642 template<
typename MT >
645 template<
typename MT >
648 template<
typename MT >
651 template<
typename MT >
654 template<
typename MT >
671 template<
typename MT >
677 return conj( (~proxy).
get() );
692 template<
typename MT >
710 template<
typename MT >
725 template<
typename MT >
743 template<
typename MT >
765 template<
typename MT >
785 template<
typename MT >
805 template<
typename MT >
825 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
size_t row_
Row index of the accessed matrix element.
Definition: UniUpperProxy.h:199
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:609
Access proxy for upper unitriangular matrices.The UniUpperProxy provides controlled access to the ele...
Definition: UniUpperProxy.h:102
Constraint on the data type.
MT::ElementType RepresentedType
Type of the represented matrix element.
Definition: UniUpperProxy.h:131
MT::Reference ReferenceType
Reference type of the underlying matrix type.
Definition: UniUpperProxy.h:107
Compile time type selection.The If class template selects one of the two given types T2 and T3 depend...
Definition: If.h:112
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
bool isReal(const DiagonalProxy< MT > &proxy)
Returns whether the matrix element represents a real number.
Definition: DiagonalProxy.h:569
Constraint on the data type.
size_t column_
Column index of the accessed matrix element.
Definition: UniUpperProxy.h:200
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:507
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
#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
Header file for the invert shim.
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.
ConjExprTrait< typename DiagonalProxy< MT >::RepresentedType >::Type conj(const DiagonalProxy< MT > &proxy)
Computing the complex conjugate of the represented element.
Definition: DiagonalProxy.h:487
void invert(const HermitianProxy< MT > &proxy)
In-place inversion of the represented element.
Definition: HermitianProxy.h:767
ReferenceType value_
Reference to the accessed matrix element.
Definition: UniUpperProxy.h:198
Header file for the clear shim.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
If< IsComplex< RepresentedType >, ComplexType< RepresentedType >, BuiltinType< RepresentedType > >::Type::Type ValueType
Value type of the represented complex element.
Definition: UniUpperProxy.h:136
void reset() const
Reset the represented element to its default initial value.
Definition: UniUpperProxy.h:434
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:116
Constraint on the data type.
Header file for the isZero shim.
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
ValueType value_type
Value type of the represented complex element.
Definition: UniUpperProxy.h:138
const UniUpperProxy & operator=(const UniUpperProxy &uup) const
Copy assignment operator for UniUpperProxy.
Definition: UniUpperProxy.h:280
void clear(const DiagonalProxy< MT > &proxy)
Clearing the represented element.
Definition: DiagonalProxy.h:527
Header file for the isOne shim.
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
UniUpperProxy(MT &matrix, size_t row, size_t column)
Initialization constructor for a UniUpperProxy.
Definition: UniUpperProxy.h:239
Utility type for generic codes.
RepresentedType get() const
Returning the value of the accessed matrix element.
Definition: UniUpperProxy.h:491
Constraint on the data type.
Constraint on the data type.
#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:79
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
#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.
ValueType imag() const
Returns the imaginary part of the represented complex number.
Definition: UniUpperProxy.h:588
Constraint on the data type.
Constraint on the data type.
void clear() const
Clearing the represented element.
Definition: UniUpperProxy.h:452
void invert() const
In-place inversion of the represented element.
Definition: UniUpperProxy.h:471
#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
ValueType real() const
Returns the real part of the represented complex number.
Definition: UniUpperProxy.h:549
Header file for the IsComplex type trait.
MatrixAccessProxy< This > Reference
Reference to a non-constant matrix value.
Definition: CompressedMatrix.h:2589
#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
bool isRestricted() const
Returns whether the proxy represents a restricted matrix element..
Definition: UniUpperProxy.h:504
#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
Header file for exception macros.
Header file for the ConjExprTrait class template.
Header file for the isReal shim.