multik
multik copied to clipboard
any plan to add `power` function like numpy?
I'd like to hava a power
function just like numpy.
Behavoirs:
case 1:
array [1, 2, 3, 4, 5] power number 2 returns [1, 4, 9, 16, 25]
case 2:
array [1, 2, 3, 4, 5] power array [1, 1, 2, 2, 1] returns [1, 2, 9, 16, 5]
case 3:
array [1, 2, 3, 4, 5] power array of [[1, 1, 2, 2, 1], [2, 2, 1, 1, 2]] returns [[1, 2, 9, 16, 5], [1, 4, 3, 4, 25]]
Guys, do you have any plan for this one? Or it is just a not such reasonable case for library design. Or there is already one simliar function with different name.
Thx.