Skip to content
This repository was archived by the owner on Dec 9, 2018. It is now read-only.
This repository was archived by the owner on Dec 9, 2018. It is now read-only.

Remove the Set trait in favor of the IndexAssign trait #75

@japaric

Description

@japaric

This let us go from

A.slice_mut((a..b, c..d)).set(B.slice((e..f, g..h)));
A.row_mut(0).set(1.);
A.col_mut(1).set(0.)

to

A[(a..b, c..d)] = B.slice((e..f, g..h));
A[0] = 1.;
A[(.., 1)] = 0;

The same thing in Python/NumPy for reference:

A[a:b, c:d] = B[e:f, g:h]
A[0] = 1
A[:, 1] = 0

Blocked on rust-lang/rust#25628

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions