Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0bcbf89

Browse files
committed
Document the file containing both functions
1 parent 514c8ea commit 0bcbf89

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,5 +1,8 @@
1-
## Put comments here that give an overall description of what your
2-
## functions do
1+
# Calculating the inverse of a matrix can be computationally
2+
# costly. The function makeCacheMatrix is a special data structure
3+
# which stores a matrix x and its inverse. cacheSolve calculates the
4+
# inverse of the matrix stored in this data structure, but returns the
5+
# value in the cache if the inverse has already been calculated.
36

47
makeCacheMatrix <- function(x = matrix()) {
58
# Creates a data structure which caches the inverse of the matrix

0 commit comments

Comments
 (0)