Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ec73a commit 514c8eaCopy full SHA for 514c8ea
cachematrix.R
@@ -30,8 +30,17 @@ makeCacheMatrix <- function(x = matrix()) {
30
getinverse = getinverse)
31
}
32
33
-## Write a short comment describing this function
34
cacheSolve <- function(x) {
+ # return the inverse of x, where x is a cachable data structure
35
+ # created with makeCacheMatrix. If the matrix hasn't changed the
36
+ # result is returned from the cache
37
+ #
38
+ # Args:
39
+ # x: an instance of makeCacheMatrix containing the matrix to be
40
+ # inverted.
41
42
+ # Returns:
43
+ # The inverse of the matrix (calculated using solve())
44
45
xinverse <- x$getinverse()
46
if(!is.null(xinverse)) {
0 commit comments