Expand description
§strided-kernel
Concrete dtype-erased ordinary arithmetic and indexing dispatch, with the
checked typed APIs re-exported from strided-basic. Runtime-DAG fusion is
provided by the separate strided-fused crate. The two concrete owners do not
depend on one another.
§Scope
- Unary/Binary/N-ary map kernels (
map_into,zip_map*_into) - Reductions (
reduce,reduce_axis) - Prepared plans:
compilevalidates the layout once and returns a handle whoseexecutereuses that work.- Copy and update:
CopyPlan,UpdatePlan - Structural:
SlicePlan,ReversePlan,PadPlan,ConcatenatePlan - Gather family:
GatherSpec/GatherPlan,ScatterSpec/ScatterPlan,DynamicSlicePlan,DynamicUpdateSlicePlan.ScatterPlan::executetakes an element type of the sealedScatterScalarset and wraps integer overflow, likeErasedScatterPlan;execute_with_combinetakes any combine
- Copy and update:
- Dtype-erased replays of the plans above:
ErasedCopyPlan,ErasedUpdatePlan,ErasedConcatenatePlan,ErasedSlicePlan,ErasedReversePlan,ErasedPadPlan,ErasedGatherPlan,ErasedScatterPlan,ErasedDynamicSlicePlan,ErasedDynamicUpdateSlicePlan. Each resolves the runtime dtype, plus the family’s runtime operation where it has one, once per call and then runs a loop monomorphized for both - Single-axis and full erased reductions:
ErasedReducePlan(full and axis reductions), cumulative scans (ErasedScanPlan),argmax/argmin(ErasedArgReducePlan) and fusedlayer_norm/rms_norm(ErasedNormPlan); their tie, NaN and rounding contracts are in the rustdoc - Batched outer product (
batched_outer_product_into,plan_lazy_outer_product/LazyOuterProductLayout) - Runtime-selected one-shot entries for callers that have no plan to reuse:
erased_map_into,erased_zip_into,erased_broadcast_mul_into_uninit,erased_select_into_uninit,erased_clamp_into_uninit,erased_compare_into_uninit - Utility ops (
copy_into,add_acc,dot,sum,symmetrize_into) - Optional parallel execution through
threadteam::Execplacement tokens (parallelfeature)
fused_elementwise_into and the runtime-DAG types stay re-exported from
strided-fused, so those names keep resolving for code written against the 0.4
line. The calls are not source compatible: 0.4 took three arguments, and the
current release line requires a threadteam::Exec placement token as the fourth
(strided-fused/src/fused.rs:1855), so a 0.4 call site fails to compile. New
code imports them from strided-fused; the re-exports survive in 0.14 and may
be removed in a future breaking release.
§Quick Example
use strided_kernel::{map_into, Exec, StridedArray};
let src = StridedArray::<f64>::from_fn_row_major(&[2, 3], |idx| (idx[0] * 3 + idx[1]) as f64);
let mut dst = StridedArray::<f64>::row_major(&[2, 3]);
map_into(&mut dst.view_mut(), &src.view(), |x| 2.0 * x, Exec::serial()).unwrap();
assert_eq!(dst.get(&[1, 2]), 10.0);§Map and Reduce Operations
use strided_kernel::{Exec, StridedArray, map_into, zip_map2_into, reduce};
let a = StridedArray::<f64>::from_fn_row_major(&[4, 5], |idx| idx[0] as f64);
let b = StridedArray::<f64>::from_fn_row_major(&[4, 5], |idx| idx[1] as f64);
let mut out = StridedArray::<f64>::row_major(&[4, 5]);
// Unary map: dest[i] = f(src[i])
map_into(&mut out.view_mut(), &a.view(), |x| x * 2.0, Exec::serial()).unwrap();
// Binary zip map: dest[i] = f(a[i], b[i])
zip_map2_into(&mut out.view_mut(), &a.view(), &b.view(), |x, y| x + y, Exec::serial()).unwrap();
// Full reduction
let total = reduce(&a.view(), |x| x, |a, b| a + b, 0.0, Exec::serial()).unwrap();§Built-in Erased Reduction Order
The built-in erased Sum, Product, and SumSquares reductions have a
narrower, explicit determinism contract than the generic closure-based
reduce API:
- Compact full reductions traverse consecutive physical storage from the logical origin. Other full reductions use the stable fused/block traversal. Axis reductions enumerate reduced coordinates in declared axis order, with the first reduced axis varying fastest.
- Serial compact
f32/f64full reductions use four SIMD accumulators when thesimdfeature is enabled. Other dtype/feature combinations use a fixed eight-lane scalar accumulator. Accumulator lanes are merged in stable order. Generic closure reductions retain their existing association. SumSquaresacceptsf32andf64. Each value is multiplied by itself and rounded in that dtype before the result enters theSumaccumulator. The multiply and add are not contracted into FMA, so overflow and underflow are classified before accumulation. The kernel does not materialize a squared tensor.i32andi64use wrapping sum/product. Floating and complex reductions use same-dtype arithmetic without widening, compensation, conjugation, or fast-math. Reassociation can change roundoff, signed zero, NaN details, and the point at which an intermediate overflows or underflows. Consequently, floating product may differ in finite/zero/infinite/NaN classification from a strict left fold.Exec::serial()and a token of budget one use the same serial algorithm. A fixed budget has deterministic partition and merge order for a fixed executable, target, input, and layout; task completion order does not affect the result. Different budgets may produce different floating or complex roundoff.- Empty sum, product, and sum-of-squares return zero, one, and zero respectively. No tolerance or correctness gate is relaxed for the optimized association.
§High-Level Operations
use strided_kernel::{Exec, StridedArray, copy_into, add_acc, dot, symmetrize_into};
let a = StridedArray::<f64>::from_fn_row_major(&[4, 4], |idx| (idx[0] * 10 + idx[1]) as f64);
let mut out = StridedArray::<f64>::row_major(&[4, 4]);
// Copy
copy_into(&mut out.view_mut(), &a.view(), Exec::serial()).unwrap();
// Accumulating element-wise add: dest[i] += src[i]
add_acc(&mut out.view_mut(), &a.view(), Exec::serial()).unwrap();
// Dot product
let d = dot(&a.view(), &a.view()).unwrap();
// Symmetrize: dest = (src + src^T) / 2
symmetrize_into(&mut out.view_mut(), &a.view(), Exec::serial()).unwrap();§Cache Optimization
The library automatically optimizes iteration order for cache efficiency:
- Dimension Fusion: Contiguous dimensions are fused to reduce loop overhead
- Dimension Reordering: Dimensions are sorted by stride magnitude for optimal memory access
- Tiled Iteration: Operations are blocked to fit in L1 cache (32KB)
- Contiguous Fast Paths: Contiguous arrays bypass blocking for direct iteration
§Parallel Feature
[dependencies]
# 0.16 carries the `*_acc` / `*_into` names and the sealed `ScatterScalar` bound (0.15.0 is the published line until it is released).
strided-kernel = { version = "0.16", features = ["parallel"] }Every operation that can fan out takes a threadteam::Exec placement token as
its last argument; Exec, Pool and PoolBuilder are re-exported from the
crate root. The caller owns a pool, mints a token for a budget of its slots,
and passes it by value. Exec::serial() runs inline on the calling thread.
use strided_kernel::{map_into, Exec, Pool, StridedArray};
let source = StridedArray::<f64>::from_fn_col_major(&[4], |index| index[0] as f64);
let mut destination = StridedArray::<f64>::col_major(&[4]);
let pool = Pool::builder().threads(2).build().unwrap();
map_into(
&mut destination.view_mut(),
&source.view(),
|value| value + 1.0,
Exec::new(&pool, 2).unwrap(),
)
.unwrap();
assert_eq!(destination.into_data(), vec![1.0, 2.0, 3.0, 4.0]);The token carries the budget and the pool, so no thread-local placement state
exists and nested operations split the budget they were given. simd is
enabled by default; parallel lets pooled tokens run on a private threadteam
pool, and without it every token runs inline. Features select implementation
capabilities, not operation families.
§Benchmarks
Run all benchmarks (single-threaded + multi-threaded, Rust + Julia):
bash strided-kernel/benches/run_all.sh # default thread counts: 1 2 4
bash strided-kernel/benches/run_all.sh 1 2 4 8 # custom thread countsOr individually:
# Single-threaded Rust
cargo bench --bench rust_compare --manifest-path strided-kernel/Cargo.toml
# Single-threaded Julia
JULIA_NUM_THREADS=1 julia --project=strided-kernel/benches strided-kernel/benches/julia_compare.jl
# Multi-threaded Rust (N threads)
# The multi-threaded harnesses read STRIDED_KERNEL_BENCH_THREADS, build a pool of
# exactly that width and assert the effective budget; the workspace has no Rayon
# dependency, so RAYON_NUM_THREADS does nothing here.
STRIDED_KERNEL_BENCH_THREADS=N cargo bench --features parallel --bench threaded_compare --manifest-path strided-kernel/Cargo.toml
# Multi-threaded comparison script
bash strided-kernel/benches/run_threaded.sh 1 2 4
# Scaling benchmarks (sum + permute, 1/2/4 threads)
bash strided-kernel/benches/run_scaling.sh
bash strided-kernel/benches/run_scaling.sh 1 2 4 8 # custom thread counts
# Rank-25 tensor permutation (quantum circuit simulation workload)
cargo bench --bench rank25_permute --manifest-path strided-kernel/Cargo.toml
# Rank-25 Julia comparison
JULIA_NUM_THREADS=1 julia --project=strided-kernel/benches strided-kernel/benches/julia_rank25_compare.jl
# Mul kernel comparison against PyTorch CPU at 1T and 4T.
# Requires uv; the script uses uv run --with torch --with numpy so PyTorch
# is installed only in the benchmark environment.
# The PyTorch runner uses torch.mul(..., out=...) to avoid allocator/autograd overhead.
# Noncompact batched outer product includes both compact output and a
# torchlike_output case whose non-contiguous output strides match torch.einsum.
uv --version
STRIDED_KERNEL_MUL_BENCH_PROFILE=full bash strided-kernel/benches/run_mul_pytorch_compare.sh 1 4Published benchmark programs and current measured results live in
strided-rs-benchmark-suite.
§Algorithm Comparison: Julia Strided.jl vs Rust strided-rs
Both implementations share the same core algorithm ported from Strided.jl:
- Dimension fusion — merge contiguous dimensions to reduce loop depth
- Importance-weighted ordering — bit-pack stride orders with output array weighted 2× to determine optimal iteration order
- L1 cache blocking — iteratively halve block sizes until the working set fits in 32 KB
- Reversed loop nesting — innermost loop operates on the highest-importance dimension (smallest stride) for optimal cache access
The key architectural differences are:
| Feature | Julia | Rust |
|---|---|---|
| Kernel generation | @generated unrolls loops per (rank, num_arrays) at compile time | Handwritten 1D/2D/3D/4D specializations + generic N-D fallback |
| Inner-loop SIMD | Explicit @simd pragma on innermost loop | Stride-specialized inner loops: slice-based when stride=1, raw pointer otherwise; LLVM auto-vectorizes them at the SIMD level pulp selects at run time |
| Threading | Recursive dimension-splitting via Threads.@spawn | Recursive dimension-splitting via threadteam::Exec::fork, one child token per half; order-before-fuse pipeline enables layout-agnostic parallelization |
Note: Strided.jl threading bug for non-column-major views. Julia’s pipeline fuses before ordering (
fuse → order → block), so_mapreduce_fuse!only detects column-major contiguity. Permuted views (e.g.PermutedDimsArray(A, (2,1))) with row-major strides are never fused, causing_mapreduce_threaded!to fall through to the single-threaded kernel. strided-rs fixes this by simply reordering the pipeline toorder → fuse → block: ordering first puts smallest-stride dimensions adjacent, and a single fusion pass then catches contiguity regardless of memory layout. See docs/strided_jl_threading_bug.md for a minimal reproduction and root cause analysis. Dtype-erased arithmetic and indexing kernels, with shared typed primitives. Runtime-DAG fusion is provided separately bystrided-fused.
Modules§
- auxiliary
- Auxiliary routines ported from StridedViews.jl/src/auxiliary.jl
- execution
- Execution contract for operation-family implementations.
- injectivity
- Output-layout injectivity validation.
- view
- Julia-like dynamic-rank strided view types.
Structs§
- Adjoint
- Adjoint operation: f(x) = adjoint(x) = conj(transpose(x)) For scalar numbers, this is conj.
- Classed
- An element function together with the
KernelClassit is charged as. - Concatenate
Plan - A compiled multi-input concatenate traversal.
- Conj
- Complex conjugate operation: f(x) = conj(x)
- Copy
Plan - A compiled copy traversal for one
(dims, dst_strides, src_strides)layout pair. - Dynamic
Slice Plan - A compiled fixed-window dynamic-slice traversal.
- Dynamic
Update Slice Plan - A compiled dynamic-update-slice traversal.
- Erased
ArgReduce Plan - Dtype-erased
argmax/argminalong one axis. - Erased
Concatenate Plan - Dtype-erased concatenate wrapper.
- Erased
Copy Plan - Dtype-erased wrapper around
CopyPlan. - Erased
Dynamic Slice Plan - Dtype-erased fixed-window dynamic-slice wrapper.
- Erased
Dynamic Update Slice Plan - Dtype-erased dynamic-update-slice wrapper.
- Erased
Fused Plan - Dtype-erased wrapper around
FusedPlan. - Erased
Gather Plan - Dtype-erased gather wrapper.
- Erased
Norm Plan - Dtype-erased fused
layer_norm/rms_normalong one axis. - Erased
PadPlan - Dtype-erased pad wrapper.
- Erased
RawStrided Mut - Borrowed dtype-erased raw strided output layout.
- Erased
RawStrided Ptr - Pointer-backed dtype-erased input used by one-shot write entry points.
- Erased
RawStrided Ref - Borrowed dtype-erased raw strided input layout.
- Erased
RawStrided Uninit Mut - Borrowed dtype-erased raw strided output whose reachable elements may be uninitialized.
- Erased
Reduce Plan - Dtype-erased reduction wrapper.
- Erased
Reverse Plan - Dtype-erased reverse wrapper.
- Erased
Scan Plan - Dtype-erased cumulative scan (
cumsum/cumprod) along one axis. - Erased
Scatter Plan - Dtype-erased additive scatter wrapper.
- Erased
Slice Plan - Dtype-erased static-slice wrapper.
- Erased
Update Plan - Dtype-erased wrapper around
UpdatePlan. - Exec
budgetslots of aPool, or the calling thread alone.- Fused
Inst - One SSA instruction in a
FusedPlan. - Fused
Plan - Topologically ordered fused elementwise SSA DAG.
- Gather
Plan - A compiled gather traversal for one value layout, index layout, and output layout.
- Gather
Spec - Gather configuration shared by generic and erased replay.
- Identity
- Identity operation: f(x) = x
- Lazy
Outer Product Layout - Storage layout for a lazily ordered outer product.
- Norm
Spec - Kind,
epsand optional affine parameters of anErasedNormPlan. - PadPlan
- A compiled pad traversal.
- Pool
- A fixed set of worker threads that
Exectokens place work on. - Pool
Builder - Configuration of a
Pool. - RawStrided
Mut - Borrowed raw strided output layout.
- RawStrided
Ref - Borrowed raw strided input layout.
- Reverse
Plan - A compiled reverse traversal over selected axes.
- RunIndex
- Rows grouped by destination: CSR offsets plus a stable row permutation.
- RunSum
Plan dest[r, ..] (=|+=) Σ_{j in ptr[r]..ptr[r+1]} src[perm[j], ..].- Scan
Options - Direction and inclusivity of an
ErasedScanPlan. - Scatter
Plan - A compiled additive scatter traversal.
- Scatter
Spec - Scatter configuration shared by generic and erased replay.
- Slice
Plan - A compiled static-slice traversal.
- Strided
Array - Owned strided multidimensional array.
- Strided
View - Dynamic-rank immutable strided view with lazy element operations.
- Strided
View Mut - Dynamic-rank mutable strided view.
- Transpose
- Transpose operation: f(x) = transpose(x) For scalar numbers, this is identity. For matrix elements, this would transpose each element.
- Update
Plan - A compiled read-modify-write traversal for one
(dims, dst_strides, src_strides)layout pair.
Enums§
- ArgReduce
Op - Runtime operation of an
ErasedArgReducePlan. - Compare
Op - Runtime comparison selected once before entering the element loop.
- Erased
MapOp - Runtime unary operation for
erased_map_into. - Erased
ZipOp - Runtime binary operation for
erased_zip_into. - FusedOp
- Runtime scalar operation for a fused elementwise plan.
- KernelD
Type - Dtypes supported by dtype-erased kernel entry points.
- Norm
Kind - Normalization computed by an
ErasedNormPlan. - Reduce
Op - Runtime reduction operation for dtype-erased full reductions.
- ScanOp
- Runtime operation of an
ErasedScanPlan. - Strided
Error - Errors that can occur during strided array operations.
- Update
Op - Runtime unary operation applied to the source of an
ErasedUpdatePlan.
Constants§
- BLOCK_
MEMORY_ SIZE - Block memory size for cache-optimized iteration (L1 cache target).
- CACHE_
LINE_ SIZE - Cache line size in bytes.
- INLINE_
RANK - Maximum rank whose metadata is stored inline without a heap allocation.
- OPERAND_
CAP - Number of operand slots: destination plus up to four inputs.
- RAW_
FUSED_ RANK_ LIMIT - Rank up to which a fused loop nest is stored inline.
Traits§
- Composable
Element Op - Trait for element operations that support type-level composition.
- Compose
- Helper trait for composing two ElementOp types.
- Element
Op - Trait for element-wise operations applied to strided views.
- Element
OpApply - Trait for types that support element operations (conj, transpose, adjoint).
- Fused
Scalar - Scalar types supported by
fused_elementwise_into. - Gather
Index - Index scalar types accepted by
GatherPlan. - Kernel
Storage Element - A scalar type that can safely witness storage for an erased kernel view.
- MapFn
- An element function that carries its
KernelClass. - Maybe
Simd Ops - Trait for types that may have SIMD-accelerated sum/dot operations.
- Scatter
Scalar - Element types accepted by
ScatterPlan::execute.
Functions§
- add_acc
- Accumulating element-wise addition:
dest[i] += src[i]. - axpby_
accum - Update caller-owned contiguous storage:
y = alpha * x + beta * y. - axpy_
acc - Accumulating AXPY:
dest[i] = alpha * src[i] + dest[i]. - axpy_
conj_ raw dest = alpha * conj(src) + destover borrowed raw strided layouts.- axpy_
raw dest = alpha * src + destover borrowed raw strided layouts.- batched_
outer_ product_ into - Compute
dest[lhs_free..., rhs_free..., batch...] = lhs[lhs_free..., batch...] * rhs[rhs_free..., batch...]. - batched_
outer_ product_ into_ uninit - Compute a batched outer product into a fully overwritten uninitialized output.
- broadcast_
mul_ into - Broadcasted element-wise multiplication:
dest[i] = a[i] * b[i]. - broadcast_
mul_ into_ uninit - Broadcast and multiply into a fully overwritten uninitialized output.
- col_
major_ strides - Compute column-major strides (Julia default: first index varies fastest).
- compare_
into - Compare two ordered views elementwise into a Boolean destination.
- compare_
into_ uninit - Compare two views into a fully overwritten uninitialized Boolean output.
- copy_
conj_ into - Overwriting copy with complex conjugation:
dest[i] = conj(src[i]). - copy_
into - Copy elements from source to destination:
dest[i] = src[i]. - copy_
into_ col_ major - Copy elements from
srctodst, optimized for col-major destination. - copy_
into_ uninit - Copy initialized values into a potentially uninitialized destination.
- copy_
scale_ conj_ raw dest = scale * conj(src)over borrowed raw strided layouts.- copy_
scale_ into - Overwriting copy with scaling:
dest[i] = scale * src[i]. - copy_
scale_ raw dest = scale * srcover borrowed raw strided layouts.- copy_
transpose_ scale_ into - Copy with transpose and scaling:
dest[j,i] = scale * src[i,j]. - dot
- Dot product:
sum(OpA::apply(a[i]) * OpB::apply(b[i])). - embed_
diagonal_ into_ uninit - Embed a dense column-major input on a diagonal in a new axis.
- embed_
diagonal_ view_ into_ uninit - Embed a strided input on a diagonal in a new axis of caller-owned contiguous storage.
- erased_
broadcast_ mul_ into_ uninit - Broadcast two same-dtype operands onto the destination axes and multiply them into uninitialized storage.
- erased_
clamp_ into_ uninit - Clamp elementwise into uninitialized storage:
dest[i] = minimum(hi[i], maximum(lo[i], x[i])). - erased_
compare_ into_ uninit - Compare two same-dtype operands elementwise into uninitialized
boolstorage. - erased_
map_ into - Apply one runtime-selected unary operation without compiling a plan.
- erased_
map_ into_ uninit - Apply one runtime-selected unary operation into uninitialized storage.
- erased_
select_ into_ uninit - Select elementwise between two same-dtype operands by a
boolpredicate, writing uninitialized storage:dest[i] = if pred[i] { on_true[i] } else { on_false[i] }. - erased_
zip_ into - Apply one runtime-selected binary operation without compiling a plan.
- erased_
zip_ into_ uninit - Apply one runtime-selected binary operation into uninitialized storage.
- fma_acc
- Accumulating fused multiply-add:
dest[i] += OpA::apply(a[i]) * OpB::apply(b[i]). - fused_
elementwise_ into - Evaluate a runtime-DAG elementwise plan into one or more destinations.
- is_
injective_ layout - Decide whether distinct logical positions map to distinct offsets.
- map_
into - Apply a function element-wise from source to destination.
- map_
into_ uninit_ with_ kernel - Apply an element-wise function into a potentially uninitialized destination, handing a vectorized kernel the flat runs it can take.
- map_
update_ into - Update in place:
dest[i] = f(OpD(dest[i])). - mul_acc
- Accumulating element-wise multiplication:
dest[i] *= src[i]. - mul_
into - Element-wise multiplication:
dest[i] = a[i] * b[i]. - mul_
into_ uninit - Multiply two views into a fully overwritten uninitialized output.
- nan_
propagating_ maximum - NaN-propagating elementwise maximum for real floats.
- nan_
propagating_ minimum - NaN-propagating elementwise minimum for real floats.
- plan_
lazy_ outer_ product - Plan an outer-product output whose memory order follows the inputs’ physical stride order instead of the logical output order.
- reduce
- Full reduction with map function:
reduce(init, op, map.(src)). - reduce_
axis - Reduce along a single axis, returning a new
StridedArray. - reduce_
axis_ into - Reduce along a single axis into caller-owned storage.
- replay_
copy_ raw dest = src, replaying the axes of the two views exactly as given.- replay_
copy_ raw_ uninit replay_copy_rawinto a potentially uninitialized destination.- replay_
map_ raw f(&mut dest[i], src[i])for every element, replaying the axes of the two views exactly as given.- replay_
map_ raw_ fused f(&mut dest[i], src[i])after fusing the two layouts inside the call.- replay_
map_ raw_ serial replay_map_rawon the calling thread, for callbacks and elements that are notSend + Sync:f(&mut dest[i], src[i])for every element, withfanFnMut.- replay_
map_ raw_ uninit dest[i] = f(src[i])into a potentially uninitialized destination.- replay_
map_ raw_ uninit_ fused replay_map_raw_fusedinto a potentially uninitialized destination.- robust_
complex_ divide_ f32 - Divide two
Complex<f32>values by widening toComplex<f64>(Julia’sComplex{Float32}route), so thef32squares cannot overflow. - robust_
complex_ divide_ f64 - Divide two
Complex<f64>values without the|z|²overflow/underflow of the textbook formula. - row_
major_ strides - Compute row-major strides (C default: last index varies fastest).
- sum
- Sum all elements:
sum(src). - symmetrize_
conj_ into - Conjugate-symmetrize a square matrix:
dest = (src + conj(src^T)) / 2. - symmetrize_
into - Symmetrize a square matrix:
dest = (src + src^T) / 2. - triangular_
mask_ into_ uninit - Copy dense column-major matrices, replacing the masked triangle with
fill. - triangular_
mask_ view_ into_ uninit - Mask a triangular region of a strided input into caller-owned contiguous storage.
- zip_
map2_ into - Binary element-wise operation:
dest[i] = f(a[i], b[i]). - zip_
map3_ into - Ternary element-wise operation:
dest[i] = f(a[i], b[i], c[i]). - zip_
map4_ into - Quaternary element-wise operation:
dest[i] = f(a[i], b[i], c[i], e[i]). - zip_
reduce - Two-input mapped reduction:
reduce(init, op, map.(a[i], b[i])). - zip_
update2_ into - Update in place from one input:
dest[i] = f(OpD(dest[i]), OpA(a[i])). - zip_
update3_ into - Update in place from two inputs:
dest[i] = f(OpD(dest[i]), OpA(a[i]), OpB(b[i])).
Type Aliases§
- AxisVec
- Axis metadata with inline storage for up to
INLINE_RANKdimensions. - Inline
Vec - Inline vector of at most
strided_view::INLINE_RANKelements. - Operand
Vec - Inline vector of at most
OPERAND_CAPoperands (strides, offsets, …). - Result
- Result type for strided array operations.
- Stride
Vec - Stride metadata with inline storage for up to
INLINE_RANKdimensions.