Home

Awesome

ndarray-lup-factorization

Build Status npm version Dependency Status

LU factorization with pivoting for ndarrays

Introduction

This module performs an in-place LUP factorization (LU with partial pivoting) on matrix A. Be advised that the rows are physically swapped which is slightly sub-optimal.

The resulting factorization is PA = LU where P is a permutation matrix.

For an alternate version, see: ndarray-lup-factorization

Installation

npm install ndarray-lup-factorization

Usage

Sample usage:

var lup = require('ndarray-lup-factorization')

var P = [],
    A = ndarray([1,2,6,3],[2,2])

lup( A, A, P )

require('ndarray-lup-factorization')( A, L, P )

Inputs:

Returns: true upon successful completion; false otherwise.

require('ndarray-lup-factorization')( A, A, P )

Returns: true upon successful completion; false otherwise.

Credits

(c) 2015 Ricky Reusser. MIT License