JLF32LinearAlgebraΒΆ

jla32.spad line 1 [edit on github]

Linear Algebra functions computed using JL and its algorithms. 32 bits version.

conditionNumber: (JLFloat32Matrix, JLFloat32) -> JLFloat32

conditionNumber(m, p) computes the p-condition number of m.

conditionNumber: JLFloat32Matrix -> JLFloat32

conditionNumber(m) computes the condition number of m.

condSkeel: JLFloat32Matrix -> JLFloat32

condSkeel(m) computes the Skeel condition number of m.

eigen!: JLFloat32Matrix -> Record(values: JLComplexF32Vector, vectors: JLComplexF32Matrix)

eigen!(m) computes the spectral decomposition of m but overwrites m to save memory space.

eigen: JLFloat32Matrix -> Record(values: JLComplexF32Vector, vectors: JLComplexF32Matrix)

eigen(m) computes the spectral decomposition of m.

eigenSystem!: JLFloat32Matrix -> Record(values: JLComplexF32Vector, leftVectors: JLFloat32Matrix, rightVectors: JLFloat32Matrix)

eigenSystem!(m) computes the spectral decomposition of m but overwrites m to save memory space. If the j-th eigenvalue (values) is real, then the left eigenvectors u(j) = column(lefVectors,j), the j-th column of lefVectors. If the j-th and (j+1)-st eigenvalues form a complex conjugate pair, then the left eigenvectors are u(j) = column(lefVectors,j) + %i*column(lefVectors,j+1) and u(j+1) = column(lefVectors,j) - %i*column((lefVectors,j+1). This applieas also to righVectors.

eigenSystem: JLFloat32Matrix -> Record(values: JLComplexF32Vector, leftVectors: JLFloat32Matrix, rightVectors: JLFloat32Matrix)

eigenSystem(m) computes the spectral decomposition of m. If the j-th eigenvalue (values) is real, then the left eigenvectors u(j) = column(lefVectors,j), the j-th column of lefVectors. If the j-th and (j+1)-st eigenvalues form a complex conjugate pair, then the left eigenvectors are u(j) = column(lefVectors,j) + %i*column(lefVectors,j+1) and u(j+1) = column(lefVectors,j) - %i*column((lefVectors,j+1). This applieas also to righVectors.

eigvals!: JLFloat32Matrix -> JLComplexF32Vector

eigvals!(m) returns the eigen values of m but overwrites m to save memory space.

eigvals: JLFloat32Matrix -> JLComplexF32Vector

eigvals(m) returns the eigen values of m.

eigvecs: JLFloat32Matrix -> JLComplexF32Matrix

eigvecs(m) returns the eigen vectors of m.

exp: JLFloat32Matrix -> JLFloat32Matrix

exp(m) returns the matrix exponential of m.

log: JLFloat32Matrix -> JLComplexF32Matrix

log(m) tries to compute the principal matrix logarithm of m. Otherwise, returns a non pricipal matrix logarithm of m if possible.

logDeterminant: JLFloat32Matrix -> JLFloat32

logDeterminant(m) computes the logarithm of the determinant of m, possibly with more accuracy and avoding nder/overflow.

lu!: JLFloat32Matrix -> Record(LU: JLFloat32Matrix, ipiv: JLInt64Vector)

lu!(m) computes the LU factorisation of m in m.

lu: JLFloat32Matrix -> Record(LU: JLFloat32Matrix, L: JLFloat32Matrix, U: JLFloat32Matrix, ipiv: JLInt64Vector)

lu(m) computes the LU factorisation of m.

luReorder!: (JLFloat32Matrix, JLInt64Vector) -> JLFloat32Matrix

luOrder(mat, ipiv) returns mat in-place reordered with ipiv pivot indices.

luReorder: (JLFloat32Matrix, JLInt64Vector) -> JLFloat32Matrix

luOrder(mat, ipiv) returns a copy of mat reordered with ipiv pivot indices.

mpInverse: JLFloat32Matrix -> JLFloat32Matrix

mpInverse(m) returns the Moore-Penrose pseudo inverse of m.

norm: (JLFloat32Matrix, JLFloat32) -> JLFloat32

norm(m,p) computes the p-norm of m.

norm: (JLFloat32Vector, JLFloat32) -> JLFloat32

norm(v,p) computes th p-norm of v.

norm: JLFloat32Matrix -> JLFloat32

norm(m) computes the 2-norm of m, also known as the Frobenius norm.

norm: JLFloat32Vector -> JLFloat32

norm(v) computes the 2-norm of v.

normalize!: JLFloat32Matrix -> JLFloat32Matrix

normalize!(m) destructively normalize m such that its norm equals to 1.

normalize!: JLFloat32Vector -> JLFloat32Vector

normalize!(v) destructively normalize v such that norm(v) equals to 1.

normalize: JLFloat32Matrix -> JLFloat32Matrix

normalize(m) returns normalized m such that its norm equals to 1.

normalize: JLFloat32Vector -> JLFloat32Vector

normalize(v) returns normalized v such that its norm equals to 1.

operatorNorm: (JLFloat32Matrix, JLFloat32) -> JLFloat32

operatorNorm(m,p) computes the operator norm of m induced by the vector p-norm.

operatorNorm: JLFloat32Matrix -> JLFloat32

operatorNorm(m) computes the operator norm of m induced by the vector 2-norm.

rank!: (JLFloat32Matrix, JLFloat32) -> NonNegativeInteger

rank!(m, tol) computes rank of m. Counts singular value with magnitude greater than tol but overwrites m to save memory space.

rank: (JLFloat32Matrix, JLFloat32) -> NonNegativeInteger

rank(m, tol) computes rank of m. Counts singular value with magnitude greater than tol.

solve!: (JLFloat32Matrix, JLFloat32Matrix) -> JLFloat32Matrix

solve!(A,B) solves the matrix equation A*X=B. Overwrites B with matrix X and returns X.

solve: (JLFloat32Matrix, JLFloat32Matrix) -> JLFloat32Matrix

solve(A,B) solves the matrix equation A*X=B, and returns X.

sqrt: JLFloat32Matrix -> JLComplexF32Matrix

sqrt(m) returns the principal square root of m.

svd!: JLFloat32Matrix -> Record(U: JLFloat32Matrix, sv: JLFloat32Vector, Vt: JLFloat32Matrix)

svd!(m) is the same as svd(m) but overwites a to save memory space.

svd: JLFloat32Matrix -> Record(U: JLFloat32Matrix, sv: JLFloat32Vector, Vt: JLFloat32Matrix)

svd(m) computes the singular value decomposition SVD of m such that SVD.U * diagonalMatrix(sv) * SVD.Vt = m.

svdvals!: JLFloat32Matrix -> JLFloat32Vector

svdvals!(m) returns the singular values of m but overwrites m to save memory space.

svdvals: JLFloat32Matrix -> JLFloat32Vector

svdvals(m) returns the singular values of m.

trace: JLFloat32Matrix -> JLFloat32

trace(m) computes the trace of m.

tril!: JLFloat32Matrix -> JLFloat32Matrix

tril!(m) overwrites m with its upper triangular matrix counterpart. Returns m.

tril: JLFloat32Matrix -> JLFloat32Matrix

tril(m) returns the lower triangular matrix of m

triu!: JLFloat32Matrix -> JLFloat32Matrix

triu!(m) overwrites m with its upper triangular matrix counterpart. Returns m.

triu: JLFloat32Matrix -> JLFloat32Matrix

triu(m) returns the upper triangular matrix of m.