Function that multiplies a matrix and a scalar.
Loads the "*" operator. Matrix A and sinteger f are mulitplied by f * A