Skip to content
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 examples/type_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn main()
{
// Converting an array from one datatype to another is implemented with the
// `ArrayBase::mapv()` function. We pass a closure that is applied to each
// element independently. This allows for more control and flexiblity in
// element independently. This allows for more control and flexibility in
// converting types.
//
// Below, we illustrate four different approaches for the actual conversion
Expand Down
8 changes: 4 additions & 4 deletions src/impl_owned_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl<A> Array<A, Ix2>
/// along the "growing axis". However, if the memory layout needs adjusting, the array must
/// reallocate and move memory.
///
/// The operation leaves the existing data in place and is most efficent if one of these is
/// The operation leaves the existing data in place and is most efficient if one of these is
/// true:
///
/// - The axis being appended to is the longest stride axis, i.e the array is in row major
Expand Down Expand Up @@ -221,7 +221,7 @@ impl<A> Array<A, Ix2>
/// along the "growing axis". However, if the memory layout needs adjusting, the array must
/// reallocate and move memory.
///
/// The operation leaves the existing data in place and is most efficent if one of these is
/// The operation leaves the existing data in place and is most efficient if one of these is
/// true:
///
/// - The axis being appended to is the longest stride axis, i.e the array is in column major
Expand Down Expand Up @@ -510,7 +510,7 @@ where D: Dimension
/// along the "growing axis". However, if the memory layout needs adjusting, the array must
/// reallocate and move memory.
///
/// The operation leaves the existing data in place and is most efficent if `axis` is a
/// The operation leaves the existing data in place and is most efficient if `axis` is a
/// "growing axis" for the array, i.e. one of these is true:
///
/// - The axis is the longest stride axis, for example the 0th axis in a C-layout or the
Expand Down Expand Up @@ -566,7 +566,7 @@ where D: Dimension
/// along the "growing axis". However, if the memory layout needs adjusting, the array must
/// reallocate and move memory.
///
/// The operation leaves the existing data in place and is most efficent if `axis` is a
/// The operation leaves the existing data in place and is most efficient if `axis` is a
/// "growing axis" for the array, i.e. one of these is true:
///
/// - The axis is the longest stride axis, for example the 0th axis in a C-layout or the
Expand Down
2 changes: 1 addition & 1 deletion src/impl_ref_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
//! Because raw views do not meet `S: Data`, they cannot dereference to `ArrayRef`; furthermore,
//! technical limitations of Rust's compiler means that `ArrayBase` cannot have multiple `Deref` implementations.
//! In addition, shared-data arrays do not want to go down the `Deref` path to get to methods on `RawRef`
//! or `LayoutRef`, since that would unecessarily ensure their uniqueness.
//! or `LayoutRef`, since that would unnecessarily ensure their uniqueness.
//!
//! To mitigate these problems, `ndarray` also provides `AsRef` and `AsMut` implementations as follows:
//! 1. `ArrayBase` implements `AsRef` to `RawRef` and `LayoutRef` when `S: RawData`
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ pub type ArcArray<A, D> = ArrayBase<OwnedArcRepr<A>, D>;
///
/// + [Constructor Methods for Owned Arrays](ArrayBase#constructor-methods-for-owned-arrays)
/// + [Methods For All Array Types](ArrayBase#methods-for-all-array-types)
/// + Dimensionality-specific type alises
/// + Dimensionality-specific type aliases
/// [`Array1`],
/// [`Array2`],
/// [`Array3`], ...,
Expand Down
Loading