Skip to content

Add support for 128-bit integer scalars #450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sudo: required
dist: trusty
matrix:
include:
- rust: 1.22.1
- rust: 1.26.0
env:
- FEATURES='test docs'
- rust: stable
Expand Down
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ provider::
Recent Changes (ndarray)
------------------------

- 0.12.0 (not yet released)

- Add support for 128-bit integer scalars (``i128`` and ``u128``).
- Minimum required Rust version is 1.26.

- 0.11.2

- New documentation; @jturner314 has written a large “ndarray for NumPy users”
Expand Down
4 changes: 4 additions & 0 deletions src/impl_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ impl ScalarOperand for i32 { }
impl ScalarOperand for u32 { }
impl ScalarOperand for i64 { }
impl ScalarOperand for u64 { }
impl ScalarOperand for i128 { }
impl ScalarOperand for u128 { }
impl ScalarOperand for isize { }
impl ScalarOperand for usize { }
impl ScalarOperand for f32 { }
Expand Down Expand Up @@ -250,6 +252,8 @@ mod arithmetic_ops {
all_scalar_ops!(u32);
all_scalar_ops!(i64);
all_scalar_ops!(u64);
all_scalar_ops!(i128);
all_scalar_ops!(u128);

impl_scalar_lhs_op!(bool, Commute, &, BitAnd, bitand, "bit and");
impl_scalar_lhs_op!(bool, Commute, |, BitOr, bitor, "bit or");
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
//! + Efficient floating point matrix multiplication even for very large
//! matrices; can optionally use BLAS to improve it further.
//! + See also the [`ndarray-parallel`] crate for integration with rayon.
//! - **Requires Rust 1.22**
//! - **Requires Rust 1.26**
//!
//! [`ndarray-parallel`]: https://docs.rs/ndarray-parallel
//!
Expand Down