Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics
Calculate the Adjoint of a matrix
Angle between two vectors
Draw an arc showing the angle between vectors
Draw 3D arrows
Build/Get transformation matrices
Cholesky Square Root of a Matrix
Draw circles on an existing plot.
Draw a horizontal circle
Cofactor of A[i,j]
Draw a 3D cone
Draw a corner showing the angle between two vectors
Generalized Inverse of a Matrix
Determinant of a Square Matrix
Echelon Form of a Matrix
Eigen Decomposition of a Square Symmetric Matrix
Gaussian Elimination
Correct for aspect and coordinate ratio
Trace of a Matrix
Gram-Schmidt Orthogonalization of a Matrix
Gram-Schmidt Orthogonalization of a Matrix
Inverse of a Matrix
Test for square matrix
Create a vector, matrix or array of constants
Length of a Vector or Column Lengths of a Matrix
Vandermode Matrix
Vectorize a Matrix
LU Decomposition
matlib: Matrix Functions for Teaching and Learning Linear Algebra and ...
Convert matrix to LaTeX equation
Minor of A[i,j]
Moore-Penrose inverse of a matrix
Matrix Power
Plot method for regvec3d objects
Plot Linear Equations
Plot Linear Equations in 3D
Position of a point along a line
Power Method for Eigenvectors
Print Matrices or Matrix Operations Side by Side
Print a matrix, allowing fractions or LaTeX output
Projection of Vector y on columns of X
QR Decomposition by Graham-Schmidt Orthonormalization
Rank of a Matrix
Vector space representation of a two-variable regression model
Add multiples of rows to other rows
Row Cofactors of A[i,]
Row Minors of A[i,]
Multiply Rows by Constants
Interchange two rows of a matrix
Show the eigenvectors associated with a covariance matrix
Show Matrices (A, b) as Linear Equations
Solve and Display Solutions for Systems of Linear Simultaneous Equatio...
Singular Value Decomposition of a Matrix
Demonstrate the SVD for a 3 x 3 matrix
The Matrix Sweep Operator
Create a Symmetric Matrix from a Vector
Draw geometric vectors in 2D
Draw 3D vectors
Generalized Vector Cross Product
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.
Useful links