VectorStorage
The vector storages koblas defines and serializes, DenseVector and SparseVector.
This is about which types koblas owns the definition of, not about which own their buffers: either may be wrapped around an array the caller keeps a reference to.
Encoded under the storage's own class name, with the numbers under values and any index array named for the axis it indexes, the same as MatrixStorage. A reader of one payload can then predict the others, and a name in a payload always resolves to the type that wrote it.
Inheritors
Properties
Functions
Visit each stored entry as (index, value), in ascending index order for any storage. A SparseVector may present numerical zeros as stored, and any other Vector has every index visited.
Vector norm of type: Norm.One sums absolute values, Norm.Two is the Euclidean norm, and Norm.Infinity and Norm.MaxAbs select the maximum absolute value. An empty vector has norm zero.
Materialise into a fresh dense DoubleArray, independent of the internal storage.