Added scalar-valued functions of vectors/matrices