ng the value of f, df and
        of the local Jacobian at each node.

        *tri_z*: array of shape (3,) of f nodal values
        *tri_dz*: array of shape (3,2) of df/dx, df/dy nodal values
        *J*: Jacobian matrix in local basis of apex 0

        Returns dof array of shape (9,) so that for each apex iapex:
            dof[iapex*3+0] = f(Ai)
            dof[iapex*3+1] = df(Ai).(AiAi+)
            dof[iapex*3+2] = df(Ai).(AiAi-)]
        r