Skip to content

Commit 511eb65

Browse files
committed
rename pow_scalar > powf_scalar
1 parent 837d563 commit 511eb65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust/arrow/src/compute/kernels/arithmetic.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ where
558558
return Ok(unary(array, |x| -x));
559559
}
560560

561-
/// Raise array to the power of a scalar.
562-
pub fn pow_scalar<T>(
561+
/// Raise array with floating point values to the power of a scalar.
562+
pub fn powf_scalar<T>(
563563
array: &PrimitiveArray<T>,
564564
raise: T::Native,
565565
) -> Result<PrimitiveArray<T>>
@@ -853,11 +853,11 @@ mod tests {
853853
#[test]
854854
fn test_primitive_array_raise_power_scalar() {
855855
let a = Float64Array::from(vec![1.0, 2.0, 3.0]);
856-
let actual = pow_scalar(&a, 2.0).unwrap();
856+
let actual = powf_scalar(&a, 2.0).unwrap();
857857
let expected = Float64Array::from(vec![1.0, 4.0, 9.0]);
858858
assert_eq!(expected, actual);
859859
let a = Float64Array::from(vec![Some(1.0), None, Some(3.0)]);
860-
let actual = pow_scalar(&a, 2.0).unwrap();
860+
let actual = powf_scalar(&a, 2.0).unwrap();
861861
let expected = Float64Array::from(vec![Some(1.0), None, Some(9.0)]);
862862
assert_eq!(expected, actual);
863863
}

0 commit comments

Comments
 (0)