Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rdpeng/ProgrammingAssignment2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: kinghuang/ProgrammingAssignment2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 5 commits
  • 1 file changed
  • 1 contributor

Commits on Nov 21, 2015

  1. Implement makeCacheMatrix

    makeCacheMatrix takes in a matrix x and returns a list containing
    functions for getting and setting the matrix and its inverse.
    kinghuang committed Nov 21, 2015
    Configuration menu
    Copy the full SHA
    2f2cc77 View commit details
    Browse the repository at this point in the history
  2. Implement cacheSolve

    cacheSolve takes in a cache matrix x and returns the matrix's inverse.
    x is a list created by the makeCacheMatrix function. If x has a
    previously calculated inverse, it is used as the return value.
    Otherwise, the inverse is calculated, stored in x, and returned.
    kinghuang committed Nov 21, 2015
    Configuration menu
    Copy the full SHA
    8337a63 View commit details
    Browse the repository at this point in the history
  3. Describe cachematrix

    cachematrix contains two utility functions for solving the inverse of
    matrices and stored the results for reuse.
    kinghuang committed Nov 21, 2015
    Configuration menu
    Copy the full SHA
    f103b18 View commit details
    Browse the repository at this point in the history
  4. Add brief comments in makeCacheMatrix

    Briefly describe the implementation of makeCacheMatrix. It is a simple
    object (list) containing get/set functions for a matrix and its inverse.
    kinghuang committed Nov 21, 2015
    Configuration menu
    Copy the full SHA
    78c0ad7 View commit details
    Browse the repository at this point in the history
  5. Add brief comments in cacheSolve

    Briefly describe the implementation of cacheSolve. It attempts to
    return the cached inverse of the matrix in x, and otherwise solves the
    inverse and storing it before returning the result to the caller.
    kinghuang committed Nov 21, 2015
    Configuration menu
    Copy the full SHA
    ce9a3c2 View commit details
    Browse the repository at this point in the history
Loading