File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-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
3
-
4
- # # Write a short comment describing this function
1
+ # # This pair of functions will calculate and cache the inverse of an invertible matrix
5
2
3
+ # # `makeCacheMatrix` accepts an invertible matrix and contains methods to cache inverse value
6
4
makeCacheMatrix <- function (x = matrix ()) {
7
5
# first make a local variable `im` for the inverse matrx
8
6
im <- NULL
@@ -25,9 +23,8 @@ makeCacheMatrix <- function(x = matrix()) {
25
23
}
26
24
27
25
28
- # # Write a short comment describing this function
29
- # # assume matrix `x` is always invertable
30
-
26
+ # # `cacheSolve` accepts an makeCacheMatrix and caclulates the inverted matrix
27
+ # # or retrieves the cached matrix
31
28
cacheSolve <- function (x , ... ) {
32
29
# # Return a matrix that is the inverse of 'x'
33
30
# `x` is a matrix
You can’t perform that action at this time.
0 commit comments