Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "BlockTensorKit"
uuid = "5f87ffc2-9cf1-4a46-8172-465d160bd8cd"
version = "0.3.12"
version = "0.3.13"
authors = ["Lukas Devos <ldevos98@gmail.com> and contributors"]

[deps]
Expand Down
2 changes: 1 addition & 1 deletion src/tensors/blocktensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Base.parent(t::BlockTensorMap) = t.data
# handle this separately because the storagetype of `AbstractTensorMap` is
# *always* Vector no matter the actual data storage type
TK.storagetype(t::BlockTensorMap{AbstractTensorMap{E, S, N₁, N₂}}) where {E, S, N₁, N₂} =
foldl(TK.promote_storagetype, values(t.data))
mapreduce(TK.storagetype, TK.promote_storagetype, values(t.data); init = TK.storagetype(eltype(t)))

function Base.copyto!(
dest::BlockTensorMap, Rdest::CartesianIndices,
Expand Down
2 changes: 1 addition & 1 deletion src/tensors/sparseblocktensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Base.eltype(::Type{<:SparseBlockTensorMap{TT}}) where {TT} = TT
# handle this separately because the storagetype of `AbstractTensorMap` is
# *always* Vector no matter the actual data storage type
TK.storagetype(t::SparseBlockTensorMap{AbstractTensorMap{E, S, N₁, N₂}}) where {E, S, N₁, N₂} =
foldl(TK.promote_storagetype, nonzero_values(t))
mapreduce(TK.storagetype, TK.promote_storagetype, nonzero_values(t); init = TK.storagetype(eltype(t)))

issparse(::SparseBlockTensorMap) = true
nonzero_keys(t::SparseBlockTensorMap) = keys(t.data)
Expand Down
Loading