LinearSolver

interface LinearSolver<T : Any>

A group of methods to solve for X in equation X = A&minus;1 &middot; B, where A and B are matrices or vectors.

Parameters

T

the type of items.

Functions

inverse
Link copied to clipboard
common
abstract fun inverse(matrix: Matrix<T>): Matrix<T>
Get inverse of a matrix
solve
Link copied to clipboard
common
abstract fun solve(a: Matrix<T>, b: Matrix<T>): Matrix<T>
Solve a dot x = b matrix equation and return x
open fun solve(a: Matrix<T>, b: Point<T>): Point<T>
Solve a dot x = b vector equation and return b

Sources

common source
Link copied to clipboard