Calculates the length of all vectors in an array. Vectors can be of any dimension count.
vectors - Float32Array of size (vector dimension count * vector count). Vectors to measure the length of
vectors
vectorsShape - Should be {vector dimension count, vector count, 1}
vectorsShape
output - Float32Array of size (vector count). For each vector in vectors, its length will be written to this array
output
Calculates the length of all vectors in an array. Vectors can be of any dimension count.
vectors
- Float32Array of size (vector dimension count * vector count). Vectors to measure the length ofvectorsShape
- Should be {vector dimension count, vector count, 1}output
- Float32Array of size (vector count). For each vector invectors
, its length will be written to this array