Skip to content

Commit a62fe26

Browse files
authored
Merge pull request #450 from jturner314/int128
Add support for 128-bit integer scalars
2 parents 1120be1 + 9d11198 commit a62fe26

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sudo: required
44
dist: trusty
55
matrix:
66
include:
7-
- rust: 1.22.1
7+
- rust: 1.26.0
88
env:
99
- FEATURES='test docs'
1010
- rust: stable

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ provider::
8888
Recent Changes (ndarray)
8989
------------------------
9090

91+
- 0.12.0 (not yet released)
92+
93+
- Add support for 128-bit integer scalars (``i128`` and ``u128``).
94+
- Minimum required Rust version is 1.26.
95+
9196
- 0.11.2
9297

9398
- New documentation; @jturner314 has written a large “ndarray for NumPy users”

src/impl_ops.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ impl ScalarOperand for i32 { }
3939
impl ScalarOperand for u32 { }
4040
impl ScalarOperand for i64 { }
4141
impl ScalarOperand for u64 { }
42+
impl ScalarOperand for i128 { }
43+
impl ScalarOperand for u128 { }
4244
impl ScalarOperand for isize { }
4345
impl ScalarOperand for usize { }
4446
impl ScalarOperand for f32 { }
@@ -250,6 +252,8 @@ mod arithmetic_ops {
250252
all_scalar_ops!(u32);
251253
all_scalar_ops!(i64);
252254
all_scalar_ops!(u64);
255+
all_scalar_ops!(i128);
256+
all_scalar_ops!(u128);
253257

254258
impl_scalar_lhs_op!(bool, Commute, &, BitAnd, bitand, "bit and");
255259
impl_scalar_lhs_op!(bool, Commute, |, BitOr, bitor, "bit or");

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
//! + Efficient floating point matrix multiplication even for very large
5454
//! matrices; can optionally use BLAS to improve it further.
5555
//! + See also the [`ndarray-parallel`] crate for integration with rayon.
56-
//! - **Requires Rust 1.22**
56+
//! - **Requires Rust 1.26**
5757
//!
5858
//! [`ndarray-parallel`]: https://docs.rs/ndarray-parallel
5959
//!

0 commit comments

Comments
 (0)