There was an error while loading. Please reload this page.
1 parent b709cf5 commit 89b0084Copy full SHA for 89b0084
cachematrix.R
@@ -3,7 +3,7 @@
3
4
## This function creates a special "matrix" object that can cache its inverse.
5
6
-makeCacheMatrix <- function(my_x = matrix()) {
+makeVector <- function(my_x = matrix()) {
7
my_inv <- NULL
8
set <- function(x) {
9
my_x <<- x;
@@ -22,7 +22,7 @@ makeCacheMatrix <- function(my_x = matrix()) {
22
## If the inverse has already been calculated (and the matrix has not changed), then the
23
## cachesolve should retrieve the inverse from the cache.
24
25
-cacheSolve <- function(x, ...) {
+cachemean <- function(x, ...) {
26
my_inv <- x$getinv()
27
if(!is.null(my_inv)) {
28
message("Looking up data from cache")
0 commit comments