arr_o_gpu/arr_o_gpu/array/operation/contiguous/
pow.rs

1use crate::{GpuArray, PowFloat, PowInt, PowTrait};
2
3impl GpuArray {
4    pub fn powf<P>(&self, power: &P) -> Result<GpuArray, crate::ArrOgpuErr>
5    where
6        P: PowTrait + PowFloat,
7    {
8        self.module().powf(self, power)
9    }
10
11    pub fn powi<P>(&self, power: &P) -> Result<GpuArray, crate::ArrOgpuErr>
12    where
13        P: PowTrait + PowInt,
14    {
15        self.module().powi(self, power)
16    }
17}