We can not perform Matrix calculations with any out of the box solution at the moment. Would it be possible to utilise Arrays Programmatically to achieve what you require?
Though PI ACE can also do intricate calculations, I would recommend using PI AF instead.
The link below provides information on the AFSDK and in particular the Array Methods that could used (click on "AF SDK Reference" link).
If you require real-time calculations and natural scheduling capabilities of ACE, then it can be the proper tool to use. If it's historical batch recalculations or adhoc analyses, then a custom application may be more proper.