35 #ifndef _BLAZE_MATH_PROXY_DENSEVECTORPROXY_H_
36 #define _BLAZE_MATH_PROXY_DENSEVECTORPROXY_H_
98 inline size_t size()
const;
101 inline void reset()
const;
102 inline void clear()
const;
103 inline void resize(
size_t n,
bool preserve=
true )
const;
104 inline void extend(
size_t n,
bool preserve=
true )
const;
105 inline void reserve(
size_t n )
const;
107 template<
typename Other >
inline void scale(
const Other& scalar )
const;
135 template<
typename PT
140 return (~*
this).
get()[index];
152 template<
typename PT
156 return (~*
this).get().data();
166 template<
typename PT
170 return (~*
this).get().begin();
180 template<
typename PT
184 return (~*
this).get().cbegin();
194 template<
typename PT
198 return (~*
this).get().end();
208 template<
typename PT
212 return (~*
this).get().cend();
230 template<
typename PT
234 return (~*
this).get().size();
244 template<
typename PT
248 return (~*
this).get().capacity();
261 template<
typename PT
265 return (~*
this).get().nonZeros();
277 template<
typename PT
283 reset( (~*
this).
get() );
295 template<
typename PT
301 clear( (~*
this).
get() );
321 template<
typename PT
325 (~*
this).
get().resize( n, preserve );
343 template<
typename PT
347 (~*
this).
get().extend( n, preserve );
361 template<
typename PT
365 (~*
this).
get().reserve( n );
376 template<
typename PT
378 template<
typename Other >
381 (~*
this).
get().scale( scalar );
397 template<
typename PT,
typename VT >
401 template<
typename PT,
typename VT >
405 template<
typename PT,
typename VT >
409 template<
typename PT,
typename VT >
413 template<
typename PT,
typename VT >
416 template<
typename PT,
typename VT >
419 template<
typename PT,
typename VT >
422 template<
typename PT,
typename VT >
425 template<
typename PT,
typename VT >
438 template<
typename PT
443 return proxy.
begin();
455 template<
typename PT
472 template<
typename PT
489 template<
typename PT
506 template<
typename PT
522 template<
typename PT
541 template<
typename PT
559 template<
typename PT
577 template<
typename PT
BLAZE_ALWAYS_INLINE MT::ConstIterator cbegin(const Matrix< MT, SO > &matrix, size_t i)
Returns an iterator to the first element of row/column i.
Definition: Matrix.h:237
size_t nonZeros() const
Returns the number of non-zero elements in the represented vector.
Definition: DenseVectorProxy.h:263
BLAZE_ALWAYS_INLINE size_t size(const Vector< VT, TF > &vector)
Returns the current size/dimension of the vector.
Definition: Vector.h:258
BLAZE_ALWAYS_INLINE MT::ConstIterator cend(const Matrix< MT, SO > &matrix, size_t i)
Returns an iterator just past the last element of row/column i.
Definition: Matrix.h:300
BLAZE_ALWAYS_INLINE MT::Iterator end(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator just past the last element of row/column i.
Definition: Matrix.h:258
ConstIterator cbegin() const
Returns an iterator to the first element of the represented vector.
Definition: DenseVectorProxy.h:182
BLAZE_ALWAYS_INLINE size_t capacity(const Matrix< MT, SO > &matrix)
Returns the maximum capacity of the matrix.
Definition: Matrix.h:348
Header file for the IsRowVector type trait.
void clear() const
Clearing the represented vector.
Definition: DenseVectorProxy.h:297
Header file for the DenseVector base class.
void resize(size_t n, bool preserve=true) const
Changing the size of the represented vector.
Definition: DenseVectorProxy.h:323
BLAZE_ALWAYS_INLINE size_t nonZeros(const Matrix< MT, SO > &matrix)
Returns the total number of non-zero elements in the matrix.
Definition: Matrix.h:386
void extend(size_t n, bool preserve=true) const
Extending the size of the represented vector.
Definition: DenseVectorProxy.h:345
VT::ConstReference ConstReference
Reference to a constant vector value.
Definition: DenseVectorProxy.h:75
Pointer data() const
Low-level data access to vector elements.
Definition: DenseVectorProxy.h:154
VT::ConstPointer ConstPointer
Pointer to a constant vector value.
Definition: DenseVectorProxy.h:77
VT::Iterator Iterator
Iterator over non-constant elements.
Definition: DenseVectorProxy.h:78
Proxy backend for dense vector types.The DenseVectorProxy class serves as a backend for the Proxy cla...
Definition: DenseVectorProxy.h:70
Header file for the clear shim.
#define BLAZE_ALWAYS_INLINE
Platform dependent setup of an enforced inline keyword.
Definition: Inline.h:85
void reset() const
Reset to the default initial value.
Definition: DenseVectorProxy.h:279
const Element * ConstIterator
Iterator over constant elements.
Definition: CompressedMatrix.h:2482
BLAZE_ALWAYS_INLINE void clear(const NonNumericProxy< MT > &proxy)
Clearing the represented element.
Definition: NonNumericProxy.h:854
ConstIterator cend() const
Returns an iterator just past the last element of the represented vector.
Definition: DenseVectorProxy.h:210
size_t capacity() const
Returns the maximum capacity of the represented vector.
Definition: DenseVectorProxy.h:246
Base class for N-dimensional dense vectors.The DenseVector class is a base class for all arbitrarily ...
Definition: DenseVector.h:70
Reference operator[](size_t index) const
Subscript operator for the direct access to vector elements.
Definition: DenseVectorProxy.h:138
RawReference get() const
Returning the value of the accessed sparse matrix element.
Definition: MatrixAccessProxy.h:360
VT::Pointer Pointer
Pointer to a non-constant vector value.
Definition: DenseVectorProxy.h:76
Constraint on the data type.
BLAZE_ALWAYS_INLINE MT::Iterator begin(Matrix< MT, SO > &matrix, size_t i)
Returns an iterator to the first element of row/column i.
Definition: Matrix.h:195
const Type & ConstReference
Reference to a constant matrix value.
Definition: CompressedMatrix.h:2480
void scale(const Other &scalar) const
Scaling of the vector by the scalar value scalar ( ).
Definition: DenseVectorProxy.h:379
Iterator end() const
Returns an iterator just past the last element of the represented vector.
Definition: DenseVectorProxy.h:196
size_t size() const
Returns the current size/dimension of the represented vector.
Definition: DenseVectorProxy.h:232
VT::Reference Reference
Reference to a non-constant vector value.
Definition: DenseVectorProxy.h:74
Header file for the reset shim.
void reserve(size_t n) const
Setting the minimum capacity of the represented vector.
Definition: DenseVectorProxy.h:363
Element * Iterator
Iterator over non-constant elements.
Definition: CompressedMatrix.h:2481
BLAZE_ALWAYS_INLINE void reset(const NonNumericProxy< MT > &proxy)
Resetting the represented element to the default initial values.
Definition: NonNumericProxy.h:833
#define BLAZE_CONSTRAINT_MUST_BE_DENSE_VECTOR_TYPE(T)
Constraint on the data type.In case the given data type T is not a dense, N-dimensional vector type...
Definition: DenseVector.h:79
VT::ConstIterator ConstIterator
Iterator over constant elements.
Definition: DenseVectorProxy.h:79
Header file for basic type definitions.
MatrixAccessProxy< This > Reference
Reference to a non-constant matrix value.
Definition: CompressedMatrix.h:2479
System settings for the inline keywords.
Iterator begin() const
Returns an iterator to the first element of the represented vector.
Definition: DenseVectorProxy.h:168