This programming assignment requires to write R function, which is able to cache matrices - potentially time-consuming computations.
We had to write the following functions:
makeCacheMatrix
: This function creates a special "matrix" object that can cache its inverse.cacheSolve
: This function computes the inverse of the special "matrix" returned bymakeCacheMatrix
above. If the inverse has already been calculated (and the matrix has not changed), then thecachesolve
should retrieve the inverse from the cache.