Matrix Product NL expression

Hello, I am new to JuMP. I want to create the following non-linear expression:

KdagK = @NLexpression(model, K' * K)

Here, K is a matrix of complex variables. What is the best way to do this?

Thank you!

See Nonlinear Modeling ยท JuMP

You can try @expression instead of @NLexpression, but it supports only linear and quadratic terms. If you have higher order expressions, you currently need to write the scalar expansion.