kotlin-numpy / org.jetbrains.numkt.linalg / Linalg / solve

solve

fun <T : Number, E : Number> solve(a: KtNDArray<T>, b: KtNDArray<E>): KtNDArray<Double> (source)

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

Parameters

a - coefficient matrix.

b - ordinate or “dependent variable” values.

Return
Solution to the system a x = b. Returned shape is identical to b.