Skip to content

Vectors

Defined in: core/vectors.ts:12

The single input representation used everywhere in the library.

Row-major, flat, Float64. This is deliberately the same memory layout DruidJS uses for Matrix.values, so a druid Matrix adapts with zero copying and without importing druid at all (structural typing only — druid stays an optional peer dependency).

PropertyModifierTypeDefined in
dreadonlynumbercore/vectors.ts:15
datareadonlyFloat64Arraycore/vectors.ts:13
nreadonlynumbercore/vectors.ts:14