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

Skip to content

Commit fe1e592

Browse files
committed
tidied the documentation
1 parent 524bc02 commit fe1e592

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cachematrix.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
## allow an invertible matrix and its inverse to be cached.
33
## The inversion function used is solve()
44

5-
## makeCacheMatrix - returns a cacheable invertible matrix.
5+
## makeCacheMatrix - returns a special cacheable invertible "matrix".
66
## x: is an invertible matrix
77
## set() stores the matrix
88
## get() retrieves the matrix
9-
## setinverse caches the result of of the inversion function
10-
## getinverse retrieves any cached result
9+
## setinverse() caches the result of of the inversion function
10+
## getinverse() retrieves any cached result
1111

1212
makeCacheMatrix <- function(x = matrix()) {
1313
inv <- NULL
@@ -23,6 +23,7 @@ makeCacheMatrix <- function(x = matrix()) {
2323
setinverse <- function(s) inv <<- s
2424
getinverse <- function() inv
2525

26+
# expose functions
2627
list(set = set,
2728
get = get,
2829
setinverse = setinverse,
@@ -31,7 +32,7 @@ makeCacheMatrix <- function(x = matrix()) {
3132

3233

3334
## cacheSolve - returns the cached inverse of a matrix.
34-
## x: is a cacheable invertible matrix defined by calling
35+
## x: is a special cacheable "matrix" defined by calling
3536
## makeCacheMatrix(M), where M is an invertible matrix
3637
##
3738

0 commit comments

Comments
 (0)