Add the HMatEngine define