File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
# # The function call is: cacheSolve(makeCacheMatrix(x))
6
6
# # where x is the invertible matrix.
7
7
8
- # # Write a short comment describing this function
9
-
8
+ # # This function creates a list of items that can be called from another function.
9
+ # # This function is meant to be nested into another function that looks for the list of
10
+ # # items created by this one. The 4 items in the list are: set; get; setinverse; getinverse
10
11
makeCacheMatrix <- function (x = matrix ()) {
11
12
m <- NULL # initializes m
12
13
set <- function (y ) {
@@ -22,7 +23,8 @@ makeCacheMatrix <- function(x = matrix()) {
22
23
}
23
24
24
25
25
- # # Write a short comment describing this function
26
+ # # This function looks for the result of the operation inside the list of the cache function.
27
+ # # If found, it returns the cached value. If not, it computes the inverse of the matrix x.
26
28
27
29
cacheSolve <- function (x , ... ) {
28
30
# # Return a matrix that is the inverse of 'x'
You can’t perform that action at this time.
0 commit comments