@@ -303,9 +303,9 @@ If `copy=false`, `tdst` might share data with `tsrc` whenever possible. Otherwis
303303
304304See also [`insertrightunit`](@ref) and [`removeunit`](@ref).
305305"""
306- @constprop :aggressive function insertleftunit (t:: AbstractTensorMap ,
307- i :: Int = numind (t) + 1 ; copy :: Bool = true ,
308- conj :: Bool = false , dual:: Bool = false )
306+ @constprop :aggressive function insertleftunit (t:: AbstractTensorMap , i :: Int = numind (t) + 1 ;
307+ copy :: Bool = true , conj :: Bool = false ,
308+ dual:: Bool = false )
309309 W = insertleftunit (space (t), i; conj, dual)
310310 tdst = similar (t, W)
311311 for (c, b) in blocks (t)
@@ -314,8 +314,8 @@ See also [`insertrightunit`](@ref) and [`removeunit`](@ref).
314314 return tdst
315315end
316316@constprop :aggressive function insertleftunit (t:: TensorMap , i:: Int = numind (t) + 1 ;
317- copy:: Bool = false ,
318- conj :: Bool = false , dual:: Bool = false )
317+ copy:: Bool = false , conj :: Bool = false ,
318+ dual:: Bool = false )
319319 W = insertleftunit (space (t), i; conj, dual)
320320 return TensorMap {scalartype(t)} (copy ? Base. copy (t. data) : t. data, W)
321321end
@@ -360,8 +360,7 @@ This operation undoes the work of [`insertunit`](@ref).
360360 W = removeunit (space (t), i)
361361 return TensorMap {scalartype(t)} (copy ? Base. copy (t. data) : t. data, W)
362362end
363- @constprop :aggressive function removeunit (t:: AbstractTensorMap , i:: Int ;
364- copy:: Bool = true )
363+ @constprop :aggressive function removeunit (t:: AbstractTensorMap , i:: Int ; copy:: Bool = true )
365364 W = removeunit (space (t), i)
366365 tdst = similar (t, W)
367366 for (c, b) in blocks (t)
0 commit comments