solver returned by splu requires 1d vector