LinearSolver

interface LinearSolver<T : Any>(source)

A group of methods to solve for X in equation X = A−1 · B, where A and B are matrices or vectors.

Parameters

T

the type of items.

Functions

Link copied to clipboard
abstract fun inverse(matrix: Matrix<T>): Matrix<T>

Get inverse of a matrix

Link copied to clipboard
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