Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9df7589

Browse files
committed
Add comments
1 parent 7f657dd commit 9df7589

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

cachematrix.R

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
## Put comments here that give an overall description of what your
2-
## functions do
3-
4-
## Write a short comment describing this function
1+
## This function creates a special "matrix" object that can cache its inverse.
52

63
makeCacheMatrix <- function(x = matrix()) {
7-
4+
m <- NULL
85
}
96

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

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

0 commit comments

Comments
 (0)