| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
makeCacheMatrix returns a list of functions that enable the user to:
The input for makeCacheMatrix must be a square matrix.
cacheSolve returns the inverted matrix. When already cached, it retrieves from the cache. Else, it will compute a new inverted matrix.
Example input:
exampleVector <- seq(1:4)
exampleMatrix <- matrix(exampleVector, 2)
exampleCacheMatrix <- makeCacheMatrix(exampleMatrix)
cacheSolve(exampleCacheMatrix)
Example output:
[,1] [,2] [1,] -2 1.5 [2,] 1 -0.5
| Back | FazBrowse Home | New Git URL |