koblas

asum

Sum of absolute values (BLAS dasum). Sparse vectors sum over stored entries only.

axpy

y = y + alpha * x. A sparse x touches only the positions it stores.

copy

dst = src (BLAS dcopy). A sparse source zero-fills the destination first, so nothing survives.

dot

aT * b. Any sparse operand goes through F64SparseKernels, walking the stored entries only.

forEachStored

inline fun F64VectorLike.forEachStored(block: (i: Int, v: Double) -> Unit)(source)

Visit each stored entry as (index, value), in ascending index order for any storage. A F64SparseVector may present numerical zeros as stored, and any other F64VectorLike has every index visited.

iamax

Index of the entry with maximal absolute value (BLAS idamax), -1 for a zero-length vector. Ties resolve to the lowest index, and a vector with no stored entries returns 0.

norm2

Euclidean norm (BLAS dnrm2). Rescales when the sum of squares would overflow or underflow, so any finite input gives the correct norm.

scale

v = alpha * v.

swap

Exchange the contents of a and b (BLAS dswap).