35 #ifndef _BLAZE_MATH_SPARSE_VECTORACCESSPROXY_H_
36 #define _BLAZE_MATH_SPARSE_VECTORACCESSPROXY_H_
99 template<
typename VT >
128 template<
typename T >
inline const VectorAccessProxy& operator+=(
const T& value )
const;
129 template<
typename T >
inline const VectorAccessProxy& operator-=(
const T& value )
const;
130 template<
typename T >
inline const VectorAccessProxy& operator*=(
const T& value )
const;
131 template<
typename T >
inline const VectorAccessProxy& operator/=(
const T& value )
const;
138 inline RawReference
get()
const;
189 template<
typename VT >
195 if( element ==
sv_.end() )
206 template<
typename VT >
227 template<
typename VT >
231 if( element != sv_.end() &&
isDefault( element->value() ) )
232 sv_.erase( element );
251 template<
typename VT >
266 template<
typename VT >
267 template<
typename T >
282 template<
typename VT >
283 template<
typename T >
298 template<
typename VT >
299 template<
typename T >
314 template<
typename VT >
315 template<
typename T >
330 template<
typename VT >
331 template<
typename T >
353 template<
typename VT >
358 return element->value();
368 template<
typename VT >
389 template<
typename VT >
408 template<
typename VT >
412 template<
typename VT >
415 template<
typename VT >
418 template<
typename VT >
421 template<
typename VT >
424 template<
typename VT >
427 template<
typename VT >
430 template<
typename VT >
433 template<
typename VT >
436 template<
typename VT,
typename T >
439 template<
typename T,
typename VT >
456 template<
typename VT >
462 return conj( (~proxy).
get() );
474 template<
typename VT >
491 template<
typename VT >
511 template<
typename VT >
533 template<
typename VT >
553 template<
typename VT >
573 template<
typename VT >
593 template<
typename VT >
612 template<
typename VT >
631 template<
typename VT,
typename T >
650 template<
typename T,
typename VT >
Header file for the isnan shim.
bool isOne(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 1.
Definition: DiagonalProxy.h:609
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
Access proxy for sparse, N-dimensional vectors.The VectorAccessProxy provides safe access to the elem...
Definition: VectorAccessProxy.h:100
void reset(const DiagonalProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: DiagonalProxy.h:507
VT & sv_
Reference to the accessed sparse vector.
Definition: VectorAccessProxy.h:154
VectorAccessProxy(VT &sv, size_t i)
Initialization constructor for a VectorAccessProxy.
Definition: VectorAccessProxy.h:190
size_t i_
Index of the accessed sparse vector element.
Definition: VectorAccessProxy.h:155
bool isRestricted() const
Returns whether the proxy represents a restricted sparse vector element..
Definition: VectorAccessProxy.h:369
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
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
void swap(CompressedMatrix< Type, SO > &a, CompressedMatrix< Type, SO > &b)
Swapping the contents of two compressed matrices.
Definition: CompressedMatrix.h:4998
Header file for the isZero shim.
RepresentedType & RawReference
Raw reference to the represented element.
Definition: VectorAccessProxy.h:105
const VectorAccessProxy & operator=(const VectorAccessProxy &vap) const
Copy assignment operator for VectorAccessProxy.
Definition: VectorAccessProxy.h:252
#define BLAZE_CONSTRAINT_MUST_BE_SPARSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a sparse, N-dimensional vector type...
Definition: SparseVector.h:79
bool isnan(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is not a number.
Definition: DiagonalProxy.h:629
Type ElementType
Type of the sparse matrix elements.
Definition: CompressedMatrix.h:2586
Constraint on the data type.
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.
Evaluation of the return type of a complex conjugate expression.Via this type trait it is possible to...
Definition: ConjExprTrait.h:87
Header file for run time assertion macros.
Header file for the reset shim.
Element * Iterator
Iterator over non-constant elements.
Definition: CompressedMatrix.h:2591
Header file for the isDefault shim.
void swap(DiagonalMatrix< MT, SO, DF > &a, DiagonalMatrix< MT, SO, DF > &b)
Swapping the contents of two matrices.
Definition: DiagonalMatrix.h:256
RawReference get() const
Returning the value of the accessed sparse vector element.
Definition: VectorAccessProxy.h:354
VT::ElementType RepresentedType
Type of the represented sparse vector element.
Definition: VectorAccessProxy.h:104
~VectorAccessProxy()
The destructor for VectorAccessProxy.
Definition: VectorAccessProxy.h:228
bool isZero(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is 0.
Definition: DiagonalProxy.h:589
Header file for the ConjExprTrait class template.
Header file for the isReal shim.
#define BLAZE_INTERNAL_ASSERT(expr, msg)
Run time assertion macro for internal checks.In case of an invalid run time expression, the program execution is terminated. The BLAZE_INTERNAL_ASSERT macro can be disabled by setting the BLAZE_USER_ASSERTION flag to zero or by defining NDEBUG during the compilation.
Definition: Assert.h:101
void * operator&() const
Address operator (private & undefined)