@@ -41,14 +41,14 @@ function VectorInterface.scale!!(t::AbstractTensorMap, α::Number)
4141 return T <: scalartype (t) ? scale! (t, α) : scale (t, α)
4242end
4343function VectorInterface. scale! (ty:: AbstractTensorMap , tx:: AbstractTensorMap , α:: Number )
44- space (ty) == space (tx) || throw (SpaceMismatch (" $(space (ty)) ≠ $(space (tx)) " ))
44+ space (ty) == space (tx) || throw (SpaceMismatch (lazy " $(space(ty)) ≠ $(space(tx))" ))
4545 for ((cy, by), (cx, bx)) in zip (blocks (ty), blocks (tx))
4646 scale! (by, bx, α)
4747 end
4848 return ty
4949end
5050function VectorInterface. scale! (ty:: TensorMap , tx:: TensorMap , α:: Number )
51- space (ty) == space (tx) || throw (SpaceMismatch (" $(space (ty)) ≠ $(space (tx)) " ))
51+ space (ty) == space (tx) || throw (SpaceMismatch (lazy " $(space(ty)) ≠ $(space(tx))" ))
5252 scale! (ty. data, tx. data, α)
5353 return ty
5454end
6666# TODO : remove VectorInterface from calls to `add!` when `TensorKit.add!` is renamed
6767function VectorInterface. add (ty:: AbstractTensorMap , tx:: AbstractTensorMap , α:: Number , β:: Number )
6868 S = check_spacetype (ty, tx)
69- space (ty) == space (tx) || throw (SpaceMismatch (" $(space (ty)) ≠ $(space (tx)) " ))
69+ space (ty) == space (tx) || throw (SpaceMismatch (lazy " $(space(ty)) ≠ $(space(tx))" ))
7070
7171 # result type defaults to TensorMap if the types don't match to avoid assymmetric
7272 # implementation via zerovector(ty, T) vs zerovector(tx, T)
8484function VectorInterface. add! (
8585 ty:: AbstractTensorMap , tx:: AbstractTensorMap , α:: Number , β:: Number
8686 )
87- space (ty) == space (tx) || throw (SpaceMismatch (" $(space (ty)) ≠ $(space (tx)) " ))
87+ space (ty) == space (tx) || throw (SpaceMismatch (lazy " $(space(ty)) ≠ $(space(tx))" ))
8888 for ((cy, by), (cx, bx)) in zip (blocks (ty), blocks (tx))
8989 add! (by, bx, α, β)
9090 end
9393function VectorInterface. add! (
9494 ty:: TensorMap , tx:: TensorMap , α:: Number , β:: Number
9595 )
96- space (ty) == space (tx) || throw (SpaceMismatch (" $(space (ty)) ≠ $(space (tx)) " ))
96+ space (ty) == space (tx) || throw (SpaceMismatch (lazy " $(space(ty)) ≠ $(space(tx))" ))
9797 add! (ty. data, tx. data, α, β)
9898 return ty
9999end
112112# inner
113113# -------
114114function VectorInterface. inner (tx:: AbstractTensorMap , ty:: AbstractTensorMap )
115- space (tx) == space (ty) || throw (SpaceMismatch (" $(space (tx)) ≠ $(space (ty)) " ))
115+ space (tx) == space (ty) || throw (SpaceMismatch (lazy " $(space(tx)) ≠ $(space(ty))" ))
116116 InnerProductStyle (tx) === EuclideanInnerProduct () || throw_invalid_innerproduct (:inner )
117117 T = VectorInterface. promote_inner (tx, ty)
118118 s = zero (T)
@@ -122,7 +122,7 @@ function VectorInterface.inner(tx::AbstractTensorMap, ty::AbstractTensorMap)
122122 return s
123123end
124124function VectorInterface. inner (tx:: TensorMap , ty:: TensorMap )
125- space (tx) == space (ty) || throw (SpaceMismatch (" $(space (tx)) ≠ $(space (ty)) " ))
125+ space (tx) == space (ty) || throw (SpaceMismatch (lazy " $(space(tx)) ≠ $(space(ty))" ))
126126 InnerProductStyle (tx) === EuclideanInnerProduct () || throw_invalid_innerproduct (:inner )
127127 if FusionStyle (sectortype (tx)) isa UniqueFusion # all quantum dimensions are one
128128 return inner (tx. data, ty. data)
0 commit comments