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 7f657dd commit 1afcfb7Copy full SHA for 1afcfb7
cachematrix.R
@@ -1,10 +1,24 @@
1
## Put comments here that give an overall description of what your
2
## functions do
3
4
-## Write a short comment describing this function
+## create a matrix data structure as a list containing function to
5
+## set the value of the matrix
6
+## get the value of the matrix
7
+## set the value of the inverse of the matrix
8
+## get the value of the inverse of the matrix
9
10
makeCacheMatrix <- function(x = matrix()) {
-
11
+ inv.x <- NULL
12
+ set <-function(y) {
13
+ x<<-y
14
+ inv.x <<-NULL
15
+ }
16
+ get <-function() x
17
+ set.inv <- function(inv) inv.x <<- inv
18
+ get.inv <- function() inv.x
19
+ list(set=set,get=get,
20
+ set.inv=set.inv,
21
+ get.inv=get.inv)
22
}
23
24
0 commit comments