matlib: Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics

A collection of matrix functions for teaching and learning matrix linear algebra as used in multivariate statistical methods. These functions are mainly for tutorial purposes in learning matrix algebra ideas using R. In some cases, functions are provided for concepts available elsewhere in R, but where the function call or name is not obvious. In other cases, functions are provided to show or demonstrate an algorithm. In addition, a collection of functions are provided for drawing vector diagrams in 2D and 3D.

AuthorMichael Friendly [aut, cre], John Fox [aut], Georges Monette [ctb], Gaston Sanchez [ctb], Phil Chalmers [ctb]
Date of publication2016-09-17 07:10:53
MaintainerMichael Friendly <friendly@yorku.ca>
LicenseGPL (>= 2)
Version0.8.1
https://github.com/friendly/matlib

View on CRAN

Man pages

arc: Draw an arc showing the angle between vectors

arrows3d: Draw 3D arrows

buildTmat: Build/Get tranformation matricies

cholesky: Cholesky Square Root of a Matrix

circle3d: Draw a horizontal circle

class: Class Data Set

cofactor: Cofactor of A[i,j]

cone3d: Draw a 3D cone

corner: Draw a corner showing the angle between two vectors

echelon: Echelon Form of a Matrix

eig: Eigen Decomposition of a Square Symmetric Matrix

gaussianElimination: Gaussian Elimination

Ginv: Generalized Inverse of a Matrix

gsorth: Gram-Schmidt Orthogonalization of a Matrix

Inverse: Inverse of a Matrix

is_square: Test for square matrix

J: Create a vector, matrix or array of constants

len: Length of a Vector or Column Lengths of a Matrix

LU: LU Decomposition

matlib: matlib: Matrix Functions for Teaching and Learning Linear...

matrix2latex: Convert matrix to LaTeX equation

minor: Minor of A[i,j]

mpower: Matrix Power

plotEqn: Plot Linear Equations

plotEqn3d: Plot Linear Equations in 3D

plot.regvec3d: Plot method for regvec3d objects

point_on_line: Position of a point along a line

power_method: Power Method for Eigenvectors

Proj: Projection of Vector y on columns of X

QR: QR Decomposition by Graham-Schmidt Orthonormalization

R: Rank of a Matrix

regvec3d: Vector space representation of a two-variable regression...

rowadd: Add multiples of rows to other rows

row_cofactors: Row Cofactors of A[i,]

row_minors: Row Minors of A[i,]

rowmult: Multiply Rows by Constants

rowswap: Interchange two rows of a matrix

showEig: Show the eigenvectors associated with a covariance matrix

showEqn: Show Matrices (A, b) as Linear Equations

Solve: Solve and Display Solutions for Systems of Linear...

SVD: Singular Value Decomposition of a Matrix

swp: The Matrix Sweep Operator

therapy: Therapy Data

tr: Trace of a Matrix

vandermode: Vandermode Matrix

vec: Vectorize a Matrix

vectors: Draw geometric vectors in 2D

vectors3d: Draw 3D vectors

workers: Workers Data

Functions

arc Man page
arrows3d Man page
as.matrix.trace Man page
buildTmat Man page
cholesky Man page
circle3d Man page
class Man page
cofactor Man page
cone3d Man page
corner Man page
echelon Man page
eig Man page
gaussianElimination Man page
Ginv Man page
gsorth Man page
inv Man page
Inverse Man page
is_orthogonal_matrix Man page
is_square_matrix Man page
is_symmetric_matrix Man page
J Man page
len Man page
LU Man page
matlib Man page
matlib-package Man page
matrix2latex Man page
minor Man page
mpower Man page
plotEqn Man page
plotEqn3d Man page
plot.regvec3d Man page
point_on_line Man page
power_method Man page
print.regvec3d Man page
print.trace Man page
Proj Man page
QR Man page
R Man page
regvec3d Man page
regvec3d.default Man page
regvec3d.formula Man page
rowadd Man page
row_cofactors Man page
row_minors Man page
rowmult Man page
rowswap Man page
showEig Man page
showEqn Man page
Solve Man page
summary.regvec3d Man page
SVD Man page
swp Man page
therapy Man page
tr Man page
vandermode Man page
vec Man page
vectors Man page
vectors3d Man page
workers Man page

Files

matlib
matlib/inst
matlib/inst/doc
matlib/inst/doc/inv-ex1.html
matlib/inst/doc/det-ex1.Rmd
matlib/inst/doc/inv-ex2.Rmd
matlib/inst/doc/ginv.html
matlib/inst/doc/eigen-ex1.R
matlib/inst/doc/linear-equations.Rmd
matlib/inst/doc/inv-ex1.Rmd
matlib/inst/doc/det-ex1.html
matlib/inst/doc/ginv.R
matlib/inst/doc/inv-ex2.html
matlib/inst/doc/linear-equations.html
matlib/inst/doc/inv-ex2.R
matlib/inst/doc/eigen-ex1.html
matlib/inst/doc/eigen-ex1.Rmd
matlib/inst/doc/linear-equations.R
matlib/inst/doc/gramreg.R
matlib/inst/doc/det-ex2.html
matlib/inst/doc/gramreg.Rmd
matlib/inst/doc/det-ex2.Rmd
matlib/inst/doc/eigen-ex2.html
matlib/inst/doc/eigen-ex2.Rmd
matlib/inst/doc/inv-ex1.R
matlib/inst/doc/ginv.Rmd
matlib/inst/doc/gramreg.html
matlib/inst/doc/eigen-ex2.R
matlib/inst/doc/det-ex2.R
matlib/inst/doc/det-ex1.R
matlib/NAMESPACE
matlib/NEWS.md
matlib/data
matlib/data/workers.RData
matlib/data/therapy.RData
matlib/data/class.RData
matlib/R
matlib/R/Solve.R matlib/R/gaussian-elimination.R matlib/R/QR.R matlib/R/mpower.R matlib/R/determinants.R matlib/R/vandermode.R matlib/R/is_square.R matlib/R/eig.R matlib/R/matrix2latex.R matlib/R/power_method.R matlib/R/vectors.R matlib/R/showeqn.R matlib/R/swp.R matlib/R/plotEqn.R matlib/R/R.R matlib/R/vectors3d.R matlib/R/showEig.R matlib/R/matlib.R matlib/R/rowops.R matlib/R/tr.R matlib/R/proj.R matlib/R/regvec3d.R matlib/R/len.R matlib/R/J.R matlib/R/gsorth.R matlib/R/LU.R matlib/R/vec.R matlib/R/arrows3d.R matlib/R/corner.R
matlib/vignettes
matlib/vignettes/det-ex1.Rmd
matlib/vignettes/inv-ex2.Rmd
matlib/vignettes/linear-equations.Rmd
matlib/vignettes/inv-ex1.Rmd
matlib/vignettes/eigen-ex1.Rmd
matlib/vignettes/CanvasMatrix.js
matlib/vignettes/plotEqn1snapshot.png
matlib/vignettes/gramreg.Rmd
matlib/vignettes/det-ex2.Rmd
matlib/vignettes/eigen-ex2.Rmd
matlib/vignettes/ginv.Rmd
matlib/MD5
matlib/build
matlib/build/vignette.rds
matlib/DESCRIPTION
matlib/man
matlib/man/LU.Rd matlib/man/arrows3d.Rd matlib/man/vec.Rd matlib/man/workers.Rd matlib/man/vectors.Rd matlib/man/therapy.Rd matlib/man/J.Rd matlib/man/vandermode.Rd matlib/man/Inverse.Rd matlib/man/showEqn.Rd matlib/man/cholesky.Rd matlib/man/rowswap.Rd matlib/man/eig.Rd matlib/man/row_minors.Rd matlib/man/rowmult.Rd matlib/man/class.Rd matlib/man/is_square.Rd matlib/man/plotEqn.Rd matlib/man/circle3d.Rd matlib/man/len.Rd matlib/man/SVD.Rd matlib/man/arc.Rd matlib/man/regvec3d.Rd matlib/man/cone3d.Rd matlib/man/matlib.Rd matlib/man/plot.regvec3d.Rd matlib/man/corner.Rd matlib/man/minor.Rd matlib/man/gsorth.Rd matlib/man/swp.Rd matlib/man/row_cofactors.Rd matlib/man/buildTmat.Rd matlib/man/R.Rd matlib/man/Proj.Rd matlib/man/point_on_line.Rd matlib/man/power_method.Rd matlib/man/rowadd.Rd matlib/man/QR.Rd matlib/man/gaussianElimination.Rd matlib/man/cofactor.Rd matlib/man/vectors3d.Rd matlib/man/plotEqn3d.Rd matlib/man/tr.Rd matlib/man/mpower.Rd matlib/man/showEig.Rd matlib/man/Ginv.Rd matlib/man/echelon.Rd matlib/man/matrix2latex.Rd matlib/man/Solve.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.