Skip to main content

A library contains implements of factorization supporting multiple methods and data types

Project description

LIB-B

A library contains implements of factorization supporting multiple methods and data types.

  • LU Factorization
  • Schmidt Decomposition (classical/modified)
  • Householder Reduction
  • Givens Reduction

Environment

Python 3.4 or higher

Install

pip install lib-b

Usage

# libb -h

If you have some matrix file which is split by white space:

# libb -f matrix lu|cs|ms|h|g

Usage in script

Import it:

import libb

Load matrix(from stdin or opened file):

A_matrix, row_num, col_num = libb.LoadMatrix(src=stdin)

Apply methods on matrix (any struct that supports index operator []) and fetch the result:

P, L, U = libb.LUFactorization(A=A_matrix)
Q, R = libb.ClassicalSchmidtDecomposition(A=A_matrix)
Q, R = libb.ModifiedSchmidtDecomposition(A=A_matrix)
Q, R = libb.HouseholderReduction(A=A_matrix)
Q, R = libb.GivensReduction(A=A_matrix)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for lib-b, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size lib_b-1.0.3-py3-none-any.whl (20.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size lib-b-1.0.3.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page