Simple functions for vectors and matrices of doubles.