Read-only

Arrays

Daf access operations return a read-only result; this allows Daf to cache results for efficiency, which is important when getting the data is slow (e.g., accessing disk data or aggregating data). If you want to modify such results, you need to explicitly create a copy. TODO: Explicitly support the concept of in-place modifications of data in Daf (building on the memory-mapped implementation).

Note

The read-only array functions below are restricted to dealing with normal (dense) arrays, SparseArrays , NamedArrays , and LinearAlgebra arrays (specifically, Transpose and Adjoint ), as these are the types actually used in Daf storage. YMMV if using more exotic matrix types. In theory you could extend the implementation to cover such types as well.

DataAxesFormats.ReadOnly.read_only_array Function
read_only_array(array::AbstractArray):AbstractArray

Return an immutable view of an array . This uses SparseArrays.ReadOnly , and properly deals with NamedArray . If the array is already immutable, it is returned as-is.

Data

Index