@@ -568,36 +568,6 @@ function is_trace(arg)
568568 return all (length .(get_free_indices .(terms)) .== 2 ) && isempty (get_free_indices (arg))
569569end
570570
571- function reshape (term:: Monomial , indices:: LowerOrUpperIndex... )
572- return Monomial (term. id, indices... )
573- end
574-
575- function reshape (term:: Zero , indices:: LowerOrUpperIndex... )
576- return Zero (indices... )
577- end
578-
579- function reshape (term:: KrD , indices:: LowerOrUpperIndex... )
580- return KrD (indices... )
581- end
582-
583- function reshape (term:: UnaryOperation{Op} , indices:: LowerOrUpperIndex... ) where {Op}
584- return UnaryOperation {Op} (reshape (term. arg, indices... ))
585- end
586-
587- function reshape (
588- term:: BinaryOperation{Op} ,
589- indices:: LowerOrUpperIndex... ,
590- ) where {Op<: AdditiveOperation }
591- return BinaryOperation {Op} (
592- reshape (term. arg1, indices... ),
593- reshape (term. arg2, indices... ),
594- )
595- end
596-
597- function reshape (arg:: BinaryOperation{Pow} , indices:: LowerOrUpperIndex... )
598- return BinaryOperation {Pow} (reshape (arg. arg1, indices... ), arg. arg2)
599- end
600-
601571function to_standard (term:: UnaryOperation{Op} ) where {Op}
602572 return UnaryOperation {Op} (to_standard (term. arg))
603573end
0 commit comments