Skip to content

Commit 5a0f39b

Browse files
committed
Added file level description.
1 parent 3041c9e commit 5a0f39b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cachematrix.R

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
# cachematrix.R
2+
#
13
# 2 functions to assist in caching the inverse of a matrix
2-
3-
# TODO:
4-
# write guard clause against x != matrix
4+
#
5+
# Usage:
6+
# You first create a makeCacheMatrix object from a matrix
7+
# then you solve its inverse using cacheSolve
58

69
makeCacheMatrix <- function(x = matrix()) {
710
# Wrap the matrix object provided and allow the caching of it's inverse
@@ -43,6 +46,9 @@ cacheSolve <- function(x, ...) {
4346
#
4447
# Returns:
4548
# The inverse of the provided matrix
49+
#
50+
# Todo:
51+
# write guard clause against x != matrix
4652

4753
inverse <- x$getInverse()
4854

0 commit comments

Comments
 (0)