File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- # # funtcion makeCacheMatrix() creates a special "matrix" object that can cache its inverse.
1
+ # # function makeCacheMatrix() creates a special "matrix" object that can cache its inverse.
2
+ # # There are several functions:
3
+ # # 1. set the value of the matrix
4
+ # # 2. get the value of the matrix
5
+ # # 3. set the inverse of the matrix
6
+ # # 4. get the inverse of the matrix
7
+
2
8
makeCacheMatrix <- function (x = matrix ()) {
3
9
m <- NULL
4
10
set <- function (y ) {
@@ -19,7 +25,7 @@ makeCacheMatrix <- function(x = matrix()) {
19
25
cacheSolve <- function (x , ... ) {
20
26
m <- x $ getInverse()
21
27
22
- # # Return a matrix that is the inverse of 'x' if the inverse has already been calculated and cached.
28
+ # # Return a matrix that is the inverse of 'x' if the inverse has already been calculated and cached.
23
29
if (! is.null(m )) {
24
30
message(" getting cached data" )
25
31
return (m )
You can’t perform that action at this time.
0 commit comments