File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Matrix inversion is usually a costly computation and their may be some benefit to
2
2
# caching the inverse of a matrix rather than compute it repeatedly.
3
3
4
- # # Write a short comment describing this function
5
- # 1. Set the value of the matrix
6
- # 2. Get the value of the matrix
7
- # 3. Set the value of inverse of the matrix
8
- # 4. Get the value of inverse of the matrix
4
+ # makeCacheMatrix: This function creates a list containing a function for:
5
+ # * Set the value of the matrix
6
+ # * Get the value of the matrix
7
+ # * Set the value of inverse of the matrix
8
+ # * Get the value of inverse of the matrix
9
9
makeCacheMatrix <- function (x = matrix ()) {
10
10
i <- NULL
11
11
@@ -30,7 +30,7 @@ makeCacheMatrix <- function(x = matrix()) {
30
30
# [1,] 0 1
31
31
# [2,] 1 0
32
32
33
- # This function returns the inverse of a matrix. It checks if
33
+ # cacheSolve: This function returns the inverse of a matrix. It checks if
34
34
# the inverse has been cached before.
35
35
cacheSolve <- function (x , ... ) {
36
36
i <- x $ getinverse()
You can’t perform that action at this time.
0 commit comments