Question: Transformation of matrix expression with non-commutative multiplications &*

Hi all!

I want to restructure some expressinon with non-commutative matrix multiplications &*.

It's needed to transform

expr = `&*`(A, z) + `&*`(B, K, z)

to

expr = `&*`(A + `&*`(B, K), z)

How can i do that? Simplify, collect and factor commands don't work. 

Thank you.

Please Wait...