Skip to content

Instantly share code, notes, and snippets.

View ellango85's full-sized avatar

Ellango Ramasamy ellango85

View GitHub Profile
@ellango85
ellango85 / Assignment-2-Inverse-matrix
Created December 24, 2018 04:10
Couple of functions that cache the inverse of a matrix.
##Couple of functions that cache the inverse of a matrix
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y){
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(solveMatrix) inv <<- solveMatrix
Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8