def scalar_multiply(self, scalar):
		"""Multiply the matrix by a scalar value.

		This is a private function called by __mul__ and __rmul__.
		"""
		r = []
		for row in self.m:				
			r.append(map(lambda x: x*scalar, row))
		return Matrix(r)
Multiply the matrix by a scalar value.

		This is a private function called by __mul__ and __rmul__.
		
recipes/Python/189971_Basic_Linear_Algebra_Matrix/recipe-189971.py