Skip to content

Commit

Permalink
update arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Oct 8, 2021
1 parent 08f2a8d commit 6b69df1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions polars/polars-core/src/chunked_array/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ where
type Output = ChunkedArray<T>;

fn add(self, rhs: Self) -> Self::Output {
arithmetic_helper(self, rhs, basic::add::add, |lhs, rhs| lhs + rhs)
arithmetic_helper(self, rhs, basic::add, |lhs, rhs| lhs + rhs)
}
}

Expand All @@ -117,7 +117,7 @@ where
type Output = ChunkedArray<T>;

fn div(self, rhs: Self) -> Self::Output {
arithmetic_helper(self, rhs, basic::div::div, |lhs, rhs| lhs / rhs)
arithmetic_helper(self, rhs, basic::div, |lhs, rhs| lhs / rhs)
}
}

Expand All @@ -128,7 +128,7 @@ where
type Output = ChunkedArray<T>;

fn mul(self, rhs: Self) -> Self::Output {
arithmetic_helper(self, rhs, basic::mul::mul, |lhs, rhs| lhs * rhs)
arithmetic_helper(self, rhs, basic::mul, |lhs, rhs| lhs * rhs)
}
}

Expand All @@ -139,7 +139,7 @@ where
type Output = ChunkedArray<T>;

fn rem(self, rhs: Self) -> Self::Output {
arithmetic_helper(self, rhs, basic::rem::rem, |lhs, rhs| lhs % rhs)
arithmetic_helper(self, rhs, basic::rem, |lhs, rhs| lhs % rhs)
}
}

Expand All @@ -150,7 +150,7 @@ where
type Output = ChunkedArray<T>;

fn sub(self, rhs: Self) -> Self::Output {
arithmetic_helper(self, rhs, basic::sub::sub, |lhs, rhs| lhs - rhs)
arithmetic_helper(self, rhs, basic::sub, |lhs, rhs| lhs - rhs)
}
}

Expand Down Expand Up @@ -246,7 +246,7 @@ where

fn div(self, rhs: N) -> Self::Output {
let rhs: T::Native = NumCast::from(rhs).expect("could not cast");
self.apply_kernel(|arr| Arc::new(basic::div::div_scalar(arr, &rhs)))
self.apply_kernel(|arr| Arc::new(basic::div_scalar(arr, &rhs)))
}
}

Expand All @@ -272,7 +272,7 @@ where

fn rem(self, rhs: N) -> Self::Output {
let rhs: T::Native = NumCast::from(rhs).expect("could not cast");
self.apply_kernel(|arr| Arc::new(basic::rem::rem_scalar(arr, &rhs)))
self.apply_kernel(|arr| Arc::new(basic::rem_scalar(arr, &rhs)))
}
}

Expand Down
8 changes: 4 additions & 4 deletions py-polars/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6b69df1

Please sign in to comment.