File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
- # # TODO more comments
1
+ # # The two functions cache the inverse of a given matrix.
2
+ # #
3
+ # # Note: the matrix supplied is always invertible.
2
4
3
- # # Sets the value of the matrix
4
- # # Gets the value of the matrix
5
- # # Sets the inverse
6
- # # Gets the inverse
5
+ # # makeCacheMatrix is a function taking a matrix as it argument.
6
+ # #
7
+ # # It will expose:
8
+ # #
9
+ # # Setting the value of the matrix
10
+ # # Getting the value of the matrix
11
+ # # Setting the inverse of the matrix
12
+ # # Getting the inverse of the matrix
7
13
8
14
makeCacheMatrix <- function (x = matrix ()) {
9
15
i <- NULL
@@ -19,8 +25,9 @@ makeCacheMatrix <- function(x = matrix()) {
19
25
getinverse = getinverse )
20
26
}
21
27
22
-
23
- # # TODO write more comments
28
+ # # Return the inverse of the makeCacheMatrix function.
29
+ # # This will return the cached inverse if it already has been calculated
30
+ # # and a message will be displayed.
24
31
25
32
cacheSolve <- function (x , ... ) {
26
33
# # Return a matrix that is the inverse of 'x'
You can’t perform that action at this time.
0 commit comments