a linear function that takes a vector as input and returns a scalar.