Prevent heap allocation in diagonal product

Reference issue

fixes #2408 (closed) - product with a diagonal matrix had a heap allocation.

What does this implement/fix?

Just sets the NestByRefBit in the DiagonalMatrix traits to prevent the heap allocation.
Since this bit wasn't set, the Product class was not using a reference type! Instead, it was copying the diagonal matrix.

Edited by Arthur

Merge request reports

Loading