Store vectors and multidimensional arrays. Rather than store a matrix of data like
[[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]]
we store this as
{ data: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], dim: [4, 3]}
This is modelled on the way that odin stores matrices. In odin syntax, the element m[2, 3] has value 9.
m[2, 3]
The data, as a single array
The dimensions as a relatively short array (length 1 to 3 for odin-js curently, limited by support in sums)
Generated using TypeDoc
Store vectors and multidimensional arrays. Rather than store a matrix of data like
we store this as
This is modelled on the way that odin stores matrices. In odin syntax, the element
m[2, 3]
has value 9.