File tree 1 file changed +7
-7
lines changed 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- # # Put comments here that give an overall description of what your
2
- # # functions do
1
+ # # These functions cache previous calculated inverse of a matrix to avoid
2
+ # # possible time-consuming computations.
3
3
4
4
# # Creates a matrix and returns a list containing functions
5
- # # to update the matrix' for inversr caching
5
+ # # to manage and update the matrix' for inversr caching
6
6
7
7
makeCacheMatrix <- function (x = matrix ()) {
8
8
myInv <- NULL
@@ -17,10 +17,10 @@ makeCacheMatrix <- function(x = matrix()) {
17
17
}
18
18
19
19
20
- # # Checks if I have a cached value of the matrix. If I do,
21
- # # return the cached value. If not, calculate the inverse
22
- # # of the incoming matrix via the solve function and cache
23
- # # the inverse value for the next call.
20
+ # # Checks if the matrix list has a cached value of the matrix. If it
21
+ # # does, return the cached value. If not, calculate the inverse
22
+ # # of the matrix via the solve function and cache (or store) the
23
+ # # inverse value for the next call.
24
24
25
25
cacheSolve <- function (x ) {
26
26
invX <- x $ getinv()
You can’t perform that action at this time.
0 commit comments