Added scalar/vector-valued functions of vectors/matrices