@@ -296,9 +296,9 @@ function MatrixAlgebraKit.check_input(::typeof(qr_null!), t::AbstractTensorMap,
296296
297297 # space checks
298298 V_Q = infimum (fuse (codomain (t)), fuse (domain (t)))
299- V_N = setdiff (fuse (codomain (t)), V_Q)
299+ V_N = ⊖ (fuse (codomain (t)), V_Q)
300300 space (N) == (codomain (t) ← V_N) ||
301- throw (SpaceMismatch (" `qr_null!(t, N)` requires `space(N) == (codomain(t) ← setdiff (fuse(codomain(t)), infimum(fuse(codomain(t)), fuse(domain(t))))`" ))
301+ throw (SpaceMismatch (" `qr_null!(t, N)` requires `space(N) == (codomain(t) ← ⊖ (fuse(codomain(t)), infimum(fuse(codomain(t)), fuse(domain(t))))`" ))
302302
303303 return nothing
304304end
322322function MatrixAlgebraKit. initialize_output (:: typeof (qr_null!), t:: AbstractTensorMap ,
323323 :: MatrixAlgebraKit.AbstractAlgorithm )
324324 V_Q = infimum (fuse (codomain (t)), fuse (domain (t)))
325- V_N = setdiff (fuse (codomain (t)), V_Q)
325+ V_N = ⊖ (fuse (codomain (t)), V_Q)
326326 N = similar (t, codomain (t) ← V_N)
327327 return N
328328end
@@ -414,9 +414,9 @@ function MatrixAlgebraKit.check_input(::typeof(lq_null!), t::AbstractTensorMap,
414414
415415 # space checks
416416 V_Q = infimum (fuse (codomain (t)), fuse (domain (t)))
417- V_N = setdiff (fuse (domain (t)), V_Q)
417+ V_N = ⊖ (fuse (domain (t)), V_Q)
418418 space (N) == (V_N ← domain (t)) ||
419- throw (SpaceMismatch (" `lq_null!(t, N)` requires `space(N) == setdiff (fuse(domain(t)), infimum(fuse(codomain(t)), fuse(domain(t)))`" ))
419+ throw (SpaceMismatch (" `lq_null!(t, N)` requires `space(N) == ⊖ (fuse(domain(t)), infimum(fuse(codomain(t)), fuse(domain(t)))`" ))
420420
421421 return nothing
422422end
440440function MatrixAlgebraKit. initialize_output (:: typeof (lq_null!), t:: AbstractTensorMap ,
441441 :: MatrixAlgebraKit.AbstractAlgorithm )
442442 V_Q = infimum (fuse (codomain (t)), fuse (domain (t)))
443- V_N = setdiff (fuse (domain (t)), V_Q)
443+ V_N = ⊖ (fuse (domain (t)), V_Q)
444444 N = similar (t, V_N ← domain (t))
445445 return N
446446end
@@ -634,16 +634,16 @@ function MatrixAlgebraKit.check_input(::typeof(left_null!), t::AbstractTensorMap
634634
635635 # space checks
636636 V_Q = infimum (fuse (codomain (t)), fuse (domain (t)))
637- V_N = setdiff (fuse (codomain (t)), V_Q)
637+ V_N = ⊖ (fuse (codomain (t)), V_Q)
638638 space (N) == (codomain (t) ← V_N) ||
639- throw (SpaceMismatch (" `left_null!(t, N)` requires `space(N) == (codomain(t) ← setdiff (fuse(codomain(t)), infimum(fuse(codomain(t)), fuse(domain(t))))`" ))
639+ throw (SpaceMismatch (" `left_null!(t, N)` requires `space(N) == (codomain(t) ← ⊖ (fuse(codomain(t)), infimum(fuse(codomain(t)), fuse(domain(t))))`" ))
640640
641641 return nothing
642642end
643643
644644function MatrixAlgebraKit. initialize_output (:: typeof (left_null!), t:: AbstractTensorMap )
645645 V_Q = infimum (fuse (codomain (t)), fuse (domain (t)))
646- V_N = setdiff (fuse (codomain (t)), V_Q)
646+ V_N = ⊖ (fuse (codomain (t)), V_Q)
647647 N = similar (t, codomain (t) ← V_N)
648648 return N
649649end
0 commit comments