Skip to content

Commit cc0c426

Browse files
author
Robbepop
committed
merged lib.rs
2 parents 999bd25 + 4a40ac0 commit cc0c426

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4636
-1057
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ sudo: required
44
dist: trusty
55
matrix:
66
include:
7-
- rust: 1.13.0
7+
- rust: 1.15.0
88
env:
99
- FEATURES='test'
1010
- rust: stable
@@ -27,9 +27,10 @@ addons:
2727
script:
2828
- |
2929
cargo build --verbose --no-default-features &&
30+
cargo test --verbose --no-default-features &&
31+
cargo test --release --verbose --no-default-features &&
3032
cargo build --verbose --features "$FEATURES" &&
3133
cargo test --verbose --features "$FEATURES" &&
32-
cargo test --release --verbose --features "" &&
3334
CARGO_TARGET_DIR=target/ cargo test --manifest-path=serialization-tests/Cargo.toml --verbose &&
3435
CARGO_TARGET_DIR=target/ cargo test --manifest-path=numeric-tests/Cargo.toml --verbose &&
3536
CARGO_TARGET_DIR=target/ cargo test --manifest-path=parallel/Cargo.toml --verbose &&

Cargo.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[package]
22

33
name = "ndarray"
4-
version = "0.8.0"
4+
version = "0.9.0-alpha.1"
55
authors = ["bluss"]
66
license = "MIT/Apache-2.0"
77

8+
readme = "README.rst"
9+
810
repository = "https://github.com/bluss/rust-ndarray"
911
documentation = "https://bluss.github.io/rust-ndarray/"
1012

@@ -29,7 +31,7 @@ version = "0.1.32"
2931
default-features = false
3032

3133
[dependencies.itertools]
32-
version = "0.5.0"
34+
version = "0.6.0"
3335

3436
[dependencies.rustc-serialize]
3537
version = "0.3.20"
@@ -44,6 +46,9 @@ matrixmultiply = { version = "0.1.13" }
4446
version = "0.9"
4547
optional = true
4648

49+
[dev-dependencies]
50+
defmac = "0.1"
51+
4752
[features]
4853
blas = ["blas-sys"]
4954

@@ -57,3 +62,6 @@ docs = ["rustc-serialize", "serde"]
5762
[profile.release]
5863
[profile.bench]
5964
debug = true
65+
66+
[package.metadata.release]
67+
no-dev-version = true

README.rst

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ndarray
22
=========
33

44
The ``ndarray`` crate provides an N-dimensional container for general elements
5-
and for numerics. Requires Rust 1.13.
5+
and for numerics.
66

77
Please read the API documentation here: `(0.8)`__, `(0.7)`__, `(0.6)`__,
88
`(0.5)`__, `(0.4)`__, `(0.3)`__, `(0.2)`__
@@ -74,12 +74,80 @@ your `Cargo.toml`.
7474
How to use with cargo::
7575

7676
[dependencies]
77-
ndarray = "0.8"
77+
ndarray = "0.8.4"
7878

7979
Recent Changes (ndarray)
8080
------------------------
8181

82-
- 0.8
82+
- 0.9.0-alpha.1
83+
84+
- Add ``Zip::indexed``
85+
- New methods ``genrows/_mut, gencolumns/_mut, lanes/_mut`` that
86+
return iterable producers (producer means ``Zip`` compatibile).
87+
- ``Zip::apply`` and ``fold_while`` now take ``self`` as the first argument
88+
- ``indices/_of`` now returns an iterable producers (not iterator)
89+
- No allocation for short dynamic dimensions
90+
- Remove ``Ix, Ixs`` from the prelude
91+
- Remove deprecated ``Axis::axis`` method (use ``.index()``)
92+
- Rename ``.whole_chunks`` to ``.exact_chunks``.
93+
- Remove ``.inner_iter`` in favour of the new ``.genrows()`` method.
94+
- Iterator and similar structs are now scoped under ``ndarray::iter``
95+
- Internal changes. ``NdProducer`` generalized. ``Dimension`` gets
96+
the ``Smaller`` type parameter. Internal traits have the private marker now.
97+
- ``IntoNdProducer`` now has the ``Item`` associated type
98+
- Owned array storage types are now encapsulated in newtypes
99+
- ``FoldWhile`` has the method ``is_done``.
100+
- Require Rust 1.15
101+
102+
- 0.8.4
103+
104+
- Use ``Zip`` in ``.all_close()`` (performance improvement)
105+
- Use ``#[inline]`` on a function used for higher dimensional checked
106+
indexing (performance improvement for arrays of ndim >= 3)
107+
- ``.subview()`` has a more elaborate panic message
108+
109+
- 0.8.3
110+
111+
- Fix a bug in ``Zip`` / ``NdProducer`` if an array of at least 3 dimensions
112+
was contig but not c- nor f-contig.
113+
- ``WholeChunksIter/Mut`` now impl ``Send/Sync`` as appropriate
114+
- Misc cleanup and using dimension-reducing versions of inner_iter
115+
internally. Remove a special case in ``zip_mut_with`` that only made it
116+
slower (1D not-contig arrays).
117+
118+
- 0.8.2
119+
120+
- Add more documentation and an example for dynamic dimensions: see
121+
`IxDyn`__. ``IxDyn`` will have a representation change next incompatible
122+
version. Use it as a type alias for best forward compatibility.
123+
- Add iterable and producer ``.whole_chunks_mut(size)``.
124+
- Fix a bug in ``whole_chunks``: it didn't check the dimensionality of the
125+
requested chunk size properly (an ``IxDyn``-only bug).
126+
- Improve performance of ``zip_mut_with`` (and thus all binary operators) for
127+
block slices of row major arrays.
128+
- ``AxisChunksIter`` creation sped up and it implements ``Clone``.
129+
- Dimension mismatch in ``Zip`` has a better panic message.
130+
131+
__ https://bluss.github.io/rust-ndarray/master/ndarray/type.IxDyn.html
132+
133+
- 0.8.1
134+
135+
- Add ``Zip`` and macro ``azip!()`` which implement lock step function
136+
application across elements from one up to six arrays (or in general
137+
producers)
138+
139+
+ Apart from array views, axis iterators and the whole chunks iterable are
140+
also producers
141+
142+
- Add constructor ``Array::uninitialized``
143+
- Add iterable and producer ``.whole_chunks(size)``
144+
- Implement a prettier ``Debug`` for ``Si``.
145+
- Fix ``Array::default`` so that it panics as documented if the size of the
146+
array would wrap around integer type limits.
147+
- Output more verbose panics for errors when slicing arrays (only in debug
148+
mode).
149+
150+
- 0.8.0
83151

84152
- Update serde dependency to 0.9
85153
- Remove deprecated type alias ``OwnedArray`` (use ``Array``)

0 commit comments

Comments
 (0)