LinAlgEx

interface LinAlgEx

Extension interface for LinAlg for improved type support.

Functions

Link copied to clipboard
abstract fun <T : Number> dotMM(a: MultiArray<T, D2>, b: MultiArray<T, D2>): NDArray<T, D2>

Dot products of two number matrices.

Link copied to clipboard
abstract fun <T : Complex> dotMMComplex(a: MultiArray<T, D2>, b: MultiArray<T, D2>): NDArray<T, D2>

Dot products of two complex matrices.

Link copied to clipboard
abstract fun <T : Number> dotMV(a: MultiArray<T, D2>, b: MultiArray<T, D1>): NDArray<T, D1>

Dot products of number matrix and number vector.

Link copied to clipboard
abstract fun <T : Complex> dotMVComplex(a: MultiArray<T, D2>, b: MultiArray<T, D1>): NDArray<T, D1>

Dot products of complex matrix and complex vector.

Link copied to clipboard
abstract fun <T : Number> dotVV(a: MultiArray<T, D1>, b: MultiArray<T, D1>): T

Dot products of two number vectors. Scalar product.

Link copied to clipboard
abstract fun <T : Complex> dotVVComplex(a: MultiArray<T, D1>, b: MultiArray<T, D1>): T

Dot products of two complex vectors. Scalar product.

Link copied to clipboard
abstract fun <T : Number> eig(mat: MultiArray<T, D2>): Pair<D1Array<ComplexDouble>, D2Array<ComplexDouble>>

Calculates the eigenvalues and eigenvectors of a numeric matrix

Link copied to clipboard
abstract fun <T : Complex> eigC(mat: MultiArray<T, D2>): Pair<D1Array<T>, D2Array<T>>

Calculates the eigenvalues and eigenvectors of a complex matrix

Link copied to clipboard
abstract fun eigF(mat: MultiArray<Float, D2>): Pair<D1Array<ComplexFloat>, D2Array<ComplexFloat>>

Calculates the eigenvalues and eigenvectors of a float matrix

Link copied to clipboard
abstract fun <T : Number> eigVals(mat: MultiArray<T, D2>): D1Array<ComplexDouble>

Calculates the eigenvalues of a numeric matrix.

Link copied to clipboard
abstract fun <T : Complex> eigValsC(mat: MultiArray<T, D2>): D1Array<T>

Calculates the eigenvalues of a float matrix

Link copied to clipboard
abstract fun eigValsF(mat: MultiArray<Float, D2>): D1Array<ComplexFloat>

Calculates the eigenvalues of a float matrix

Link copied to clipboard
abstract fun <T : Number> inv(mat: MultiArray<T, D2>): NDArray<Double, D2>

Returns inverse of a double matrix from numeric matrix

Link copied to clipboard
abstract fun <T : Complex> invC(mat: MultiArray<T, D2>): NDArray<T, D2>

Returns inverse complex matrix

Link copied to clipboard
abstract fun invF(mat: MultiArray<Float, D2>): NDArray<Float, D2>

Returns inverse float matrix

Link copied to clipboard
abstract fun norm(mat: MultiArray<Double, D2>, norm: Norm = Norm.Fro): Double

Returns norm of double matrix

Link copied to clipboard
abstract fun normF(mat: MultiArray<Float, D2>, norm: Norm = Norm.Fro): Float

Returns norm of float matrix

Link copied to clipboard
abstract fun <T : Number> plu(mat: MultiArray<T, D2>): Triple<D2Array<Double>, D2Array<Double>, D2Array<Double>>

Returns PLU decomposition of the numeric matrix

Link copied to clipboard
abstract fun <T : Complex> pluC(mat: MultiArray<T, D2>): Triple<D2Array<T>, D2Array<T>, D2Array<T>>

Returns PLU decomposition of the complex matrix

Link copied to clipboard
abstract fun pluF(mat: MultiArray<Float, D2>): Triple<D2Array<Float>, D2Array<Float>, D2Array<Float>>

Returns PLU decomposition of the float matrix

Link copied to clipboard
abstract fun <T : Number> qr(mat: MultiArray<T, D2>): Pair<D2Array<Double>, D2Array<Double>>

Returns QR decomposition of the numeric matrix

Link copied to clipboard
abstract fun <T : Complex> qrC(mat: MultiArray<T, D2>): Pair<D2Array<T>, D2Array<T>>

Returns QR decomposition of the complex matrix

Link copied to clipboard
abstract fun qrF(mat: MultiArray<Float, D2>): Pair<D2Array<Float>, D2Array<Float>>

Returns QR decomposition of the float matrix

Link copied to clipboard
abstract fun <T : Number, D : Dim2> solve(a: MultiArray<T, D2>, b: MultiArray<T, D>): NDArray<Double, D>

Solve a linear matrix equation, or system of linear scalar equations.

Link copied to clipboard
abstract fun <T : Complex, D : Dim2> solveC(a: MultiArray<T, D2>, b: MultiArray<T, D>): NDArray<T, D>

Solve a linear matrix equation, or system of linear scalar equations.

Link copied to clipboard
abstract fun <D : Dim2> solveF(a: MultiArray<Float, D2>, b: MultiArray<Float, D>): NDArray<Float, D>

Solve a linear matrix equation, or system of linear scalar equations.