You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f2a274d
Browse filesBrowse the repository at this point in the historyBrowse files
Write missing sparse entries directly instead of materializing zeros
Blockwise add/scale/permute/braid/transpose/tensoradd!/trace_permute! into a
SparseBlockTensorMap used to read missing entries through getindex, which
allocates a zero-filled block that is then added into. Missing entries are now
allocated uninitialized (TO.tensoralloc, honouring the allocator) and the kernel
is called with β = Zero(); present entries receive β directly. Entries of the
destination that the (sparse) source does not touch are scaled up front, or
dropped for a sparse destination when β == 0, so preallocated destinations keep
their buffers.
VI.scale!(ty, tx, α) is now add!(ty, tx, α, Zero()), and VI.add allocates its
destination with similar instead of zerovector, since every entry is overwritten.
Remove the 8-argument TK.add_transform! methods: TensorKit 0.17.2's
add_transform! takes a conjsrc argument, so these were unreachable (and called
kernels that no longer exist). Merge the AdjointTensorMap-source permute!/
transpose!/braid! methods into the generic ones; the adjoint permute!/transpose!
referenced undefined p₁/p₂ and indexed with p instead of the linear permutation.
Fix SparseTensorArray numout/numin on types (referenced undefined A), and route
braid!(::TensorMap, ::BlockTensorMap) through braid! instead of deprecated add_braid!.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments