Fixed diamond encoders to any dimension