Tp | Type of object in the array. |
Definition at line 109 of file valarray.
|
Construct an empty array.
|
|
Construct an array with n elements.
Definition at line 556 of file valarray. References std::__valarray_default_construct(). |
|
Construct an array with n elements initialized to t.
Definition at line 562 of file valarray. References std::__valarray_fill_construct(). |
|
Construct an array initialized to the first n elements of t.
|
|
Copy constructor.
|
|
Construct an array with the same size and values in sa.
Definition at line 584 of file valarray. References std::__valarray_copy(), slice_array::_M_array, slice_array::_M_stride, and slice_array::_M_sz. |
|
Construct an array with the same size and values in ga.
Definition at line 593 of file valarray. References std::__valarray_copy(), gslice_array::_M_array, and gslice_array::_M_index. |
|
Construct an array with the same size and values in ma.
Definition at line 604 of file valarray. References std::__valarray_copy(), mask_array::_M_array, and mask_array::_M_mask. |
|
Construct an array with the same size and values in ia.
Definition at line 613 of file valarray. References std::__valarray_copy(), indirect_array::_M_array, and indirect_array::_M_index. |
|
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 is the same size as this one.
|
|
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 is the same size as this one.
|
|
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 is 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.
Definition at line 813 of file valarray. References std::__valarray_copy_construct(). |
|
Return the maximum element using operator<().
Definition at line 863 of file valarray. References std::max_element(). |
|
Return the minimum element using operator<().
Definition at line 855 of file valarray. References std::min_element(). |
|
Logical and corresponding elements of v with elements of array.
|
|
Set each element e of array to e & t.
|
|
Multiply elements of array by corresponding elements of v.
|
|
Multiply each element of array by t.
|
|
Return a new valarray by applying unary ! to each element.
|
|
Modulo elements of array by corresponding elements of v.
|
|
Set each element e of array to e % t.
|
|
Return a new valarray by applying unary + to each element.
|
|
Add corresponding elements of v to elements of array.
|
|
Add t to each element of array.
|
|
Return a new valarray by applying unary - to each element.
|
|
Subtract corresponding elements of v from elements of array.
|
|
Subtract t to each element of array.
|
|
Divide elements of array by corresponding elements of v.
|
|
Divide each element of array by t.
|
|
Left shift elements of array by corresponding elements of v.
|
|
Left shift each element e of array by t bits.
|
|
Assign elements to an array subset. Assign elements of array to values in ia. Results are undefined if ia is not the same size as this array.
Definition at line 683 of file valarray. References std::__valarray_copy(), indirect_array::_M_array, indirect_array::_M_index, and indirect_array::_M_sz. |
|
Assign elements to an array subset. Assign elements of array to values in ma. Results are undefined if ma is not the same size as this array.
Definition at line 673 of file valarray. References std::__valarray_copy(), mask_array::_M_array, mask_array::_M_mask, and mask_array::_M_sz. |
|
Assign elements to an array subset. Assign elements of array to values in ga. Results are undefined if ga is not the same size as this array.
Definition at line 663 of file valarray. References std::__valarray_copy(), gslice_array::_M_array, gslice_array::_M_index, and valarray::size(). |
|
Assign elements to an array subset. Assign elements of array to values in sa. Results are undefined if sa is not the same size as this array.
Definition at line 653 of file valarray. References std::__valarray_copy(), slice_array::_M_array, slice_array::_M_stride, and slice_array::_M_sz. |
|
Assign elements to a value. Assign all elements of array to t.
Definition at line 645 of file valarray. References std::__valarray_fill(). |
|
Assign elements to an array. Assign elements of array to values in v. Results are undefined if v is not the same size as this array.
Definition at line 636 of file valarray. References std::__valarray_copy(), valarray::_M_data, and valarray::_M_size. |
|
Right shift elements of array by corresponding elements of v.
|
|
Right shift each element e of array by t bits.
|
|
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.
Definition at line 763 of file valarray. References valarray::size(). |
|
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.
|
|
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.
Definition at line 744 of file valarray. References valarray::size(). |
|
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.
Definition at line 732 of file valarray. References valarray::size(). |
|
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 is the size of the input gslice.
Definition at line 724 of file valarray. References gslice::_M_index. |
|
Return an array subset. Returns a slice_array referencing the elements of the array indicated by the slice argument.
Definition at line 715 of file valarray. References gslice::_M_index. |
|
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 is the size of the input slice.
|
|
Return an array subset. Returns a new valarray containing the elements of the array indicated by the slice argument. The new valarray is the size of the input slice.
|
|
Return a reference to the i'th array element.
|
|
Logical xor corresponding elements of v with elements of array.
|
|
Set each element e of array to e ^ t.
|
|
Logical or corresponding elements of v with elements of array.
|
|
Set each element e of array to e | t.
|
|
Return a new valarray by applying unary ~ to each element.
|
|
Resize array. Resize this array to be size and set all elements to c. All references and iterators are invalidated.
Definition at line 838 of file valarray. References std::__valarray_destroy_elements(), std::__valarray_fill_construct(), and std::__valarray_release_memory(). |
|
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 is the same size as the current one. New elements without a value are set to 0. Elements whos 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.
Definition at line 784 of file valarray. References std::__valarray_copy_construct(), and std::__valarray_default_construct(). |
|
Return the number of elements in array.
Definition at line 771 of file valarray. Referenced by valarray::operator=(), gslice_array::operator=(), valarray::operator[](), _IBase< valarray< _Tp > >::size(), _GBase< _Array< _Tp > >::size(), and _GBase::size(). |
|
Return the sum of all elements in the array. Accumulates the sum of all elements into a Tp using +=. The order of adding the elements is unspecified. Definition at line 776 of file valarray. References std::__valarray_sum(). |