You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cachematrix.R
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff 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.
5
2
6
3
makeCacheMatrix<-function(x=matrix()) {
7
-
4
+
m<-NULL
8
5
}
9
6
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.
0 commit comments