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 c7853f7 commit d0ff822Copy full SHA for d0ff822
cachematrix.R
@@ -3,6 +3,16 @@
3
# The matrix is assumed to be inversible. It returns a list of four helper functions to get & set a
4
# matrix, and to get and set its cached inverse
5
# The second function cacheSolve computes the inverse of a matrix and returns its value
6
+# Sample code to test
7
+# source("cacheMatrix.R")
8
+# c=rbind(c(1, -1/4), c(-1/4, 1))
9
+# a <- makeCacheMatrix(c)
10
+# a$get()
11
+# s <- cacheSolve(a)
12
+# s
13
+# a$set(s)
14
15
+
16
17
18
## This function creates a special "matrix" object that can cache its inverse. The function
0 commit comments