Adds header for the scalar*matrix operation.