linearAlgebra.jl

This unit contains linear algebra functions useful in relation to the Riemannian geometry of the manifold of Symmetric Positive Definite (SPD) or Hermitian Positive Definite (HPD) matrices. In Julia those are Hermitian matrices, see typecasting matrices.

In general they take a matrix as input (some may take other arrays as input) and are divided in eight categories depending on what kind of functions thay are and what they give as output:

CategoryOutput
1. Utilities- - -
2. Matrix normalizations and approximationsmatrix
3. Boolean functions of matricesmatrix
4. Scalar functions of matricesscalar
5. Diagonal functions of matricesdiagonal matrix
6. Unitary functions of matricesorthogonal/unitary matrix
7. Matrix function of matricesmatrix
8. Spectral decompositions of positive matricesspectral function of input
9. Decompositions involving triangular matricestriangular matrix

Utilities

FunctionDescription
typeofMatrix, typeofMatReturn the type of the matrix argument
typeofVector, typeofVecReturn the type of the matrix vector argument
dimlength of the dimensions of matrices and vectors of matrices
removeRemove one or more elements from a vector or one or more
columns or rows from a matrix
isSquareReturn true if matrix arguement is square, false otherwise

Missing docstring.

Missing docstring for typeofMatrix. Check Documenter's build log for details.

Missing docstring.

Missing docstring for typeofVector. Check Documenter's build log for details.

Missing docstring.

Missing docstring for dim. Check Documenter's build log for details.

Missing docstring.

Missing docstring for remove. Check Documenter's build log for details.

Missing docstring.

Missing docstring for isSquare. Check Documenter's build log for details.

Matrix normalizations and approximations

FunctionDescription
det1Normalize the determinant
tr1Normalize the trace
nearestPosDefNearest Symmetric/Hermitian Positive Semi-definite matrix
nearestOrthogonalnearestOrthNearest Orthogonal matrix
normalizeCol!Normalize one or more columns

Missing docstring.

Missing docstring for det1. Check Documenter's build log for details.

Missing docstring.

Missing docstring for tr1. Check Documenter's build log for details.

Missing docstring.

Missing docstring for nearestPosDef. Check Documenter's build log for details.

Missing docstring.

Missing docstring for nearestOrthogonal. Check Documenter's build log for details.

Missing docstring.

Missing docstring for normalizeCol!. Check Documenter's build log for details.

Boolean functions of matrices

FunctionDescription
isposCheck whether a real vector or diagonal matrix are comprised of all positive elements
Missing docstring.

Missing docstring for ispos. Check Documenter's build log for details.

Scalar functions of matrices

FunctionDescription
colProdSum of products of the elements in two columns
sumOfSqr, ssSum of squares of all elements or of specified columns
sumOfSqrDiag, ssdSum of squares of the diagonal elements
colNormEucliden norm of a column
sumOfSqrTril, sstSum of squares of the lower triangle elements up to a given underdiagonal
trFast trace of the product of two Hermitian matrices
quadraticForm, qfFast quadratic form
fidelity(Quantum) Fidelity of two positive matrices

Missing docstring.

Missing docstring for colProd. Check Documenter's build log for details.

Missing docstring.

Missing docstring for sumOfSqr. Check Documenter's build log for details.

Missing docstring.

Missing docstring for sumOfSqrDiag. Check Documenter's build log for details.

Missing docstring.

Missing docstring for colNorm. Check Documenter's build log for details.

Missing docstring.

Missing docstring for sumOfSqrTril. Check Documenter's build log for details.

Missing docstring.

Missing docstring for tr. Check Documenter's build log for details.

Missing docstring.

Missing docstring for quadraticForm. Check Documenter's build log for details.

Missing docstring.

Missing docstring for fidelity. Check Documenter's build log for details.

Diagonal functions of matrices

FunctionDescription
fDiag, 𝑓𝔻Elemen-wise functions of matrix diagonals
DiagOfProd, dopDiagonal of the product of two matrices

Missing docstring.

Missing docstring for fDiag. Check Documenter's build log for details.

Missing docstring.

Missing docstring for DiagOfProd. Check Documenter's build log for details.

Unitary functions of matrices

FunctionDescription
mgsModified Gram-Schmidt orthogonalization

Missing docstring.

Missing docstring for mgs. Check Documenter's build log for details.

Matrix function of matrices

FunctionDescription
fVecGeneral function for multi-threaded computation of means and sums of matrix vectors
congruence, congCompute congruent transformations

Missing docstring.

Missing docstring for fVec. Check Documenter's build log for details.

Missing docstring.

Missing docstring for congruence. Check Documenter's build log for details.

Spectral decompositions of positive matrices

FunctionDescription
evdEigenvalue-Eigenvector decomposition of a matrix in $UΛU'=P$ form
frfFull-rank factorization of an Hermitian matrix
invfrfInverse of the full-rank factorization of an Hermitian matrix (whitening)
spectralFunctionsMother function for creating spectral functions of eigenvalues
powPower of a positive matrix for any number of exponents in one pass
invsqrtPrincipal square root inverse (whitening) of a positive matrix
sqrSquare of a positive matrix
powerIterations, powIterPower method for estimating any number of eigenvectors and associated eigenvalues

Missing docstring.

Missing docstring for evd. Check Documenter's build log for details.

Missing docstring.

Missing docstring for frf. Check Documenter's build log for details.

Missing docstring.

Missing docstring for invfrf. Check Documenter's build log for details.

Missing docstring.

Missing docstring for spectralFunctions. Check Documenter's build log for details.

Missing docstring.

Missing docstring for pow. Check Documenter's build log for details.

Missing docstring.

Missing docstring for invsqrt. Check Documenter's build log for details.

Missing docstring.

Missing docstring for sqr. Check Documenter's build log for details.

Missing docstring.

Missing docstring for powerIterations. Check Documenter's build log for details.

Decompositions involving triangular matrices

FunctionDescription
choLLower triangular factor of Cholesky decomposition
choInvLower triangular factor of Cholesky decomposition and its inverse in one pass
choInv!as choInv, but destroying the input matrix

Missing docstring.

Missing docstring for choL. Check Documenter's build log for details.

Missing docstring.

Missing docstring for choInv. Check Documenter's build log for details.

Missing docstring.

Missing docstring for choInv!. Check Documenter's build log for details.