Package: matlib 0.9.8

Michael Friendly

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.

Authors:Michael Friendly [aut, cre], John Fox [aut], Phil Chalmers [aut], Georges Monette [ctb], Gaston Sanchez [ctb]

matlib_0.9.8.tar.gz
matlib_0.9.8.tar.gz(r-4.5-noble)matlib_0.9.8.tar.gz(r-4.4-noble)
matlib_0.9.8.tgz(r-4.4-emscripten)matlib_0.9.8.tgz(r-4.3-emscripten)
matlib.pdf |matlib.html
matlib/json (API)
NEWS

# Install 'matlib' in R:
install.packages('matlib', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/friendly/matlib/issues

Datasets:

59 exports 2.38 score 83 dependencies 10 dependents 1 mentions 816 scripts 4.1k downloads

Last updated 1 months agofrom:0e18f8839b. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKAug 25 2024
R-4.5-linuxNOTEAug 25 2024

Exports:adjointanglearcarrows3dbuildTmatcholeskycirclecircle3dcofactorcone3dcornerDetechelonEigengaussianEliminationgetYmultGinvGramSchmidtgsorthinvInverseis_orthogonal_matrixis_square_matrixis_symmetric_matrixJlenLUmatrix2latexminorMoorePenrosempowerplotEqnplotEqn3dpointOnLinepowerMethodprintMatEqnprintMatrixProjQRRregvec3drowaddrowCofactorsrowMinorsrowmultrowswapshowEigshowEqnSolveSVDsvdDemoswpsymMattrvandermodevecvectorsvectors3dxprod

Dependencies:abindbackportsbase64encbootbroombslibcachemcarcarDataclicolorspacecowplotcpp11DerivdigestdoBydplyrevaluatefansifarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrmunsellnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpurrrquantregR6rappdirsRColorBrewerRcppRcppEigenrglrlangrmarkdownsassscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunxtableyaml

Eigenvalues and Eigenvectors: Properties

Rendered fromeigen-ex1.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2018-04-04
Started: 2015-11-05

Eigenvalues: Spectral Decomposition

Rendered fromeigen-ex2.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2018-04-04
Started: 2015-11-05

Evaluation of determinants

Rendered fromdet-ex2.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2018-04-04
Started: 2016-09-17

Generalized inverse

Rendered fromginv.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2020-10-29
Started: 2016-09-17

Gram-Schmidt Orthogonalization and Regression

Rendered fromgramreg.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2018-04-04
Started: 2015-11-19

Inverse of a matrix

Rendered frominv-ex1.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2016-09-17
Started: 2016-09-17

Matrix inversion by elementary row operations

Rendered frominv-ex2.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2016-09-17
Started: 2016-09-17

Properties of determinants

Rendered fromdet-ex1.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2020-10-29
Started: 2016-09-17

Solving Linear Equations

Rendered fromlinear-equations.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2018-04-04
Started: 2015-11-10

Vector Spaces of Least Squares and Linear Equations

Rendered fromdata-beta.Rmdusingknitr::rmarkdownon Aug 25 2024.

Last update: 2020-10-29
Started: 2020-10-29

Readme and manuals

Help Manual

Help pageTopics
matlib: Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics.matlib-package matlib
Calculate the Adjoint of a matrixadjoint
Angle between two vectorsangle
Draw an arc showing the angle between vectorsarc
Draw 3D arrowsarrows3d
Build/Get transformation matricesas.matrix.trace buildTmat print.trace
Cholesky Square Root of a Matrixcholesky
Draw circles on an existing plot.circle
Draw a horizontal circlecircle3d
Class Data Setclass
Cofactor of A[i,j]cofactor
Draw a 3D conecone3d
Draw a corner showing the angle between two vectorscorner
Determinant of a Square MatrixDet
Echelon Form of a Matrixechelon
Eigen Decomposition of a Square Symmetric MatrixEigen
Gaussian EliminationgaussianElimination print.enhancedMatrix
Correct for aspect and coordinate ratiogetYmult
Generalized Inverse of a MatrixGinv
Gram-Schmidt Orthogonalization of a MatrixGramSchmidt
Gram-Schmidt Orthogonalization of a Matrixgsorth
Inverse of a Matrixinv Inverse
Create a vector, matrix or array of constantsJ
Length of a Vector or Column Lengths of a Matrixlen
LU DecompositionLU
Convert matrix to LaTeX equationmatrix2latex
Minor of A[i,j]minor
Moore-Penrose inverse of a matrixMoorePenrose
Matrix Powermpower
Plot method for regvec3d objectsplot.regvec3d print.regvec3d summary.regvec3d
Plot Linear EquationsplotEqn
Plot Linear Equations in 3DplotEqn3d
Position of a point along a linepointOnLine
Power Method for EigenvectorspowerMethod
Print Matrices or Matrix Operations Side by SideprintMatEqn
Print a matrix, allowing fractions or LaTeX outputprintMatrix
Projection of Vector y on columns of XProj
QR Decomposition by Graham-Schmidt OrthonormalizationQR
Rank of a MatrixR
Vector space representation of a two-variable regression modelregvec3d regvec3d.default regvec3d.formula
Add multiples of rows to other rowsrowadd
Row Cofactors of A[i,]rowCofactors
Row Minors of A[i,]rowMinors
Multiply Rows by Constantsrowmult
Interchange two rows of a matrixrowswap
Show the eigenvectors associated with a covariance matrixshowEig
Show Matrices (A, b) as Linear EquationsshowEqn
Solve and Display Solutions for Systems of Linear Simultaneous EquationsSolve
Singular Value Decomposition of a MatrixSVD
Demonstrate the SVD for a 3 x 3 matrixsvdDemo
The Matrix Sweep Operatorswp
Create a Symmetric Matrix from a VectorsymMat
Therapy Datatherapy
Trace of a Matrixtr
Vandermode Matrixvandermode
Vectorize a Matrixvec
Draw geometric vectors in 2Dvectors
Draw 3D vectorsvectors3d
Workers Dataworkers
Generalized Vector Cross Productxprod