libstdc++
|
Public Types | |
typedef _Tp | value_type |
Public Member Functions | |
valarray () | |
valarray (size_t) | |
valarray (const _Tp &, size_t) | |
valarray (const _Tp *__restrict__, size_t) | |
valarray (const valarray &) | |
valarray (valarray &&) noexcept | |
valarray (const slice_array< _Tp > &) | |
valarray (const gslice_array< _Tp > &) | |
valarray (const mask_array< _Tp > &) | |
valarray (const indirect_array< _Tp > &) | |
valarray (initializer_list< _Tp >) | |
template<class _Dom > | |
valarray (const _Expr< _Dom, _Tp > &__e) | |
template<typename _Tp> | |
valarray (const _Tp *__restrict__ __p, size_t __n) | |
_Expr< _ValFunClos< _ValArray, _Tp >, _Tp > | apply (_Tp func(_Tp)) const |
_Expr< _RefFunClos< _ValArray, _Tp >, _Tp > | apply (_Tp func(const _Tp &)) const |
valarray< _Tp > | cshift (int __n) const |
_Tp | max () const |
_Tp | min () const |
_UnaryOp< __logical_not >::_Rt | operator! () const |
valarray< _Tp > & | operator%= (const _Tp &) |
valarray< _Tp > & | operator%= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator%= (const _Expr< _Dom, _Tp > &) |
valarray< _Tp > & | operator&= (const _Tp &) |
valarray< _Tp > & | operator&= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator&= (const _Expr< _Dom, _Tp > &) |
valarray< _Tp > & | operator*= (const _Tp &) |
valarray< _Tp > & | operator*= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator*= (const _Expr< _Dom, _Tp > &) |
_UnaryOp< __unary_plus >::_Rt | operator+ () const |
valarray< _Tp > & | operator+= (const _Tp &) |
valarray< _Tp > & | operator+= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator+= (const _Expr< _Dom, _Tp > &) |
_UnaryOp< __negate >::_Rt | operator- () const |
valarray< _Tp > & | operator-= (const _Tp &) |
valarray< _Tp > & | operator-= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator-= (const _Expr< _Dom, _Tp > &) |
valarray< _Tp > & | operator/= (const _Tp &) |
valarray< _Tp > & | operator/= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator/= (const _Expr< _Dom, _Tp > &) |
valarray< _Tp > & | operator<<= (const _Tp &) |
valarray< _Tp > & | operator<<= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator<<= (const _Expr< _Dom, _Tp > &) |
valarray< _Tp > & | operator= (const valarray< _Tp > &__v) |
valarray< _Tp > & | operator= (valarray< _Tp > &&__v) noexcept |
valarray< _Tp > & | operator= (const _Tp &__t) |
valarray< _Tp > & | operator= (const slice_array< _Tp > &__sa) |
valarray< _Tp > & | operator= (const gslice_array< _Tp > &__ga) |
valarray< _Tp > & | operator= (const mask_array< _Tp > &__ma) |
valarray< _Tp > & | operator= (const indirect_array< _Tp > &__ia) |
valarray & | operator= (initializer_list< _Tp > __l) |
template<class _Dom > | |
valarray< _Tp > & | operator= (const _Expr< _Dom, _Tp > &) |
valarray< _Tp > & | operator>>= (const _Tp &) |
valarray< _Tp > & | operator>>= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator>>= (const _Expr< _Dom, _Tp > &) |
_Tp & | operator[] (size_t __i) |
const _Tp & | operator[] (size_t) const |
_Expr< _SClos< _ValArray, _Tp > , _Tp > | operator[] (slice __s) const |
slice_array< _Tp > | operator[] (slice __s) |
_Expr< _GClos< _ValArray, _Tp > , _Tp > | operator[] (const gslice &__s) const |
gslice_array< _Tp > | operator[] (const gslice &__s) |
valarray< _Tp > | operator[] (const valarray< bool > &__m) const |
mask_array< _Tp > | operator[] (const valarray< bool > &__m) |
_Expr< _IClos< _ValArray, _Tp > , _Tp > | operator[] (const valarray< size_t > &__i) const |
indirect_array< _Tp > | operator[] (const valarray< size_t > &__i) |
valarray< _Tp > & | operator^= (const _Tp &) |
valarray< _Tp > & | operator^= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator^= (const _Expr< _Dom, _Tp > &) |
valarray< _Tp > & | operator|= (const _Tp &) |
valarray< _Tp > & | operator|= (const valarray< _Tp > &) |
template<class _Dom > | |
valarray< _Tp > & | operator|= (const _Expr< _Dom, _Tp > &) |
_UnaryOp< __bitwise_not >::_Rt | operator~ () const |
void | resize (size_t __size, _Tp __c=_Tp()) |
valarray< _Tp > | shift (int __n) const |
size_t | size () const |
_Tp | sum () const |
void | swap (valarray< _Tp > &__v) noexcept |
Friends | |
class | _Array< _Tp > |
Smart array designed to support numeric processing.
A valarray is an array that provides constraints intended to allow for effective optimization of numeric array processing by reducing the aliasing that can result from pointer representations. It represents a one-dimensional array from which different multidimensional subsets can be accessed and modified.
_Tp | Type of object in the array. |
std::valarray< _Tp >::valarray | ( | const _Tp * | __restrict__, |
size_t | |||
) |
Construct an array initialized to the first n elements of t.