FIX: possible to evalate on 1d vectors (instead of matrices)