multik icon indicating copy to clipboard operation
multik copied to clipboard

any plan to add `power` function like numpy?

Open kylooh opened this issue 1 year ago • 5 comments

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.

kylooh avatar May 11 '23 09:05 kylooh