Lines Matching refs:array
80 template<class _Tp> class valarray; // An array of type _Tp
81 class slice; // BLAS-like slice out of an array
83 class gslice; // generalized slice out of an array
85 template<class _Tp> class mask_array; // masked array
86 template<class _Tp> class indirect_array; // indirected array
107 * @brief Smart array designed to support numeric processing.
109 * A valarray is an array that provides constraints intended to allow for
110 * effective optimization of numeric array processing by reducing the
112 * one-dimensional array from which different multidimensional subsets can
115 * @tparam _Tp Type of object in the array.
130 /// Construct an empty array.
133 /// Construct an array with @a n elements.
136 /// Construct an array with @a n elements initialized to @a t.
139 /// Construct an array initialized to the first @a n elements of @a t.
150 /// Construct an array with the same size and values in @a sa.
153 /// Construct an array with the same size and values in @a ga.
156 /// Construct an array with the same size and values in @a ma.
159 /// Construct an array with the same size and values in @a ia.
163 /// Construct an array with an initializer_list of values.
174 * @brief Assign elements to an array.
176 * Assign elements of array to values in @a v.
184 * @brief Move assign elements to an array.
186 * Move assign elements of array to values in @a v.
196 * Assign all elements of array to @a t.
203 * @brief Assign elements to an array subset.
205 * Assign elements of array to values in @a sa. Results are undefined
206 * if @a sa does not have the same size as this array.
213 * @brief Assign elements to an array subset.
215 * Assign elements of array to values in @a ga. Results are undefined
216 * if @a ga does not have the same size as this array.
223 * @brief Assign elements to an array subset.
225 * Assign elements of array to values in @a ma. Results are undefined
226 * if @a ma does not have the same size as this array.
233 * @brief Assign elements to an array subset.
235 * Assign elements of array to values in @a ia. Results are undefined
236 * if @a ia does not have the same size as this array.
246 * Assign elements of array to values in @a __l. Results are undefined
247 * if @a __l does not have the same size as this array.
259 * Return a reference to the i'th array element.
272 * @brief Return an array subset.
274 * Returns a new valarray containing the elements of the array
284 * @brief Return a reference to an array subset.
286 * Returns a new valarray containing the elements of the array
296 * @brief Return an array subset.
298 * Returns a slice_array referencing the elements of the array
307 * @brief Return a reference to an array subset.
309 * Returns a new valarray containing the elements of the array
319 * @brief Return an array subset.
321 * Returns a new valarray containing the elements of the array
324 * the new valarray. Each element of the array is added to the return
333 * @brief Return a reference to an array subset.
335 * Returns a new mask_array referencing the elements of the array
338 * subset. Elements of the array are part of the subset if the
347 * @brief Return an array subset.
349 * Returns a new valarray containing the elements of the array
361 * @brief Return a reference to an array subset.
363 * Returns an indirect_array referencing the elements of the array
388 /// Multiply each element of array by @a t.
391 /// Divide each element of array by @a t.
394 /// Set each element e of array to e % @a t.
397 /// Add @a t to each element of array.
400 /// Subtract @a t to each element of array.
403 /// Set each element e of array to e ^ @a t.
406 /// Set each element e of array to e & @a t.
409 /// Set each element e of array to e | @a t.
412 /// Left shift each element e of array by @a t bits.
415 /// Right shift each element e of array by @a t bits.
418 /// Multiply elements of array by corresponding elements of @a v.
421 /// Divide elements of array by corresponding elements of @a v.
424 /// Modulo elements of array by corresponding elements of @a v.
427 /// Add corresponding elements of @a v to elements of array.
430 /// Subtract corresponding elements of @a v from elements of array.
433 /// Logical xor corresponding elements of @a v with elements of array.
436 /// Logical or corresponding elements of @a v with elements of array.
439 /// Logical and corresponding elements of @a v with elements of array.
442 /// Left shift elements of array by corresponding elements of @a v.
445 /// Right shift elements of array by corresponding elements of @a v.
475 /// Return the number of elements in array.
479 * @brief Return the sum of all elements in the array.
493 * @brief Return a shifted array.
495 * A new valarray is constructed as a copy of this array with elements
499 * position is outside the bounds of the array are discarded.
502 * Negative arguments discard elements from the top of the array.
510 * @brief Return a rotated array.
512 * A new valarray is constructed as a copy of this array with elements
515 * current one. Elements that are shifted beyond the array bounds are
516 * shifted into the other end of the array. No elements are lost.
527 * @brief Apply a function to the array.
530 * applying func to the corresponding element of this array. The new
531 * array has the same size as this one.
539 * @brief Apply a function to the array.
542 * applying func to the corresponding element of this array. The new
543 * array has the same size as this one.
551 * @brief Resize array.
553 * Resize this array to @a size and set all elements to @a c. All
556 * @param __size New array size.