Skip to content

sparse: materialize lazy transpose/adjoint benchmarks#344

Merged
IanButterworth merged 1 commit into
masterfrom
sparse-transpose-materialize
May 7, 2026
Merged

sparse: materialize lazy transpose/adjoint benchmarks#344
IanButterworth merged 1 commit into
masterfrom
sparse-transpose-materialize

Conversation

@IanButterworth
Copy link
Copy Markdown
Member

🤖
transpose(m) and adjoint(cm) on a SparseMatrixCSC return lazy Transpose/Adjoint wrappers since Julia 1.0 — just a struct allocation, sub-microsecond regardless of matrix size, and dominated by measurement noise. Wrap in copy(...) so the benchmarks actually materialize the transposed matrix and exercise the sparse transpose code path, like their transpose!/adjoint! siblings do.

`transpose(m)` and `adjoint(cm)` on a SparseMatrixCSC return lazy
`Transpose`/`Adjoint` wrappers since Julia 1.0 — just a struct
allocation, sub-microsecond regardless of matrix size, and dominated
by measurement noise. Wrap in `copy(...)` so the benchmarks actually
materialize the transposed matrix and exercise the sparse transpose
code path, like their `transpose!`/`adjoint!` siblings do.
@IanButterworth IanButterworth merged commit c2c6727 into master May 7, 2026
6 of 7 checks passed
@IanButterworth IanButterworth deleted the sparse-transpose-materialize branch May 7, 2026 19:05
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.

2 participants