Skip to content

Commit 9997370

Browse files
committed
added some comments
1 parent 9383980 commit 9997370

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cachematrix.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ makeCacheMatrix <- function(x = matrix()) {
2222
}
2323

2424

25-
## Write a short comment describing this function
25+
## calculate and returns inverse of a matrix data structure (as returned by makeCacheMatrix).
26+
## Caches inverse for subsequent calls. i.e. called more than one time on the same argument
27+
## returns the cached version of the result instead of computing it again.
2628

2729
cacheSolve <- function(x, ...) {
2830
x.inv <- x$get.inv()

0 commit comments

Comments
 (0)