Skip to content

Commit 5ca3e1b

Browse files
committed
Update cachematrix.R
1 parent 6ff8e80 commit 5ca3e1b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

cachematrix.R

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
## This program creates a special data structures for square invertable matrices
2-
## so that the inverse of a matrix can be cache to speed up its retreival
1+
# --------------------------------------------------------------------------------------------
2+
#
3+
# File: cachematrix.R
4+
# By: Fredrick Stakem
5+
# Date: 7.23.14
6+
#
7+
# Purpose: This program creates special matrix data structures for square invertable
8+
# matrices so that the inverse of a matrix can be cache to speed up its
9+
# retreival.
10+
#
11+
# --------------------------------------------------------------------------------------------
12+
313

414
## This function stores a matrix and its inverse
515
makeCacheMatrix <- function(x = matrix())
@@ -32,7 +42,6 @@ makeCacheMatrix <- function(x = matrix())
3242
get_inverse=get_inverse, set_inverse=set_inverse)
3343
}
3444

35-
3645
## This function retreives the inverse of a matrix either from its cache or it calculates it and stores it in the object
3746
cacheSolve <- function(x, ...)
3847
{

0 commit comments

Comments
 (0)