Skip to content

Start refactoring model slicer#104

Draft
santisoler wants to merge 1 commit into
model-wiring-matrix-slicerfrom
refactor-model-slicer
Draft

Start refactoring model slicer#104
santisoler wants to merge 1 commit into
model-wiring-matrix-slicerfrom
refactor-model-slicer

Conversation

@santisoler
Copy link
Copy Markdown
Member

The goal is to ditch the slice_matrix in ModelSlice and stop using sparse diagonal arrays to slice models and construct the expanded matrices. Instead, create a new linear operator for them that stores just a slice object, a shape and an offset. The idea is that sparse diagonal arrays use more memory, and indexing with arrays is less efficient than indexing with slices.

There's still work to be done on this, this is just a draft.

The goal is to ditch the `slice_matrix` in `ModelSlice` and stop using
sparse diagonal arrays to slice models and construct the expanded
matrices. Instead, create a new linear operator for them that stores
just a slice object, a shape and an offset. The idea is that sparse
diagonal arrays use more memory, and indexing with arrays is less
efficient than indexing with slices.

There's still work to be done on this, this is just a draft.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant