Skip to content

Commit c94a872

Browse files
committed
Adding description about how cacheSolve function works.
1 parent a5a3429 commit c94a872

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cachematrix.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ makeCacheMatrix <- function(x = matrix()) {
2222

2323
}
2424

25-
26-
## Write a short comment describing this function
25+
## The following function returns the inverse value of the matrix
26+
## First it will check whether inverse value has been computed.
27+
## If so, then it will get the result from cache and compute nothing.
28+
## If not, then it computes and then stores the value using setinverse
29+
## function.
2730

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

0 commit comments

Comments
 (0)