Member Functions¶
A¶
functionhistogram_data<Bins, TCount>::above() Returns the count of values that fell above the histogram range.functiontensor<T, NDims>::access(const shape_type &) Returns a reference to the element atindices.functionshape<Dims>::adapt(const shape<indims> &, cbool_t<stop>) Adapt a higher-rank shape to the current rank for indexing.functionshape<0>::adapt(const shape<odims> &, cbool_t<stop>) Adapt any shape to a scalar; always returns the empty shape.functionshape<Dims>::add_at(index_t, cval_t<index_t, Axis>) Addvalueto the axis selected by the template parameter.functionshape<Dims>::add_shape_undef(const shape<dims> &, const shape<dims> &) Variant ofadd_shapethat also propagatesundefined_size.functionshape<Dims>::add_shape(const shape<dims> &, const shape<dims> &) Combine two shapes using the broadcasting rulemax(max(x,y), x + y).functionshape<Dims>::add(const shape<dims> &) Element-wise addition of two shapes.functionshape<Dims>::add(index_t) Addvalueto the last axis.functiontensor<T, NDims>::allocate(size_t) Allocates aligned memory forsizeelements.functionfilter<T>::apply_zeros(T (&)[Size]) Feeds zero-valued samples to the filter and writes its tail to a fixed-size C array.functionfilter<T>::apply_zeros(T *, size_t) Feedssizezero-valued samples to the filter and writes the resulting tail.functionfilter<T>::apply_zeros(univector<T, Tag> &) Feeds zero-valued samples to the filter and writes its tail to a univector.functionfilter<T>::apply(T *, const expression_handle<T, 1> &, size_t) Evaluatessrcinto a raw destination buffer through the filter.functionfilter<T>::apply(T *, const Expr &, size_t) Evaluates the 1-dimensional expressionsrcinto a raw destination buffer through the filter.functionfilter<T>::apply(T *, const T *, size_t) Applies the filter to a raw buffer and writes the result to another buffer.functionfilter<T>::apply(T (&)[Size]) Applies the filter in-place to a fixed-size C array.functionfilter<T>::apply(T *, size_t) Applies the filter in-place to a raw buffer.functionfilter<T>::apply(T (&)[Size], T (&)[Size]) Applies the filter to a fixed-size C array and writes the result to another array.functionfilter<T>::apply(univector<T, Tag> &) Applies the filter in-place to a univector.functionfilter<T>::apply(univector<T, Tag1> &, const univector<T, Tag2> &) Applies the filter to a univector and writes the result to another univector.functionfilter<T>::apply(univector<T, Tag> &, const Expr &) Evaluates the 1-dimensional expressionsrcintodestthrough the filter.functionfilter<T>::apply(univector<T, Tag> &, const expression_handle<T, 1> &) Evaluatessrcintodestthrough the filter.functionunivector_base<T, Class, true>::assign_expr(Input &&) Evaluatesinputand writes the result into the derived vector.functionsmall_buffer<T, Capacity>::assign(const small_buffer<T, Capacity> &) Replaces the contents with a copy ofother.functiontensor<T, NDims>::assign(const T &) Fills the tensor with a scalar value.functiontensor<T, NDims>::assign(const tensor<T, NDims> &) Copies the contents ofsrcinto this tensor. Both tensors must have the same shape.functiontensor<T, NDims>::astype() Returns a tensor with elements converted to typeU.functioninline_vector<T, N>::at(size_type) Returns a const reference to the element atindexwith bounds checking.functioninline_vector<T, N>::at(size_type) Returns a reference to the element atindexwith bounds checking.
B¶
functionexpression_counter<T, Dims>::back()functioninline_vector<T, N>::back() Returns a reference to the last element.functioninline_vector<T, N>::back() Returns a const reference to the last element.functionsmall_buffer<T, Capacity>::back()functionsmall_buffer<T, Capacity>::back()functioninline_vector<T, N>::begin() Returns an iterator to the first element.functioninline_vector<T, N>::begin() Returns a const iterator to the first element.functiontensor<T, NDims>::begin() Returns an iterator to the first element.functionsmall_buffer<T, Capacity>::begin()functionsmall_buffer<T, Capacity>::begin()functionhistogram_data<Bins, TCount>::below() Returns the count of values that fell below the histogram range.functiontensor<T, NDims>::binary_inplace(const tensor<U, dims> &, Fn &&) Applies a binary function element-wise withrhsin place.functiontensor<T, NDims>::binary(const tensor<U, dims> &, Fn &&) Applies a binary function element-wise withrhsand returns the resulting tensor.
C¶
functiontensor<T, NDims>::calc_index(const shape_type &) Computes the linear offset of the element atindicesusing the tensor's strides.functioninline_vector<T, N>::cbegin() Returns a const iterator to the first element.functionsmall_buffer<T, Capacity>::cbegin()functioninline_vector<T, N>::cend() Returns a const iterator to one past the last element.functionsmall_buffer<T, Capacity>::cend()functionsmall_buffer<T, Capacity>::clear() Resets the buffer to zero elements, releasing any heap allocation.functionexpression_traits<expression_concatenate<Arg1, Arg2, ConcatAxis>>::concat_shape(const shape<dims> &, const shape<dims> &)functiontensor<T, NDims>::contiguous_begin() Returns a contiguous iterator to the first element. The tensor must be contiguous.functiontensor<T, NDims>::contiguous_begin_unsafe() Returns a contiguous iterator to the first element without checking contiguity.functiontensor<T, NDims>::contiguous_end() Returns a contiguous iterator past the last element. The tensor must be contiguous.functiontensor<T, NDims>::contiguous_end_unsafe() Returns a contiguous iterator past the last element without checking contiguity.functiontensor<T, NDims>::copy() Returns a deep copy of the tensor.functiontensor<T, NDims>::copy_from(const tensor<T, NDims> &) Copies the contents ofotherinto this tensor.functionunivector_base<T, Class, true>::cref() Returns a const reference to the underlying data.functionunivector_base<T, Class, false>::cref() Returns a const reference to the underlying data.
D¶
functioninline_vector<T, N>::data() Returns a pointer to the underlying element storage.functioninline_vector<T, N>::data() Returns a const pointer to the underlying element storage.functiontensor<T, NDims>::data() Returns a pointer to the underlying data.functionsmall_buffer<T, Capacity>::data()functionsmall_buffer<T, Capacity>::data()functiontensor<T, NDims>::deallocate(T *) Deallocates memory previously returned by allocate().functionshape<Dims>::dims() Returns the number of dimensions (compile-time constant).functionshape<0>::dims() Returns the number of dimensions (always 0).functionshape<dynamic_shape>::dims() Returns the number of dimensions at run time.functionshape<0>::dot(const shape<0> &) Dot product with another scalar shape; the empty product is 0.functionshape<Dims>::dot(const shape<dims> &) Dot product of the two shapes (element-wise multiply and sum).
E¶
functioninline_vector<T, N>::empty() Returnstrueif the vector holds no elements.functiontensor<T, NDims>::empty() Returnstrueif the tensor has no elements.functionsmall_buffer<T, Capacity>::empty()functioninline_vector<T, N>::end() Returns an iterator to one past the last element.functioninline_vector<T, N>::end() Returns a const iterator to one past the last element.functiontensor<T, NDims>::end() Returns the end sentinel iterator.functionsmall_buffer<T, Capacity>::end()functionsmall_buffer<T, Capacity>::end()functionexpression_vtable<T, Dims>::expression_vtable<T, Dims>(ctype_t<Expression>) Build the vtable for concrete expression typeExpression.functionshape<Dims>::extend(index_t) Promote the shape to a higher rank by prepending axes.functionshape<0>::extend(index_t) Promote the scalar shape to a higher rank by prepending axes of sizevalue.
F¶
functiontensor<T, NDims>::finalizer() Returns the memory finalizer holding the data alive.functionexpression_with_arguments<Args>::first() Returns a reference to the first argument.functionexpression_with_arguments<Args>::first() Returns a const reference to the first argument.functionexpression_with_arguments<Arg>::first() Returns a reference to the stored argument.functionexpression_with_arguments<Arg>::first() Returns a const reference to the stored argument.functiontensor<T, NDims>::tensor_iterator::flat_index() Returns the flat (linear) index of the current element.functiontensor<T, NDims>::flatten() Returns a 1D tensor view of the data.functiontensor<T, NDims>::flatten_may_copy(bool) Returns a 1D tensor view of the data, copying if necessary.functionexpression_with_arguments<Args>::fold_idx(Fn &&) Folds a callable over compile-time indices of the arguments.functionexpression_with_arguments<Arg>::fold_idx(Fn &&) Folds a callable over the compile-time index of the argument.functionexpression_with_arguments<Args>::fold(Fn &&) Folds a callable over the stored arguments, passing them by value.functionexpression_with_arguments<Arg>::fold(Fn &&) Folds a callable over the stored argument.functionshape<Dims>::from_flat(size_t) Convert a flat offset to multi-dimensional indices.functionshape<0>::from_flat(size_t) Inverse ofto_flat: returns the empty shape.functionshape<Dims>::from_std_array(const std::array<TI, Dims> &) Build ashapefrom astd::array.functionexpression_counter<T, Dims>::front()functioninline_vector<T, N>::front() Returns a reference to the first element.functioninline_vector<T, N>::front() Returns a const reference to the first element.functionsmall_buffer<T, Capacity>::front()functionsmall_buffer<T, Capacity>::front()
G¶
functionshape<Dims>::ge(const shape<dims> &) Element-wise greater-than-or-equal comparison.functiongenerator<T, VecWidth, Class, Twork>::generate() Produces a vector ofNvalues from the generator and advances its internal state.functionfixed_shape_t<Values>::get()functionexpression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn>::get() Returns the reduced value.functionexpression_adjacent<Fn, E>::get_elements(const expression_adjacent<Fn, E> &, shape<dims>, axis_params<VecAxis, N>)functionexpression_dimensions<Dims, E>::get_elements(const expression_dimensions<Dims, E> &, shape<dims>, axis_params<VecAxis, N>)functionexpression_histogram<Bins, E, TCount>::get_elements(const expression_histogram<Bins, E, TCount> &, const shape<expression_with_traits<E>::dims> &, const axis_params<Axis, N> &)functionexpression_random_normal<T, Dims, Reference>::get_elements(const expression_random_normal<T, Dims, Reference> &, shape<Dims>, axis_params<VecAxis, N>) Internal ADL-provided implementation forfunctionexpression_random_range<T, Dims, Reference>::get_elements(const expression_random_range<T, Dims, Reference> &, shape<Dims>, axis_params<VecAxis, N>) Internal ADL-provided implementation forfunctionexpression_random_uniform<T, Dims, Reference>::get_elements(const expression_random_uniform<T, Dims, Reference> &, shape<Dims>, axis_params<VecAxis, N>) Internal ADL-provided implementation forfunctionexpression_trace<E>::get_elements(const expression_trace<E> &, shape<dims>, axis_params<VecAxis, N>)functiongenerator<T, VecWidth, Class, Twork>::get_elements(const generator<T, VecWidth, Class, Twork> &, const shape<1> &, const axis_params<0, N> &) Internal ADL-provided implementation forgeneratorexpressions. Returns a vector ofNgenerated values at the givenindex.functiontensor<T, NDims>::get_range(index_t &, index_t &, index_t &, signed_index_t, const tensor_range &) Computes the range for a tensor_range specifier. Handles optional start/stop/step, negative indices, and clamping to the axis size.functiontensor<T, NDims>::get_range(index_t &, index_t &, index_t &, signed_index_t, index_t) Computes the range for a single integer index.functiontensor<T, NDims>::get_ranges(shape_type &, shape_type &, shape_type &, cvals_t<index_t, Num...>, const std::tuple<Index...> &) Computes the start, shape, and step for each axis given a set of indices and ranges. Axes without a corresponding index cover the full extent of the axis.functionexpression_traits<T>::get_shape()functionexpression_with_traits<Arg>::get_shape()functionexpression_function<Fn, Args>::get_shape() Returns the static shape of the expression type.functionexpression_discard<Tin, Dims>::get_shape()functionexpression_traits<expression_scalar<T>>::get_shape()functionexpression_traits<expression_counter<T, Dims>>::get_shape()functionexpression_traits<expression_slice<Arg>>::get_shape()functionexpression_traits<expression_cast<T, Arg>>::get_shape()functionexpression_traits<expression_lambda<T, Dims, Fn, Rnd>>::get_shape()functionexpression_traits<expression_padded<Arg>>::get_shape()functionexpression_traits<expression_reverse<Arg>>::get_shape()functionexpression_traits<expression_fixshape<Arg, fixed_shape_t<ShapeValues...>>>::get_shape()functionexpression_traits<expression_reshape<Arg, OutDims>>::get_shape()functionexpression_traits<expression_linspace<T, truncated>>::get_shape()functionexpression_traits<expression_concatenate<Arg1, Arg2, ConcatAxis>>::get_shape()functionexpression_unpack<E>::get_shape()functionexpression_dimensions<Dims, E>::get_shape()functionexpression_traits<univector<T, Tag>>::get_shape() Returns the static shape of the univector type. For fixed-size vectors this is the compile-time size; otherwise it isundefined_size.functionexpression_traits<expression_handle<T, Dims>>::get_shape() Static shape query: undefined for an unbound handle.functionexpression_traits<expression_placeholder<T, Dims, Key>>::get_shape() Static shape query: undefined for an unbound placeholder.functiongenerator<T, VecWidth, Class, Twork>::get_shape()functionexpression_traits<tensor<T, Dims>>::get_shape() Returns the static shape of the expression, with undefined extents.functionexpression_random_uniform<T, Dims, Reference>::get_shape()functionexpression_random_range<T, Dims, Reference>::get_shape()functionexpression_random_normal<T, Dims, Reference>::get_shape()functionexpression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn>::get_shape()functiongenerator<T, VecWidth, Class, Twork>::get_shape(const Class &)functionexpression_traits<expression_cast<T, Arg>>::get_shape(const expression_cast<T, Arg> &)functionexpression_traits<expression_concatenate<Arg1, Arg2, ConcatAxis>>::get_shape(const expression_concatenate<Arg1, Arg2, ConcatAxis> &)functionexpression_traits<expression_counter<T, Dims>>::get_shape(const expression_counter<T, Dims> &)functionexpression_dimensions<Dims, E>::get_shape(const expression_dimensions<Dims, E> &)functionexpression_discard<Tin, Dims>::get_shape(const expression_discard<Tin, Dims> &)functionexpression_traits<expression_fixshape<Arg, fixed_shape_t<ShapeValues...>>>::get_shape(const expression_fixshape<Arg, fixed_shape_t<ShapeValues...>> &)functionexpression_function<Fn, Args>::get_shape(const expression_function<Fn, Args...> &) Returns the shape of the expression instance.functionexpression_traits<expression_handle<T, Dims>>::get_shape(const expression_handle<T, Dims> &) Query the shape of the referenced expression via its vtable.functionexpression_traits<expression_lambda<T, Dims, Fn, Rnd>>::get_shape(const expression_lambda<T, Dims, Fn, Rnd> &)functionexpression_traits<expression_linspace<T, truncated>>::get_shape(const expression_linspace<T, truncated> &)functionexpression_traits<expression_padded<Arg>>::get_shape(const expression_padded<Arg> &)functionexpression_traits<expression_placeholder<T, Dims, Key>>::get_shape(const expression_placeholder<T, Dims, Key> &) Shape of the bound expression, orinfinite_sizewhen unbound.functionexpression_random_normal<T, Dims, Reference>::get_shape(const expression_random_normal<T, Dims, Reference> &)functionexpression_random_range<T, Dims, Reference>::get_shape(const expression_random_range<T, Dims, Reference> &)functionexpression_random_uniform<T, Dims, Reference>::get_shape(const expression_random_uniform<T, Dims, Reference> &)functionexpression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn>::get_shape(const expression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn> &)functionexpression_traits<expression_reshape<Arg, OutDims>>::get_shape(const expression_reshape<Arg, OutDims> &)functionexpression_traits<expression_reverse<Arg>>::get_shape(const expression_reverse<Arg> &)functionexpression_traits<expression_scalar<T>>::get_shape(const expression_scalar<T> &)functionexpression_traits<expression_slice<Arg>>::get_shape(const expression_slice<Arg> &)functionexpression_unpack<E>::get_shape(const expression_unpack<E...> &)functionexpression_with_traits<Arg>::get_shape(const expression_with_traits<Arg> &)functionexpression_traits<T>::get_shape(const T &)functionexpression_traits<tensor<T, Dims>>::get_shape(const tensor<T, Dims> &) Returns the shape ofself.functionexpression_traits<univector<T, Tag>>::get_shape(const univector<T, Tag> &) Returns the runtime shape ofu.functiongenerator_sin<T, VecWidth>::get_value() Returns the sine components of the current interleaved cos/sin state.functionrepresentation<fmt_t<kfr::tensor<T, dims>, t, width, prec>>::get(const fmt_t<kfr::tensor<T, dims>, t, width, prec> &) Returns the formatted string representation ofvalue.functionrepresentation<fmt_t<kfr::univector<T, Tag>, t, width, prec>>::get(const fmt_t<kfr::univector<T, Tag>, t, width, prec> &) Returns a string representation ofvaluewith per-element formatting.functionrepresentation<kfr::fraction>::get(const kfr::fraction &)functionrepresentation<kfr::shape<dims>>::get(const kfr::shape<dims> &) Returns the string representation ofvalue.functionrepresentation<kfr::tensor<T, dims>>::get(const kfr::tensor<T, dims> &) Returns the string representation ofvalue.functionrepresentation<kfr::univector<T, Tag>>::get(const kfr::univector<T, Tag> &) Returns a string representation ofvalue.functionrepresentation<kfr::npy_decode_result>::get(kfr::npy_decode_result)functionexpression_with_arguments<Args>::getmask(csize_t<idx>) Returns the dimension mask for the argument at positionidx.functionexpression_with_arguments<Arg>::getmask(csize_t<idx>) Returns the sentinel dimension mask for the single argument.functionunivector<T, Size>::get(size_t, value_type) Returns the element atindex,orfallback_valueifindexis out of range.functionunivector<T, tag_array_ref>::get(size_t, value_type) Returns the element atindex,orfallback_valueifindexis out of range.functionunivector<T, tag_dynamic_vector>::get(size_t, value_type) Returns the element atindex,orfallback_valueifindexis out of range.
H¶
functiontensor<T, NDims>::has_contiguous_strides(const shape_type &, const shape_type &) Returnstrueifstridesdescribe a packed layout in some axis order.functionshape<Dims>::has_infinity() Detect theinfinite_sizesentinel among the axes.functionshape<0>::has_infinity() A scalar shape has no axes, so it can never containinfinite_size.
I¶
functiongenerator_expj<T, VecWidth>::init_cossin(ST, ST) Initializes a vector of complex exponentials with angular frequencywand starting phasephase.functiongenerator_cossin<T, VecWidth>::init_cossin(T, T) Initializes a vector of interleaved cosine/sine pairs with angular frequencywand starting phasephase.functioninline_vector<T, N>::inline_vector<T, N>(Iter, Iter) Creates a vector from the range[first, last).functionexpression_resource::instance()functionexpression_resource_impl<E>::instance()functiontensor<T, NDims>::is_contiguous() Returnstrueif the tensor data is stored contiguously.functiontensor<T, NDims>::tensor_iterator::is_end() Returnstrueif this iterator is the end sentinel.functiontensor<T, NDims>::is_last_contiguous() Returnstrueif the last axis has stride 1.functiontensor<T, NDims>::iterate(Fn &&) Callsfnfor each element together with its multi-dimensional index.
L¶
functionshape<Dims>::le(const shape<dims> &) Element-wise less-than-or-equal comparison.
M¶
functiontensor<T, NDims>::map(Fn &&) Appliesfnto each element and returns the resulting tensor.functionshape<Dims>::min(const shape<dims> &, const shape<dims> &) Element-wise minimum of two shapes.
N¶
functiontensor<T, NDims>::nested_begin() Returns a nested iterator to the first sub-tensor along the first axis.functiontensor<T, NDims>::nested_end() Returns the nested iterator sentinel past the last sub-tensor.functiongenerator_linear<T, VecWidth>::next() Advances the generator state by one native vector width.functiongenerator_exp<T, VecWidth>::next() Advances the generator state by one native vector width using the precomputed multiplicative growth factor.functiongenerator_expj<T, VecWidth>::next() Advances the complex rotation by one native vector width using the recurrence relation.functiongenerator_exp2<T, VecWidth>::next() Advances the generator state by one native vector width using the precomputed multiplicative growth factor.functiongenerator_cossin<T, VecWidth>::next() Advances the rotation by one native vector width using the recurrence relation.functiongenerator_sin<T, VecWidth>::next() Advances the rotation by one native vector width using the recurrence relation.functionfraction::normalize() Reduce the fraction to lowest terms and enforce a positive denominator.
O¶
functionshape<Dims>::operator*() Access the underlying static array.functionshape<Dims>::operator->() Pointer-like access to the underlying static array.functionfraction::operator+() Unary plus (returns a copy of the fraction).functionfraction::operator-() Unary minus (negates the numerator).functiontensor<T, NDims>::tensor_iterator::operator*() Dereferences the iterator to the referenced element.functiontensor<T, NDims>::tensor_iterator::operator->() Accesses the referenced element by pointer.functiontensor<T, NDims>::tensor_iterator::operator++() Prefix increment, advancing to the next element in row-major order.functiontensor<T, NDims>::nested_iterator_t::operator*() Dereferences the iterator to the sub-tensor at the current index.functiontensor<T, NDims>::nested_iterator_t::operator++() Prefix increment, advancing to the next sub-tensor.functionstate_holder<T, false>::operator->() Returns a pointer to the state (const overload).functionstate_holder<T, false>::operator->() Returns a pointer to the state (non-const overload).functionstate_holder<T, false>::operator*() Returns a reference to the state (const overload).functionstate_holder<T, false>::operator*() Returns a reference to the state (non-const overload).functionstate_holder<T, true>::operator->() Returns a pointer to the state (const overload).functionstate_holder<T, true>::operator->() Returns a pointer to the state (non-const overload).functionstate_holder<T, true>::operator*() Returns a reference to the state (const overload).functionstate_holder<T, true>::operator*() Returns a reference to the state (non-const overload).functionfraction::operator+=(const fraction &) Add-assign.functionfraction::operator-=(const fraction &) Subtract-assign.functionfraction::operator*=(const fraction &) Multiply-assign.functionfraction::operator/=(const fraction &) Divide-assign.functionfraction::operator+(const fraction &, const fraction &) Add two fractions.functionfraction::operator-(const fraction &, const fraction &) Subtract two fractions.functionfraction::operator*(const fraction &, const fraction &) Multiply two fractions.functionfraction::operator/(const fraction &, const fraction &) Divide two fractions.functionfraction::operator==(const fraction &, const fraction &) Equality comparison.functionfraction::operator!=(const fraction &, const fraction &) Inequality comparison.functionfraction::operator<(const fraction &, const fraction &) Less-than comparison.functionfraction::operator<=(const fraction &, const fraction &) Less-than-or-equal comparison.functionfraction::operator>(const fraction &, const fraction &) Greater-than comparison.functionfraction::operator>=(const fraction &, const fraction &) Greater-than-or-equal comparison.functiontensor<T, NDims>::operator()(const Index &...) Returns a sub-tensor (slice) selected by a mix of integer indices and tensor_range specifiers. Axes indexed by integers are removed from the result; axes indexed by tensor_range are kept.functioninline_vector<T, N>::operator=(const inline_vector<T, N> &)functioninline_vector<T, N>::operator==(const inline_vector<T, N> &) Returnstrueif both vectors contain the same elements in the same order.functioninline_vector<T, N>::operator!=(const inline_vector<T, N> &) Returnstrueif the vectors differ in size or contents.functiontensor<T, NDims>::nested_iterator_t::operator==(const nested_iterator_t &) Returnstrueif two iterators refer to the same position.functiontensor<T, NDims>::nested_iterator_t::operator!=(const nested_iterator_t &) Returnstrueif two iterators refer to different positions.functionrandom_state::operator=(const random_state &)functionshape<0>::operator==(const shape<0> &) Two scalar shapes are always equal.functionshape<0>::operator!=(const shape<0> &) Two scalar shapes are never unequal.functiontensor<T, NDims>::operator()(const shape_type &, const shape_type &) Returns a sub-tensor (slice) spanning fromstarttostop.functiontensor<T, NDims>::operator=(const T &) Fills the tensor with a scalar value (const overload).functiontensor<T, NDims>::operator=(const T &) Fills the tensor with a scalar value (rvalue overload).functiontensor<T, NDims>::tensor_iterator::operator==(const tensor_iterator &) Returnstrueif two iterators refer to the same position.functiontensor<T, NDims>::tensor_iterator::operator!=(const tensor_iterator &) Returnstrueif two iterators refer to different positions.functiontensor<T, NDims>::operator=(const tensor<T, NDims> &) Copy-assigns the tensor, sharing the data ofsrc.functiontensor<T, NDims>::operator=(const tensor<T, NDims> &) Copy-assigns the tensor fromsrc(const overload).functiontensor<T, NDims>::operator=(const tensor<T, NDims> &) Copy-assigns the tensor fromsrc(rvalue overload).functiontensor<T, NDims>::operator==(const tensor<T, NDims> &, const tensor<T, NDims> &) Returnstrueif both tensors have the same shape and equal elements.functiontensor<T, NDims>::operator==(const tensor<T, NDims> &, tensor<T, NDims> &&) Returnstrueif both tensors have the same shape and equal elements.functiontensor<T, NDims>::operator==(const tensor<T, NDims> &, tensor<T, NDims> &) Returnstrueif both tensors have the same shape and equal elements.functionunivector<T, tag_dynamic_vector>::operator=(const univector<T, tag_dynamic_vector> &)functionexpression_resource_impl<E>::operator Aligned delete overload matching the aligned allocation inmake_resource.functionexpression_function<Fn, Args>::operator=(In &&) Processes an input expression into this output expression.functiontensor<T, NDims>::operator[](index_t) Returns a reference to the element at the given flat index.functioninline_vector<T, N>::operator=(inline_vector<T, N> &&)functionexpression_unpack<E>::operator=(Input &&) Assigns the values ofinputto all wrapped output expressions.functionunivector_base<T, Class, true>::operator=(Input &&) Assigns an expression to the vector. The expression must have at most one dimension; its elements are written to the vector starting at index 0.functionunivector_base<T, Class, false>::operator=(Input &&) Assignment from an expression is disabled for non-expression vectors. Always triggers a static assertion failure.functionunivector<T, tag_dynamic_vector>::operator=(Input &&) Assigns an expression to the vector, resizing it when the expression has a finite size.functiontensor<T, NDims>::operator=(Input &&) Evaluatesinputand assigns the result to this tensor (const overload).functiontensor<T, NDims>::operator=(Input &&) Evaluatesinputand assigns the result to this tensor (rvalue overload).functiontensor<T, NDims>::operator=(Input &&) Evaluatesinputand assigns the result to this tensor (lvalue overload).functiontensor<T, NDims>::tensor_iterator::operator++(int) Postfix increment.functiontensor<T, NDims>::nested_iterator_t::operator++(int) Postfix increment.functionrandom_state::operator=(random_state &&)functionhistogram_data<Bins, TCount>::operator[](size_t) Returns the count in binn.functioninline_vector<T, N>::operator[](size_type) Returns a const reference to the element atindex(no bounds checking).functioninline_vector<T, N>::operator[](size_type) Returns a reference to the element atindex(no bounds checking).functionsmall_buffer<T, Capacity>::operator=(small_buffer<T, Capacity>) Copy- and move-assigns fromotherusing copy-and-swap.functionsmall_buffer<T, Capacity>::operator[](std::size_t)functionsmall_buffer<T, Capacity>::operator[](std::size_t)functiontensor<T, NDims>::operator=(tensor<T, NDims> &&) Move-assigns the tensor fromsrc.functiontensor<T, NDims>::operator==(tensor<T, NDims> &&, const tensor<T, NDims> &) Returnstrueif both tensors have the same shape and equal elements.functiontensor<T, NDims>::operator==(tensor<T, NDims> &, const tensor<T, NDims> &) Returnstrueif both tensors have the same shape and equal elements.functiontensor<T, NDims>::operator==(tensor<T, NDims> &&, tensor<T, NDims> &&) Returnstrueif both tensors have the same shape and equal elements.functiontensor<T, NDims>::operator==(tensor<T, NDims> &&, tensor<T, NDims> &) Returnstrueif both tensors have the same shape and equal elements.functiontensor<T, NDims>::operator==(tensor<T, NDims> &, tensor<T, NDims> &&) Returnstrueif both tensors have the same shape and equal elements.functiontensor<T, NDims>::operator==(tensor<T, NDims> &, tensor<T, NDims> &) Returnstrueif both tensors have the same shape and equal elements.functiontensor_subscript<T, Derived, std::integer_sequence<index_t, Dims...>>::operator()(type_for<index_t, Dims>...) Accesses the element at the given multi-dimensional index.functionunivector<T, tag_dynamic_vector>::operator=(univector<T, tag_dynamic_vector> &&)functionunivector<T, tag_dynamic_vector>::operator=(univector<T, tag_dynamic_vector> &) Copy assignment from a mutable univector (forwards to the const overload).functionshape<Dims>::operator Implicit conversion toindex_tfor 1D shapes.
P¶
functionsmall_buffer<T, Capacity>::pop_back() Removes the last element.functionfilter<T>::process_buffer(T *, const T *, size_t) Filterssizesamples fromsrcintodest.functionexpression_filter<T>::process_buffer(T *, const T *, size_t)functionfilter<T>::process_expression(T *, const expression_handle<T, 1> &, size_t) Evaluatessizesamples of the expressionsrcintodest.functionexpression_filter<T>::process_expression(T *, const expression_handle<T, 1> &, size_t)functionexpression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn>::process(const vec<Tin, N> &)functionexpression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn>::process(const vec<Tin, width> &)functionshape<Dims>::product() Product of every axis size (total number of elements).functionshape<0>::product() Product of all axes; the empty product is 0.functionshape<dynamic_shape>::product() Product of every axis size; 0 for an empty shape.functionsmall_buffer<T, Capacity>::push_back(const T &) Appendsvalueto the end of the buffer.functioninline_vector<T, N>::push_back(T) Appendsvalueto the end of the vector.functionhistogram_data<Bins, TCount>::put(const vec<T, N> &) Adds a vector of values to the histogram, incrementing the appropriate bins.functionhistogram_data<Bins, TCount>::put(T) Adds a single value to the histogram.
R¶
functiontensor<T, NDims>::reduce(Fn &&, T) Reduces all elements usingfnand an initial value.functionunivector_base<T, Class, true>::ref() Returns a mutable reference to the underlying data.functionunivector_base<T, Class, true>::ref() Returns a const reference to the underlying data.functionunivector_base<T, Class, false>::ref() Returns a mutable reference to the underlying data.functionunivector_base<T, Class, false>::ref() Returns a const reference to the underlying data.functionunivector<T, tag_array_ref>::ref() Returns*thisas a reference. Intended for use on rvalues to forward the contained reference without copying.functionshape<Dims>::remove_back() Drop the last axis.functionshape<dynamic_shape>::remove_back() Drop the last axis.functionshape<Dims>::remove_front() Drop the first axis.functionshape<dynamic_shape>::remove_front() Drop the first axis.functiontensor<T, NDims>::require_contiguous() Throws if the tensor is not contiguous.functionfilter<T>::reset() Resets the internal state (such as a delay line).functionexpression_filter<T>::reset() Resets the state of the wrapped expression.functionexpression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn>::reset()functiontensor<T, NDims>::reshape_may_copy(const kfr::shape<dims> &, bool) Returns a tensor with a different shape, copying if necessary.functiontensor<T, NDims>::reshape(const kfr::shape<dims> &) Returns a tensor with a different shape without copying. The tensor must be contiguous.functionunivector<T, Size>::resize(size_t) No-op for API compatibility with dynamically sized vectors.functionunivector<T, tag_array_ref>::resize(size_t) No-op for API compatibility with dynamically sized vectors.functionsmall_buffer<T, Capacity>::resize(std::size_t) Resizes the buffer tonewsizeelements.functiongenerator<T, VecWidth, Class, Twork>::resync(T) Reinitializes the generator state so that the next produced value corresponds to the givenstart.functionshape<Dims>::revindex(size_t) Read an axis by its position from the back.functionshape<0>::revindex(size_t) Read an axis by its position from the back; always returns 1 because there are no axes.functionunivector_base<T, Class, true>::ringbuf_read(size_t &, T &) Reads a single element from the ring buffer atcursorintovalueand advances the cursor.functionunivector_base<T, Class, true>::ringbuf_read(size_t &, T *, size_t) Readsdestsizeelements from the ring buffer atcursorintodest.The buffer is treated as circular: reads that cross the end wrap around to the beginning. Ifdestsizeexceeds the buffer capacity, only the most recentsize()elements are produced and the leading portion ofdestis skipped.cursoris advanced by the number of elements actually read and wrapped into[0,size()).functionunivector_base<T, Class, true>::ringbuf_read(size_t &, vec<T, N> &) ReadsNelements from the ring buffer atcursorinto the SIMD vectorx.functionunivector_base<T, Class, true>::ringbuf_step(size_t &, size_t) Advancescursorbystep,wrapping it into the[0,size()) range.functionunivector_base<T, Class, true>::ringbuf_write(size_t &, const T &) Writes a singlevalueinto the ring buffer atcursorand advances the cursor.functionunivector_base<T, Class, true>::ringbuf_write(size_t &, const T *, size_t) Writessrcsizeelements fromsrcinto the ring buffer starting atcursor.The buffer is treated as circular: data that does not fit before the end wraps around to the beginning. Ifsrcsizeexceeds the buffer capacity, only the most recentsize()elements are kept and the rest is skipped.cursoris advanced by the number of elements actually written and wrapped into[0,size()).functionunivector_base<T, Class, true>::ringbuf_write(size_t &, const vec<T, N> &) Writes theNelements of the SIMD vectorxinto the ring buffer atcursor.functionshape<Dims>::rotate_left() Rotate the axes left by one position.functionshape<dynamic_shape>::rotate_left() Rotate the axes left by one position.functionshape<Dims>::rotate_right() Rotate the axes right by one position.functionshape<dynamic_shape>::rotate_right() Rotate the axes right by one position.
S¶
functionexpression_discard<Tin, Dims>::set_elements(const expression_discard<Tin, Dims> &, shape<Dims>, axis_params<VecAxis, N>, const std::type_identity_t<vec<Tin, N>> &) Discards a vector write.functionexpression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn>::set_elements(expression_reduce<Tout, Dims, Twork, Tin, ReduceFn, TransformFn, FinalFn> &, shape<Dims>, axis_params<VecAxis, N>, const std::type_identity_t<vec<Tin, N>> &)functionexpression_unpack<E>::set_elements(expression_unpack<E...> &, shape<dims>, axis_params<Axis, N>, const std::type_identity_t<vec<value_type, N>> &)functionshape<Dims>::set_revindex(size_t, index_t) Write an axis by its position from the back.functionshape<0>::set_revindex(size_t, index_t) Set an axis by its position from the back; a no-op.functiontensor<T, NDims>::shape() Returns the shape of the tensor.functionshape<dynamic_shape>::shape(shape<Dims>) Construct a dynamic-rank shape from a fixed-rank one.functionshape<0>::size() Returns the number of elements (always 0).functionspsc_ring_buffer<T>::size() Returns an approximate number of elements currently available for dequeue.functioninline_vector<T, N>::size() Returns the number of elements currently stored.functiontensor<T, NDims>::size() Returns the total number of elements in the tensor.functionhistogram_data<Bins, TCount>::size() Returns the number of bins.functionsmall_buffer<T, Capacity>::size()functionunivector_base<T, Class, true>::slice(size_t, size_t) Returns subrange of the vector. If start is greater or equal to this->size, returns empty univector If requested size is greater than this->size, returns only available elementsfunctionunivector_base<T, Class, true>::slice(size_t, size_t) Returns subrange of the vector. If start is greater or equal to this->size, returns empty univector If requested size is greater than this->size, returns only available elementsfunctionexpression_vtable<T, Dims>::static_begin_pass(void *, shape<Dims>, shape<Dims>) begin_pass trampoline: forwards tobegin_passforExpression.functionexpression_vtable<T, Dims>::static_end_pass(void *, shape<Dims>, shape<Dims>) end_pass trampoline: forwards toend_passforExpression.functionexpression_vtable<T, Dims>::static_get_elements(void *, shape<Dims>, T *) get_elements trampoline: forwards toget_elementsforExpression.functionexpression_vtable<T, Dims>::static_reset(void *) reset trampoline: forwards toresetforExpression.functionexpression_vtable<T, Dims>::static_set_elements(void *, shape<Dims>, const T *) set_elements trampoline: forwards toset_elementsforExpression.functionexpression_vtable<T, Dims>::static_shapeof(void *, shape<Dims> &) shapeof trampoline: queriesexpression_traits::get_shapeforExpression.functionexpression_vtable<T, Dims>::static_substitute(void *, expression_handle<T, Dims>) substitute trampoline: invokeskfr::substituteonExpression.functiontensor<T, NDims>::strides() Returns the strides of the tensor.functionshape<Dims>::sub_shape_undef(const shape<dims> &, const shape<dims> &) Variant ofsub_shapethat also propagatesundefined_size.functionshape<Dims>::sub_shape(const shape<dims> &, const shape<dims> &) Subtract one shape from another, treatinginfinite_sizeas infinite.functionshape<Dims>::sub(const shape<dims> &) Element-wise subtraction of two shapes.functionexpression_handle<T, Dims>::substitute(expression_handle<T, Dims>) Replace the placeholder inside the referenced expression withnew_handle.functionshape<Dims>::sum() Sum of every axis size.functionsmall_buffer<T, Capacity>::swap(small_buffer<T, Capacity> &, small_buffer<T, Capacity> &) Swaps the contents of two buffers.functiongenerator_linear<T, VecWidth>::sync(T) Reinitializes the generator so the next vector starts atstart.functiongenerator_exp<T, VecWidth>::sync(T) Reinitializes the generator so the next vector starts atstart.functiongenerator_expj<T, VecWidth>::sync(T) Reinitializes the generator so the next vector starts at phasestart.functiongenerator_exp2<T, VecWidth>::sync(T) Reinitializes the generator so the next vector starts atstart.functiongenerator_cossin<T, VecWidth>::sync(T) Reinitializes the generator so the next vector starts at phasestart.functiongenerator_sin<T, VecWidth>::sync(T) Reinitializes the generator so the next vector starts at phasestart.
T¶
functiontensor<T, NDims>::tensor<T, NDims>(const std::initializer_list<std::initializer_list<std::initializer_list<std::initializer_list<U>>>> &) Initializes a 4D tensor from a braced list. Defined for 4D tensors only.functiontensor<T, NDims>::tensor<T, NDims>(const std::initializer_list<std::initializer_list<std::initializer_list<U>>> &) Initializes a 3D tensor from a braced list. Defined for 3D tensors only.functiontensor<T, NDims>::tensor<T, NDims>(const std::initializer_list<std::initializer_list<U>> &) Initializes a 2D tensor from a braced list. Defined for 2D tensors only.functiontensor<T, NDims>::tensor<T, NDims>(const std::initializer_list<U> &) Initializes a 1D tensor from a braced list. Defined for 1D tensors only.functiontensor<T, NDims>::tensor<T, NDims>(Input &&) Constructs a tensor by evaluating an expression.functiontensor<T, NDims>::to_array() Copies the tensor elements into a std::array.functionshape<0>::to_flat(const shape<0> &) Flat offset for a scalar; the only valid offset is 0.functionshape<Dims>::to_flat(const shape<Dims> &) Convert multi-dimensional indices to a flat offset.functionshape<Dims>::to_std_array() Convert the shape to astd::array.functiontensor<T, NDims>::to_string(int, int, std::string, std::string, std::string) Returns a string representation of the tensor.functionshape<Dims>::tomask() Build adimsetmask with bits set for non-collapsed axes.functionshape<0>::tomask() Build adimsetwith all bits set.functionhistogram_data<Bins, TCount>::total() Returns the total number of values added to the histogram.functionshape<Dims>::trailing_zeros() Number of trailing axes of size 1, counting from the back.functionshape<0>::trailing_zeros() A scalar shape has no trailing collapsed axes.functionshape<Dims>::transpose() Reverse the order of the axes.functiontensor<T, NDims>::transpose() Returns a tensor with the order of axes reversed. For 0D and 1D tensors returns*this.functionshape<Dims>::trim() Reduce the shape to a lower rank by dropping leading axes.functionshape<0>::trim() Reduce the scalar shape to a smaller rank.functionshape<Dims>::trunc() Drop the last axis. Synonym forremove_back.functionunivector_base<T, Class, true>::truncate(size_t) Returns subrange of the vector starting from 0. If requested size is greater than this->size, returns only available elementsfunctionunivector_base<T, Class, true>::truncate(size_t) Returns subrange of the vector starting from 0. If requested size is greater than this->size, returns only available elementsfunctionspsc_ring_buffer<T>::try_dequeue(T *, size_t, const univector<T, Tag> &, bool) Attempts to dequeuesizeelements frombufferintodest.functionspsc_ring_buffer<T>::try_enqueue(const T *, size_t, univector<T, Tag> &, bool) Attempts to enqueuesizeelements fromsourceintobuffer.
U¶
functiontensor<T, NDims>::unary_inplace(Fn &&) Appliesfnto each element in place.functiontensor<T, NDims>::unary(Fn &&) Applies a unary function to each element and returns the resulting tensor.functionunivector<T, Size>::univector<T, Size>(const T &, const Args &...) Constructs the vector from a brace-enclosed list of values.functionunivector<T, Size>::univector<T, Size>(Input &&) Constructs the vector and initializes it from an input expression.functionunivector<T, tag_array_ref>::univector<T, tag_array_ref>(const univector<T, Tag> &) Constructs a reference from a const univector of any storage tag.functionunivector<T, tag_array_ref>::univector<T, tag_array_ref>(const univector<U, Tag> &) Constructs a const reference from a const univector of a different element type. Only participates in overload resolution whenTis const-qualified and the underlying element types match after removing const.functionunivector<T, tag_array_ref>::univector<T, tag_array_ref>(univector<T, Tag> &) Constructs a reference from a mutable univector of any storage tag.functionunivector<T, tag_array_ref>::univector<T, tag_array_ref>(univector<U, Tag> &) Constructs a const reference from a mutable univector of a different element type.functionunivector<T, tag_array_ref>::univector<T, tag_array_ref>(univector<U, Tag> &&) Constructs a const reference by taking a reference to the data of a temporary univector.functionunivector<T, tag_dynamic_vector>::univector<T, tag_dynamic_vector>(const std::vector<T, Allocator> &) Deleted overload to prevent construction from astd::vectorwith a foreign allocator.functionunivector<T, tag_dynamic_vector>::univector<T, tag_dynamic_vector>(Input &&) Constructs the vector from an input expression, resizing to the expression's size. The expression must be finite and have at most one dimension.functionunivector<T, tag_dynamic_vector>::univector<T, tag_dynamic_vector>(std::vector<T, Allocator> &&) Deleted overload to prevent construction from astd::vectorwith a foreign allocator.
V¶
functionhistogram_data<Bins, TCount>::values() Returns a reference to the bin counts, excluding the below/above counters.
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.