Skip to content

LUDecompositionDecimal

Overview

Arbitrary-precision LU Decomposition using decimal.js and copy-pasted from LUDecomposition. This is a copy-paste implementation so that the performance characteristics of LUDecomposition are not disturbed. This file should be maintained with LUDecomposition.js

This module requires the presence of the preload Decimal.

@author Jonathan Olson <jonathan.olson@colorado.edu> @author Sam Reid (PhET Interactive Simulations)

Class LUDecompositionDecimal

import { LUDecompositionDecimal } from 'scenerystack/dot';

Constructor

new LUDecompositionDecimal( matrix, Decimal )

Instance Methods

isNonsingular()

@public

@returns {boolean}

solve( matrix, Decimal )

@public

@param {Matrix} matrix @param {constructor} Decimal - from decimal library @returns {Matrix}

Source Code

See the source for LUDecompositionDecimal.js in the dot repository.