GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alnever/ProgrammingAssignment2: Repository for Programming Assignment 2 for R Programming on Coursera

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
cachematrix.R
cachematrix.R
 
 
instructions.md
instructions.md
 
 

Repository files navigation

Programming Assignment 2

The solution for the ProgrammingAssignment2 by A.Neverov

Description

This set of fulction allows to invert a square matrix and excludes the repeated calculations via the caching of the inverted matrix

To use this function:

  • create the square matrix, for example m
  • create the CacheMatrix-object cm <- makeCacheMatrix(m)
  • calculate the inverted matrix im <- cacheSolve(cm)

To proof the function's

  • call the function round(m %*% im)
  • as the result you'll get an E-matrix

WARNING! It's impossible to invert non-square matrixes or matrixes containing NAs with these functions

makeCacheMatrix -

This function creates a special object that contains the matrix and its invert

Argument:

  • x - the base square matrix Returns:
  • the list contains method to access the matrix and its invert
  • If x is non-square matrix or contains any NAs the function returns NULL

cacheSolve

The fucntion for inverting the square matrix created via the objects created with the makeCacheMatrix function

Arguments

  • x - the makeCacheMatrix object
  • ... - the set of arguments for solve() function

Returns

  • if x isn't null the inverted matrix is returning
  • if x is null the function returns NULL

About

Repository for Programming Assignment 2 for R Programming on Coursera

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.