Completing matrix3d