la4j
la4j copied to clipboard
New vector methods: NormalizeInPlace
Vector {
Vector normalize(VectorAccumulator acc);
void normalizeInPlace(VectorAccumulator acc);
}
Does 'normalize' mean construction of a vector with length equals 1 or something else? I'm not fully understand why do we need VectorAccumulator
as method argument.
Normalize means divide the vector by it's norm. We need accumulator in order to pass a norm-function.
Please, note that we don't need in-place version for upcoming release.
Just leaving a note here that:
Vector normalize()
Vector normalize(VectorAccumulator acc)
were both added in #206 however:
void normalizeInPlace(VectorAccumulator acc)
was not.
Moving the rest of this task to the next milestone.