Skip to content

Commit 1cab7d2

Browse files
committed
Edit main docs
1 parent fccd6f5 commit 1cab7d2

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

README.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,20 @@ Status and Lookout
5353

5454
- Performance status:
5555

56-
+ Arithmetic involving arrays of contiguous inner dimension optimizes very well.
57-
+ ``.fold()`` and ``.zip_mut_with()`` are the most efficient ways to
56+
+ Performance of an operation depends on the memory layout of the array
57+
or array view. Especially if it's a binary operation, which
58+
needs matching memory layout to be efficient (with some exceptions).
59+
+ Arithmetic optimizes very well if the arrays are have contiguous inner dimension.
60+
+ The callback based methods like ``.mapv()``, ``.applyv()`` and
61+
``.zip_mut_with()`` are the most efficient ways to
5862
perform single traversal and lock step traversal respectively.
59-
+ ``.iter()`` and ``.iter_mut()`` are efficient for contiguous arrays.
63+
+ ``.iter()`` is efficient for c-contiguous arrays.
6064
+ Can use BLAS in some operations (``dot`` and ``mat_mul``).
6165

6266
Crate Feature Flags
6367
-------------------
6468

65-
The following crate feature flags are available. The are configured in
69+
The following crate feature flags are available. They are configured in
6670
your `Cargo.toml`.
6771

6872
- ``assign_ops``

src/lib.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,19 @@
4343
//! *will be deprecated* when Rust supports `+=` and similar in Rust 1.8.
4444
//! + We try to introduce more static checking gradually.
4545
//! - Performance status:
46-
//! + Arithmetic involving arrays of contiguous inner dimension optimizes very well.
47-
//! + `.fold()` and `.zip_mut_with()` are the most efficient ways to
46+
//! + Performance of an operation depends on the memory layout of the array
47+
//! or array view. Especially if it's a binary operation, which
48+
//! needs matching memory layout to be efficient (with some exceptions).
49+
//! + Arithmetic optimizes very well if the arrays are have contiguous inner dimension.
50+
//! + The callback based methods like ``.mapv()``, ``.applyv()`` and
51+
//! ``.zip_mut_with()`` are the most efficient ways to
4852
//! perform single traversal and lock step traversal respectively.
49-
//! + `.iter()` and `.iter_mut()` are efficient for contiguous arrays.
53+
//! + ``.iter()`` is efficient for c-contiguous arrays.
5054
//! + Can use BLAS in some operations (`dot` and `mat_mul`).
5155
//!
5256
//! ## Crate Feature Flags
5357
//!
54-
//! The following crate feature flags are available. The are configured in your
58+
//! The following crate feature flags are available. They are configured in your
5559
//! `Cargo.toml`.
5660
//!
5761
//! - `assign_ops`

0 commit comments

Comments
 (0)