I am told that the trace function tr(A) is a linear transformation. But this function maps from the space of matrices to the real numbers. How can this be a linear transformation if the set of real numbers isn't a vector space? Or is it? Can a field also be considered a vector space?