libstdc++
|
Functions | |
std::gslice::gslice () | |
std::gslice::gslice (const gslice &) | |
std::gslice::gslice (size_t __o, const valarray< size_t > &__l, const valarray< size_t > &__s) | |
std::gslice_array< _Tp >::gslice_array (const gslice_array &) | |
std::indirect_array< _Tp >::indirect_array (const indirect_array &) | |
std::mask_array< _Tp >::mask_array (const mask_array &) | |
std::slice::slice () | |
std::slice::slice (size_t __o, size_t __d, size_t __s) | |
std::slice_array< _Tp >::slice_array (const slice_array &) | |
std::valarray< _Tp >::valarray () | |
template<class _Dom > | |
std::valarray< _Tp >::valarray (const _Expr< _Dom, _Tp > &__e) | |
std::valarray< _Tp >::valarray (const _Tp &, size_t) | |
template<typename _Tp > | |
std::valarray< _Tp >::valarray (const _Tp *__restrict__ __p, size_t __n) | |
std::valarray< _Tp >::valarray (const gslice_array< _Tp > &) | |
std::valarray< _Tp >::valarray (const indirect_array< _Tp > &) | |
std::valarray< _Tp >::valarray (const mask_array< _Tp > &) | |
std::valarray< _Tp >::valarray (const slice_array< _Tp > &) | |
std::valarray< _Tp >::valarray (const valarray &) | |
std::valarray< _Tp >::valarray (initializer_list< _Tp >) | |
std::valarray< _Tp >::valarray (size_t) | |
std::valarray< _Tp >::valarray (valarray &&) noexcept | |
std::gslice::~gslice () | |
_Expr< _ValFunClos< _ValArray, _Tp >, _Tp > | std::valarray< _Tp >::apply (_Tp func(_Tp)) const |
_Expr< _RefFunClos< _ValArray, _Tp >, _Tp > | std::valarray< _Tp >::apply (_Tp func(const _Tp &)) const |
template<class _Tp > | |
const _Tp * | std::begin (const valarray< _Tp > &__va) noexcept |
template<class _Tp > | |
_Tp * | std::begin (valarray< _Tp > &__va) noexcept |
valarray< _Tp > | std::valarray< _Tp >::cshift (int __n) const |
template<class _Tp > | |
const _Tp * | std::end (const valarray< _Tp > &__va) noexcept |
template<class _Tp > | |
_Tp * | std::end (valarray< _Tp > &__va) noexcept |
_Tp | std::valarray< _Tp >::max () const |
_Tp | std::valarray< _Tp >::min () const |
template<class _Dom > | |
valarray< _Tp > & | std::valarray< _Tp >::operator= (const _Expr< _Dom, _Tp > &) |
template<class _Dom > | |
void | std::gslice_array< _Tp >::operator= (const _Expr< _Dom, _Tp > &) const |
template<class _Dom > | |
void | std::indirect_array< _Tp >::operator= (const _Expr< _Dom, _Tp > &) const |
template<class _Dom > | |
void | std::slice_array< _Tp >::operator= (const _Expr< _Dom, _Tp > &) const |
template<class _Ex > | |
void | std::mask_array< _Tp >::operator= (const _Expr< _Ex, _Tp > &__e) const |
void | std::gslice_array< _Tp >::operator= (const _Tp &) const |
void | std::indirect_array< _Tp >::operator= (const _Tp &) const |
void | std::mask_array< _Tp >::operator= (const _Tp &) const |
void | std::slice_array< _Tp >::operator= (const _Tp &) const |
valarray< _Tp > & | std::valarray< _Tp >::operator= (const _Tp &__t) |
gslice & | std::gslice::operator= (const gslice &) |
gslice_array & | std::gslice_array< _Tp >::operator= (const gslice_array &) |
valarray< _Tp > & | std::valarray< _Tp >::operator= (const gslice_array< _Tp > &__ga) |
indirect_array & | std::indirect_array< _Tp >::operator= (const indirect_array &) |
valarray< _Tp > & | std::valarray< _Tp >::operator= (const indirect_array< _Tp > &__ia) |
mask_array & | std::mask_array< _Tp >::operator= (const mask_array &) |
valarray< _Tp > & | std::valarray< _Tp >::operator= (const mask_array< _Tp > &__ma) |
slice_array & | std::slice_array< _Tp >::operator= (const slice_array &) |
valarray< _Tp > & | std::valarray< _Tp >::operator= (const slice_array< _Tp > &__sa) |
void | std::gslice_array< _Tp >::operator= (const valarray< _Tp > &) const |
void | std::indirect_array< _Tp >::operator= (const valarray< _Tp > &) const |
void | std::mask_array< _Tp >::operator= (const valarray< _Tp > &) const |
void | std::slice_array< _Tp >::operator= (const valarray< _Tp > &) const |
valarray< _Tp > & | std::valarray< _Tp >::operator= (const valarray< _Tp > &__v) |
valarray & | std::valarray< _Tp >::operator= (initializer_list< _Tp > __l) |
valarray< _Tp > & | std::valarray< _Tp >::operator= (valarray< _Tp > &&__v) noexcept |
gslice_array< _Tp > | std::valarray< _Tp >::operator[] (const gslice &__s) |
_Expr< _GClos< _ValArray, _Tp >, _Tp > | std::valarray< _Tp >::operator[] (const gslice &__s) const |
mask_array< _Tp > | std::valarray< _Tp >::operator[] (const valarray< bool > &__m) |
valarray< _Tp > | std::valarray< _Tp >::operator[] (const valarray< bool > &__m) const |
indirect_array< _Tp > | std::valarray< _Tp >::operator[] (const valarray< size_t > &__i) |
_Expr< _IClos< _ValArray, _Tp >, _Tp > | std::valarray< _Tp >::operator[] (const valarray< size_t > &__i) const |
_Tp & | std::valarray< _Tp >::operator[] (size_t __i) |
const _Tp & | std::valarray< _Tp >::operator[] (size_t) const |
slice_array< _Tp > | std::valarray< _Tp >::operator[] (slice __s) |
_Expr< _SClos< _ValArray, _Tp >, _Tp > | std::valarray< _Tp >::operator[] (slice __s) const |
void | std::valarray< _Tp >::resize (size_t __size, _Tp __c=_Tp()) |
valarray< _Tp > | std::valarray< _Tp >::shift (int __n) const |
valarray< size_t > | std::gslice::size () const |
size_t | std::slice::size () const |
size_t | std::valarray< _Tp >::size () const |
size_t | std::gslice::start () const |
size_t | std::slice::start () const |
valarray< size_t > | std::gslice::stride () const |
size_t | std::slice::stride () const |
_Tp | std::valarray< _Tp >::sum () const |
void | std::valarray< _Tp >::swap (valarray< _Tp > &__v) noexcept |
Classes and functions for representing and manipulating arrays of elements.
|
inline |
|
inline |
Copy constructor. Both slices refer to the same underlying array.
Definition at line 148 of file gslice_array.h.
|
inline |
Copy constructor. Both slices refer to the same underlying array.
Definition at line 143 of file indirect_array.h.
|
inline |
Copy constructor. Both slices refer to the same underlying array.
Definition at line 144 of file mask_array.h.
|
inline |
Construct an empty slice.
Definition at line 95 of file slice_array.h.
|
inline |
Construct a slice.
__o | Offset in array of first element. |
__d | Number of elements in slice. |
__s | Stride between array elements. |
Definition at line 99 of file slice_array.h.
|
inline |
Copy constructor. Both slices refer to the same underlying array.
Definition at line 217 of file slice_array.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlinenoexcept |
|
inline |
Apply a function to the array.
Returns a new valarray with elements assigned to the result of applying func to the corresponding element of this array. The new array has the same size as this one.
func | Function of Tp returning Tp to apply. |
|
inline |
Apply a function to the array.
Returns a new valarray with elements assigned to the result of applying func to the corresponding element of this array. The new array has the same size as this one.
func | Function of const Tp& returning Tp to apply. |
|
inlinenoexcept |
|
inlinenoexcept |
Return an iterator pointing to the first element of the valarray.
__va | valarray. |
Definition at line 1217 of file valarray.
Referenced by std::cbegin(), std::vector< _Tp, _Alloc >::insert(), std::list< _Tp, _Alloc >::merge(), std::list< _Tp, _Alloc >::remove(), std::list< _Tp, _Alloc >::remove_if(), and std::list< _Tp, _Alloc >::unique().
|
inline |
Return a rotated array.
A new valarray is constructed as a copy of this array with elements in shifted positions. For an element with index i, the new position is (i - n) % size(). The new valarray has the same size as the current one. Elements that are shifted beyond the array bounds are shifted into the other end of the array. No elements are lost.
Positive arguments shift toward index 0, wrapping around the top. Negative arguments shift towards the top, wrapping around to 0.
__n | Number of element positions to rotate. |
|
inlinenoexcept |
|
inlinenoexcept |
Return an iterator pointing to one past the last element of the valarray.
__va | valarray. |
Definition at line 1239 of file valarray.
Referenced by std::cend(), std::vector< _Tp, _Alloc >::insert(), std::list< _Tp, _Alloc >::merge(), std::vector< double >::operator=(), std::list< _Tp, _Alloc >::remove(), std::list< _Tp, _Alloc >::remove_if(), std::list< _Tp, _Alloc >::resize(), and std::list< _Tp, _Alloc >::unique().
|
inline |
|
inline |
|
inline |
Assign all slice elements to t.
Definition at line 163 of file gslice_array.h.
|
inline |
Assign all slice elements to t.
Definition at line 163 of file indirect_array.h.
|
inline |
Assign all slice elements to t.
Definition at line 163 of file mask_array.h.
|
inline |
Assign all slice elements to t.
Definition at line 234 of file slice_array.h.
|
inline |
|
inline |
Assignment operator. Assigns slice elements to corresponding elements of a.
Definition at line 153 of file gslice_array.h.
|
inline |
|
inline |
Assignment operator. Assigns elements to corresponding elements of a.
Definition at line 154 of file indirect_array.h.
|
inline |
|
inline |
Assignment operator. Assigns elements to corresponding elements of a.
Definition at line 154 of file mask_array.h.
|
inline |
|
inline |
Assignment operator. Assigns slice elements to corresponding elements of a.
Definition at line 225 of file slice_array.h.
|
inline |
|
inline |
Assign slice elements to corresponding elements of v.
Definition at line 171 of file gslice_array.h.
References std::valarray< _Tp >::size().
|
inline |
Assign slice elements to corresponding elements of v.
Definition at line 168 of file indirect_array.h.
|
inline |
Assign slice elements to corresponding elements of v.
Definition at line 239 of file slice_array.h.
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
Return a reference to an array subset.
Returns a new valarray containing the elements of the array indicated by the gslice argument. The new valarray has the same size as the input gslice.
__s | The source gslice. |
|
inline |
|
inline |
Return a reference to an array subset.
Returns a new mask_array referencing the elements of the array indicated by the argument. The input is a valarray of bool which represents a bitmask indicating which elements are part of the subset. Elements of the array are part of the subset if the corresponding element of the argument is true.
__m | The valarray bitmask. |
|
inline |
Return an array subset.
Returns a new valarray containing the elements of the array indicated by the argument. The input is a valarray of bool which represents a bitmask indicating which elements should be copied into the new valarray. Each element of the array is added to the return valarray if the corresponding element of the argument is true.
__m | The valarray bitmask. |
|
inline |
Return a reference to an array subset.
Returns an indirect_array referencing the elements of the array indicated by the argument. The elements in the argument are interpreted as the indices of elements of this valarray to include in the subset. The returned indirect_array refers to these elements.
__i | The valarray element index list. |
|
inline |
Return an array subset.
Returns a new valarray containing the elements of the array indicated by the argument. The elements in the argument are interpreted as the indices of elements of this valarray to copy to the return valarray.
__i | The valarray element index list. |
|
inline |
|
inline |
Return a reference to an array subset.
Returns a new valarray containing the elements of the array indicated by the slice argument. The new valarray has the same size as the input slice.
__s | The source slice. |
|
inline |
Return an array subset.
Returns a new valarray containing the elements of the array indicated by the slice argument. The new valarray has the same size as the input slice.
__s | The source slice. |
|
inline |
|
inline |
Return a shifted array.
A new valarray is constructed as a copy of this array with elements in shifted positions. For an element with index i, the new position is i - n. The new valarray has the same size as the current one. New elements without a value are set to 0. Elements whose new position is outside the bounds of the array are discarded.
Positive arguments shift toward index 0, discarding elements [0, n). Negative arguments discard elements from the top of the array.
__n | Number of element positions to shift. |
|
inline |
|
inline |
Return size of slice.
Definition at line 107 of file slice_array.h.
|
inline |
Return the number of elements in array.
Definition at line 937 of file valarray.
Referenced by std::gslice_array< _Tp >::operator=().
|
inline |
|
inline |
Return array offset of first slice element.
Definition at line 103 of file slice_array.h.
|
inline |
|
inline |
Return array stride of slice.
Definition at line 111 of file slice_array.h.
|
inline |
|
inlinenoexcept |