Implementation of Mat::pow(float p) is wrong
valeriyvan opened this issue · 0 comments
valeriyvan commented
Line 2124 in 06fabb2
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.