Skip to content

NdArray trait #339

Open
Open
@bluss

Description

@bluss

We need to traitify the array types, so that we shift from using ArrayBase for generic programming to something more flexible.

Imagine a sketch:

pub fn std_axis<T>(array: T) -> Array<T::Elem, T::Dim::Smaller>
    where T: NdArray,
          T::Elem: Num,
{
     // implementation here.
}

Foreseen problems: How do we conditionalize methods?

  • Can mutate the axes or view
  • Can mutate elements
  • etc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions