Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics, http://friendly.github.io/matlib/
Version 1.0.1
These functions were originally designed for tutorial purposes in teaching & learning matrix algebra
ideas using R. In some cases, functions are provided for concepts or computations available
elsewhere in R, but where the name is not obvious, e.g., R() for the rank of a matrix,
or tr() for matrix trace.
In other
cases, we provide cover functions to show or demonstrate an algorithm in more detail, sometimes
providing a verbose = argument to print the details of computations, e.g., Det() for a
matrix determinant, Inverse() for a matrix inverse, using gaussianElimination() to show the
steps.
In addition, a collection of functions are provided for drawing vector diagrams in 2D and 3D, illustrating various concepts of linear algebra more concretely than has been available before. For example,
-
showEqn(A, b)shows the matrix equations