Vector partition functions and generalized dahmen and micchelli spaces