DXMath wrap for structures and matrix functions