Skip to main content

Python wrapper for KLU

Project description

nbklu: Python bindings for KLU in nanobind

Installation

pip install nbklu
# or install from source
pip install git+https://github.com/determ1ne/nbklu.git

Usage

import numpy as np
import nbklu._ext as klu

n = 5
Ap = np.array([0, 2, 5, 9, 10, 12])
Ai = np.array([0, 1, 0, 2, 4, 1, 2, 3, 4, 2, 1, 4])
Ax = np.array([2.0, 3.0, 3.0, -1.0, 4.0, 4.0, -3.0, 1.0, 2.0, 2.0, 6.0, 1.0])
b = np.array([8.0, 45.0, -3.0, 3.0, 19.0])

common = klu.Common()
common.defaults()
symbolic = klu.analyze(n, Ap, Ai, common)
numeric = klu.factor(Ap, Ai, Ax, symbolic, common)
klu.solve(symbolic, numeric, n, 1, b, common)
print(b)

Detailed documentation can be found in the KLU documentation.

Project details


Download files

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

Source Distribution

nbklu-0.1.0.tar.gz (150.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nbklu-0.1.0-cp314-cp314t-win_amd64.whl (97.6 kB view details)

Uploaded CPython 3.14tWindows x86-64

nbklu-0.1.0-cp314-cp314t-win32.whl (84.4 kB view details)

Uploaded CPython 3.14tWindows x86

nbklu-0.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl (203.9 kB view details)

Uploaded CPython 3.14tmusllinux: musl 1.2+ x86-64

nbklu-0.1.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (105.2 kB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

nbklu-0.1.0-cp312-abi3-win_amd64.whl (88.2 kB view details)

Uploaded CPython 3.12+Windows x86-64

nbklu-0.1.0-cp312-abi3-win32.whl (77.6 kB view details)

Uploaded CPython 3.12+Windows x86

nbklu-0.1.0-cp312-abi3-musllinux_1_2_x86_64.whl (198.3 kB view details)

Uploaded CPython 3.12+musllinux: musl 1.2+ x86-64

nbklu-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (99.8 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

nbklu-0.1.0-cp311-cp311-win_amd64.whl (90.8 kB view details)

Uploaded CPython 3.11Windows x86-64

nbklu-0.1.0-cp311-cp311-win32.whl (79.5 kB view details)

Uploaded CPython 3.11Windows x86

nbklu-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl (202.3 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

nbklu-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (104.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

nbklu-0.1.0-cp310-cp310-win_amd64.whl (91.0 kB view details)

Uploaded CPython 3.10Windows x86-64

nbklu-0.1.0-cp310-cp310-win32.whl (79.8 kB view details)

Uploaded CPython 3.10Windows x86

nbklu-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl (202.6 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

nbklu-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (104.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file nbklu-0.1.0.tar.gz.

File metadata

  • Download URL: nbklu-0.1.0.tar.gz
  • Upload date:
  • Size: 150.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.20

File hashes

Hashes for nbklu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3f0da9fa85760ecf3e319a41e968b87ace589cd0732a5a7fa20a19328085aafc
MD5 472c721480cb6e4de830a59184c97dfd
BLAKE2b-256 822346ec48be4dc14d3fb9d16c0645c82e6a72a12487423ba15a37419bbe2571

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: nbklu-0.1.0-cp314-cp314t-win_amd64.whl
  • Upload date:
  • Size: 97.6 kB
  • Tags: CPython 3.14t, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for nbklu-0.1.0-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 de808f84063380f497d0538e0abacc5f1c0176ad4fc36e1120e7fbd1c161db2a
MD5 32cc7913cce751a92d773307bb55e27e
BLAKE2b-256 ef37d45c545bd03ee2b89175ce6998c1c99186ca193957c9ae85f22b8a8da051

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp314-cp314t-win32.whl.

File metadata

  • Download URL: nbklu-0.1.0-cp314-cp314t-win32.whl
  • Upload date:
  • Size: 84.4 kB
  • Tags: CPython 3.14t, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for nbklu-0.1.0-cp314-cp314t-win32.whl
Algorithm Hash digest
SHA256 7c703ed68396c806cb681eedb9ea8b054be2faeb3e0a8e4c9ac5c5c66321257d
MD5 1126ea05950b09aad5a88910cc7ac68c
BLAKE2b-256 b60b0e95fc98e79a705e4aac4c605e78236c3dd9cbeea891af96cf18aafbf2a1

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for nbklu-0.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 86ba24f5d48c6540f586d6cbdff838e331eeb78b808b897ebd07c579a3d68c75
MD5 46cfb6ae216aef4e2c27a27fcd7c35b2
BLAKE2b-256 588925b69539e49c68a12e3363a92fc555150c5e8363a1ecadd2f6e348baf4b0

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nbklu-0.1.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 18ae5c099d95a33fd583088fe5ba1f31e2165ec114f2179f6999592c7bc488a6
MD5 b4e93fcf0485c4d929f2fddf94a8cce5
BLAKE2b-256 5eaaf49c4d6703b4837a88897d153e7e6c0856c879abe746d7f4146771981408

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp312-abi3-win_amd64.whl.

File metadata

  • Download URL: nbklu-0.1.0-cp312-abi3-win_amd64.whl
  • Upload date:
  • Size: 88.2 kB
  • Tags: CPython 3.12+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for nbklu-0.1.0-cp312-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2664aa2a0e326c24e3a0ae323b4471d852d6f8d6d72fac371f82cc04451eea44
MD5 0cfd94acc378c94a4dc7ef0c90493dac
BLAKE2b-256 dfeb6004084152c7838983c71c43fb098be2810cb53ac2ceea26afaca5bf3247

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp312-abi3-win32.whl.

File metadata

  • Download URL: nbklu-0.1.0-cp312-abi3-win32.whl
  • Upload date:
  • Size: 77.6 kB
  • Tags: CPython 3.12+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for nbklu-0.1.0-cp312-abi3-win32.whl
Algorithm Hash digest
SHA256 646b85cb570100301e0f1b38f8cf486babcfd785d9bbe843f032d223498ac624
MD5 869fe2f31612566b0898244a2975b778
BLAKE2b-256 b5365c8b04811afb3ff92d86679e20e4fea3c0bc5e5e231d9460fe2ce1cbcce1

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp312-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for nbklu-0.1.0-cp312-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 dc9c9a3c0623ae099bf3ec2584ceae9ae50de71aca0292c5b7f5435a59777570
MD5 47b3c35c9268b6a0b84b220933f00bee
BLAKE2b-256 1557423d5cb172f1aa752768c5f6bdb460071a5a7ef0cb40c9adea91bff05c67

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nbklu-0.1.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e9de33dd96d2b69395c6cf96b3a6ee7675a4b6402ba731491384fc5e3bff6087
MD5 89451cdac6958855295a157af40139d3
BLAKE2b-256 c56cc0e496c45fe4e9d10331b8a91fabdb8bc9fb3247873c804c666b9986c9bd

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: nbklu-0.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 90.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for nbklu-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3ced9fa2d918b5e6d64965180d9ae5afad3f1807ee41ea446eb45fd9357422a3
MD5 7e89f9af0f94298bcbe4cdc501fc1e51
BLAKE2b-256 2145e8721619e531717a89bb5d03672fb3844da783534c46ecccd2b49a91ebaf

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp311-cp311-win32.whl.

File metadata

  • Download URL: nbklu-0.1.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 79.5 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for nbklu-0.1.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2478707ebd9340ddc0326b4843f2e97257428c78443f8a0d82389bf52e2298b5
MD5 0ad2838bdfe1c1d7cfb508d1e2111ea3
BLAKE2b-256 cf3e32bba987afc0e464fcb7b31e4d9063d6bccf32d18ebe8ea2fed284d3f99b

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for nbklu-0.1.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bfbbf0cfc6011aea7b243f01c5f1091c15a96931ab0a70902fc340eac534cc88
MD5 2f5b6628a402f49991af8e5548390c1f
BLAKE2b-256 7e5be076aaf3d29176a7e013d052fb3d0008a3ac21c7b1faca0054363e9aa079

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nbklu-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 04a3088ae958602a621002768ff0ff5f4109f9218d2739b32e254106dd4479b8
MD5 287d7d6d93750c08ee4a171e6eb750ce
BLAKE2b-256 24f9a8feb644f1a6c5e6a11f632e3df6dbfbce5a9a839c199cff7bf9575dece0

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: nbklu-0.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 91.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for nbklu-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9d95ae673f65c7d5b8ae82fbbe7cdcc93764317bf17854c133ee8a73770eaa21
MD5 a346c67e13e4770fba28849761c71555
BLAKE2b-256 4ff9c6169e2cc914854a4628c754edd9e91626198960a36638d829a5f6482348

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp310-cp310-win32.whl.

File metadata

  • Download URL: nbklu-0.1.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 79.8 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for nbklu-0.1.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 50bde57a5bac431c2c9c867d52ddf9387bf77490035d8abaf4093f1e84fd8fc9
MD5 250334665db8c86fbaec91d0b31db19a
BLAKE2b-256 ae3947ac0e6a728638e291bda1e5436f7bf68d447d21bd9089dc6e228bf1d894

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for nbklu-0.1.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9ef172385d77ef31b24d83b7ab1a800247e48ed73ec526f7b9427240f25b0b85
MD5 3cfae069dcbcb701e881b1d7a75ac4f3
BLAKE2b-256 1c3d3b0bd81c14693d3f75039270e6166aa733e11e4a7c3dea95fd136835d448

See more details on using hashes here.

File details

Details for the file nbklu-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for nbklu-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 387ed26ccd0a9379a81a0be5a57411f5b587f9621fd03ca1b18f73fc74860163
MD5 9285945edfe85698ac38155f2d646716
BLAKE2b-256 4ef86b46739d9485784990ff188ee990f7ae7068da8720b521de87e0830b4d04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page