We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f247fb commit f0e55d0Copy full SHA for f0e55d0
1 file changed
cachematrix.R
@@ -1,4 +1,4 @@
1
-## Matrix object with cached version of inverse function
+## Matrix object and cached version for inverse function
2
##
3
## Example usage:
4
## x <- makeCacheMatrix()
@@ -7,8 +7,7 @@
7
## x$get()
8
## cacheSolve(x) # first run can be slow
9
10
-## Constructor for the matrix with cached inverse function
11
-
+## Constructor for the matrix with cached inverse
12
makeCacheMatrix <- function(x = matrix()) {
13
ci <- NULL
14
@@ -35,7 +34,6 @@ makeCacheMatrix <- function(x = matrix()) {
35
34
36
37
## returns the inverse of the matrix, result is cached after the first run
38
39
cacheSolve <- function(x, ...) {
40
ci <- x$getinverse()
41
if (!is.null(ci)) {
0 commit comments