Skip to content

FunctionLens for SparseMatrixCSC accessor functions #78

Open
@tkf

Description

@tkf

Once AbstractSparseMatrixCSC API for accessors JuliaLang/julia#33054 is settled, I'd like to add set definitions for them. It'll let us use something like

@set nonzeros(A) = xs

The definition would be something like simply

set(A::SparseMatrixCSC, ::typeof(@lens nonzeros(_)), xs) = @set A.nzval = xs

@jw3126 Does it sound reasonable?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions