Skip to content

Commit 9540eba

Browse files
committed
comments updated
1 parent 613ee4a commit 9540eba

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

cachematrix.R

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
## Put comments here that give an overall description of what your
22
## functions do
33

4-
# as stated in the assignment instructions the main purpose of the function is to create an object with the attached functions that allow for calculating an inverse of the matrix, however the object can be accesded multiple times, but it is updated only at the time when input data changes. It helps to save time when executing and accessing data in the loops.
4+
# as stated in the assignment instructions the main purpose of the function is
5+
# to create an object with the attached functions that allow for calculating an
6+
# inverse of the matrix, however the object can be accesded multiple times, but
7+
# it is updated only at the time when input data changes. It helps to save time
8+
# when executing and accessing data in the loops.
59

610

7-
## Write a short comment describing this function
8-
## the functions checks if the input matrix is squared, it is assumed that all input matrices are invertable.
11+
## Write a short comment describing this function the functions checks if the
12+
## input matrix is squared, it is assumed that all input matrices are
13+
## invertable.
914

1015
makeCacheMatrix <- function(x = matrix()) {
1116
d <- dim(x)
@@ -26,8 +31,10 @@ makeCacheMatrix <- function(x = matrix()) {
2631
}
2732

2833

29-
## The following function help to access the data from the object created by makeCacheMatrix()
30-
## If the output was not created it computes the inverse of the matrix, when already exists it gets the content from the object and updates the output only when the input data changes.
34+
## The following function help to access the data from the object created by
35+
## makeCacheMatrix() If the output was not created it computes the inverse of
36+
## the matrix, when already exists it gets the content from the object and
37+
## updates the output only when the input data changes.
3138

3239
cacheSolve <- function(x, ...) {
3340
## Return a matrix that is the inverse of 'x'

0 commit comments

Comments
 (0)