Change encoder to use logified matrices.