We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3041c9e commit 5a0f39bCopy full SHA for 5a0f39b
cachematrix.R
@@ -1,7 +1,10 @@
1
+# cachematrix.R
2
+#
3
# 2 functions to assist in caching the inverse of a matrix
-
-# TODO:
4
-# write guard clause against x != matrix
5
+# Usage:
6
+# You first create a makeCacheMatrix object from a matrix
7
+# then you solve its inverse using cacheSolve
8
9
makeCacheMatrix <- function(x = matrix()) {
10
# Wrap the matrix object provided and allow the caching of it's inverse
@@ -43,6 +46,9 @@ cacheSolve <- function(x, ...) {
43
46
#
44
47
# Returns:
45
48
# The inverse of the provided matrix
49
+ #
50
+ # Todo:
51
+ # write guard clause against x != matrix
52
53
inverse <- x$getInverse()
54
0 commit comments