{"action":"created","issue":{"url":"https://api.github.com/repos/benalcazar/cachematrix/issues/1","repository_url":"https://api.github.com/repos/benalcazar/cachematrix","labels_url":"https://api.github.com/repos/benalcazar/cachematrix/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/benalcazar/cachematrix/issues/1/comments","events_url":"https://api.github.com/repos/benalcazar/cachematrix/issues/1/events","html_url":"https://github.com/benalcazar/cachematrix/issues/1","id":191622839,"number":1,"title":"cachematrix","user":{"login":"benalcazar","id":23615807,"avatar_url":"https://avatars.githubusercontent.com/u/23615807?v=3","gravatar_id":"","url":"https://api.github.com/users/benalcazar","html_url":"https://github.com/benalcazar","followers_url":"https://api.github.com/users/benalcazar/followers","following_url":"https://api.github.com/users/benalcazar/following{/other_user}","gists_url":"https://api.github.com/users/benalcazar/gists{/gist_id}","starred_url":"https://api.github.com/users/benalcazar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benalcazar/subscriptions","organizations_url":"https://api.github.com/users/benalcazar/orgs","repos_url":"https://api.github.com/users/benalcazar/repos","events_url":"https://api.github.com/users/benalcazar/events{/privacy}","received_events_url":"https://api.github.com/users/benalcazar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-25T04:21:14Z","updated_at":"2016-11-25T04:24:19Z","closed_at":null,"body":"#Inverse of a Matrix:\r\n#Below is a function that are used to create a special object that \r\n#stores a matrix and caches its inverse.\r\n\r\n## This function creates a special \"matrix\" object that can cache its inverse.\r\n\r\nmakeCacheMatrix <- function(x = matrix()) {\r\n  inv <- NULL\r\n  set <- function(y) {\r\n    x <<- y\r\n    inv <<- NULL\r\n  }\r\n  get <- function() x\r\n  setInverse <- function(inverse) inv <<- inverse\r\n  getInverse <- function() inv\r\n  list(set = set,\r\n       get = get,\r\n       setInverse = setInverse,\r\n       getInverse = getInverse)\r\n}\r\n\r\n\r\n## This function computes the inverse of the special \"matrix\" created by \r\n## makeCacheMatrix above. If the inverse has already been calculated (and the \r\n## matrix has not changed), then it should retrieve the inverse from the cache.\r\n\r\ncacheSolve <- function(x, ...) {\r\n  ## Return a matrix that is the inverse of 'x'\r\n  inv <- x$getInverse()\r\n  if (!is.null(inv)) {\r\n    message(\"getting cached data\")\r\n    return(inv)\r\n  }\r\n  mat <- x$get()\r\n  inv <- solve(mat, ...)\r\n  x$setInverse(inv)\r\n  inv\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/benalcazar/cachematrix/issues/comments/262878479","html_url":"https://github.com/benalcazar/cachematrix/issues/1#issuecomment-262878479","issue_url":"https://api.github.com/repos/benalcazar/cachematrix/issues/1","id":262878479,"user":{"login":"benalcazar","id":23615807,"avatar_url":"https://avatars.githubusercontent.com/u/23615807?v=3","gravatar_id":"","url":"https://api.github.com/users/benalcazar","html_url":"https://github.com/benalcazar","followers_url":"https://api.github.com/users/benalcazar/followers","following_url":"https://api.github.com/users/benalcazar/following{/other_user}","gists_url":"https://api.github.com/users/benalcazar/gists{/gist_id}","starred_url":"https://api.github.com/users/benalcazar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benalcazar/subscriptions","organizations_url":"https://api.github.com/users/benalcazar/orgs","repos_url":"https://api.github.com/users/benalcazar/repos","events_url":"https://api.github.com/users/benalcazar/events{/privacy}","received_events_url":"https://api.github.com/users/benalcazar/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T04:24:19Z","updated_at":"2016-11-25T04:24:19Z","body":"cachematrix\r\n\r\n\r\n"}}
{"actor":{"display_login":"benalcazar"}}