Skip to content

Commit 8dc97cd

Browse files
committed
Update cachematrix.R
1 parent 05b3905 commit 8dc97cd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cachematrix.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
## Put comments here that give an overall description of what your
22
## functions do
3-
# Functions modularize the operation flow of the program - providing
4-
# an easy to understand and easy to edit program.
3+
# Both the functions when used together will store the inverse of a matrix and output it without recalculating it everytime.
4+
# the cache here is the local environment of the object created by the function makeCacheMatrix.. so changes in the matrix -( made by
5+
# using set function) and its inverse are stored in this local environment. The second function access the inverse from this
6+
# environment and then outputs it. This can be done for any large operation, not only inverses of matrices.
7+
58

69
## Write a short comment describing this function
710
# Creates an object to store a matrix and its inverse in its local environment - hence can be used like a cache

0 commit comments

Comments
 (0)