Skip to content

Commit d76d6ae

Browse files
authored
Fix check in tensor_product_axis for one-based axes (#191)
1 parent b22523b commit d76d6ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BlockSparseArrays"
22
uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4"
33
authors = ["ITensor developers <support@itensor.org> and contributors"]
4-
version = "0.10.13"
4+
version = "0.10.14"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

ext/BlockSparseArraysTensorAlgebraExt/BlockSparseArraysTensorAlgebraExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ using TensorAlgebra: TensorAlgebra, BlockReshapeFusion, BlockedTuple, matricize,
1010
function TensorAlgebra.tensor_product_axis(
1111
::BlockReshapeFusion, r1::BlockUnitRange, r2::BlockUnitRange
1212
)
13-
isone(first(r1)) || isone(first(r2)) ||
13+
(isone(first(r1)) && isone(first(r2))) ||
1414
throw(ArgumentError("Only one-based axes are supported"))
1515
blockaxpairs = Iterators.product(eachblockaxes1(r1), eachblockaxes1(r2))
1616
blockaxs = vec(splat(tensor_product_axis).(blockaxpairs))

0 commit comments

Comments
 (0)