pkmital/pkmMatrix

Implementation of Mat::pow(float p) is wrong

valeriyvan opened this issue · 0 comments

vvpowf(data, &p, data, &size);

using vvpowf here is wrong.
from documentation of vvpowf:
* @param z (output) Output vector of size *n. z[i] is set to pow(x[i], y[i]).
* @param y (input) Input vector of size *n, exponent in calculation.
so y, second parameter, is a vector.
At best current implementation will crash, at worth - produce garbage.