I am looking for an idiomatic yet efficient way of expressing the trace of the product of two (or more) matrices. I mention above the reasons I consider Compat.dot
alone to be suboptimal (though my example implementation relies on it, naturally).
I am looking for an idiomatic yet efficient way of expressing the trace of the product of two (or more) matrices. I mention above the reasons I consider Compat.dot
alone to be suboptimal (though my example implementation relies on it, naturally).