Lines Matching refs:array
78 template<class _Tp> class valarray; // An array of type _Tp
79 class slice; // BLAS-like slice out of an array
81 class gslice; // generalized slice out of an array
83 template<class _Tp> class mask_array; // masked array
84 template<class _Tp> class indirect_array; // indirected array
105 * @brief Smart array designed to support numeric processing.
107 * A valarray is an array that provides constraints intended to allow for
108 * effective optimization of numeric array processing by reducing the
110 * one-dimensional array from which different multidimensional subsets can
113 * @tparam _Tp Type of object in the array.
128 /// Construct an empty array.
131 /// Construct an array with @a n elements.
134 /// Construct an array with @a n elements initialized to @a t.
137 /// Construct an array initialized to the first @a n elements of @a t.
148 /// Construct an array with the same size and values in @a sa.
151 /// Construct an array with the same size and values in @a ga.
154 /// Construct an array with the same size and values in @a ma.
157 /// Construct an array with the same size and values in @a ia.
161 /// Construct an array with an initializer_list of values.
172 * @brief Assign elements to an array.
174 * Assign elements of array to values in @a v.
182 * @brief Move assign elements to an array.
184 * Move assign elements of array to values in @a v.
194 * Assign all elements of array to @a t.
201 * @brief Assign elements to an array subset.
203 * Assign elements of array to values in @a sa. Results are undefined
204 * if @a sa does not have the same size as this array.
211 * @brief Assign elements to an array subset.
213 * Assign elements of array to values in @a ga. Results are undefined
214 * if @a ga does not have the same size as this array.
221 * @brief Assign elements to an array subset.
223 * Assign elements of array to values in @a ma. Results are undefined
224 * if @a ma does not have the same size as this array.
231 * @brief Assign elements to an array subset.
233 * Assign elements of array to values in @a ia. Results are undefined
234 * if @a ia does not have the same size as this array.
244 * Assign elements of array to values in @a __l. Results are undefined
245 * if @a __l does not have the same size as this array.
257 * Return a reference to the i'th array element.
270 * @brief Return an array subset.
272 * Returns a new valarray containing the elements of the array
282 * @brief Return a reference to an array subset.
284 * Returns a new valarray containing the elements of the array
294 * @brief Return an array subset.
296 * Returns a slice_array referencing the elements of the array
305 * @brief Return a reference to an array subset.
307 * Returns a new valarray containing the elements of the array
317 * @brief Return an array subset.
319 * Returns a new valarray containing the elements of the array
322 * the new valarray. Each element of the array is added to the return
331 * @brief Return a reference to an array subset.
333 * Returns a new mask_array referencing the elements of the array
336 * subset. Elements of the array are part of the subset if the
345 * @brief Return an array subset.
347 * Returns a new valarray containing the elements of the array
359 * @brief Return a reference to an array subset.
361 * Returns an indirect_array referencing the elements of the array
386 /// Multiply each element of array by @a t.
389 /// Divide each element of array by @a t.
392 /// Set each element e of array to e % @a t.
395 /// Add @a t to each element of array.
398 /// Subtract @a t to each element of array.
401 /// Set each element e of array to e ^ @a t.
404 /// Set each element e of array to e & @a t.
407 /// Set each element e of array to e | @a t.
410 /// Left shift each element e of array by @a t bits.
413 /// Right shift each element e of array by @a t bits.
416 /// Multiply elements of array by corresponding elements of @a v.
419 /// Divide elements of array by corresponding elements of @a v.
422 /// Modulo elements of array by corresponding elements of @a v.
425 /// Add corresponding elements of @a v to elements of array.
428 /// Subtract corresponding elements of @a v from elements of array.
431 /// Logical xor corresponding elements of @a v with elements of array.
434 /// Logical or corresponding elements of @a v with elements of array.
437 /// Logical and corresponding elements of @a v with elements of array.
440 /// Left shift elements of array by corresponding elements of @a v.
443 /// Right shift elements of array by corresponding elements of @a v.
473 /// Return the number of elements in array.
477 * @brief Return the sum of all elements in the array.
491 * @brief Return a shifted array.
493 * A new valarray is constructed as a copy of this array with elements
497 * position is outside the bounds of the array are discarded.
500 * Negative arguments discard elements from the top of the array.
508 * @brief Return a rotated array.
510 * A new valarray is constructed as a copy of this array with elements
513 * current one. Elements that are shifted beyond the array bounds are
514 * shifted into the other end of the array. No elements are lost.
525 * @brief Apply a function to the array.
528 * applying func to the corresponding element of this array. The new
529 * array has the same size as this one.
537 * @brief Apply a function to the array.
540 * applying func to the corresponding element of this array. The new
541 * array has the same size as this one.
549 * @brief Resize array.
551 * Resize this array to @a size and set all elements to @a c. All
554 * @param __size New array size.