Skip to content

Commit e3abb1a

Browse files
committed
Added comments for the functions defined.
1 parent 7f657dd commit e3abb1a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cachematrix.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
## Put comments here that give an overall description of what your
22
## functions do
33

4-
## Write a short comment describing this function
4+
## makeCacheMatrix: This function creates a special "matrix" object that can cache its inverse.
55

66
makeCacheMatrix <- function(x = matrix()) {
77

88
}
99

10-
11-
## Write a short comment describing this function
10+
## cacheSolve: This function computes the inverse of the special "matrix" returned by makeCacheMatrix above.
11+
## If the inverse has already been calculated (and the matrix has not changed), then the cachesolve should retrieve the
12+
## inverse from the cache.
1213

1314
cacheSolve <- function(x, ...) {
1415
## Return a matrix that is the inverse of 'x'

0 commit comments

Comments
 (0)