Hilbert space treating functions as vectors