Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c00bf9b

Browse files
committed
Added comments to the cachematrix.R file
1 parent 399a22e commit c00bf9b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cachematrix.R

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
## Put comments here that give an overall description of what your
33
## functions do
44

5-
## Write a short comment describing this function
5+
##This is a function that takes a Matrix() as an argument
6+
##The function will return a list
7+
##The List will contain get, set, getInverse, setInverse functions
68

79
makeCacheMatrix <- function(x = matrix()) {
810
inver <- NULL
@@ -20,7 +22,10 @@ makeCacheMatrix <- function(x = matrix()) {
2022
}
2123

2224

23-
## Write a short comment describing this function
25+
##The function takes a list resulting from the makeCacheMatrix() function
26+
##The function will return the inverse of 'x'
27+
##It will solve() the matrix if the value is not cached
28+
##It will return the cache value if it is present
2429

2530
cacheSolve <- function(x, ...) {
2631
## Return a matrix that is the inverse of 'x'

0 commit comments

Comments
 (0)