fix type of sample points from matrix to (nd)array