Skip to main content

Linear algebra utilities for portfolio optimization

Project description

cvx-linalg

Linear algebra utilities for portfolio optimization, part of the jebel-quant ecosystem.

Installation

pip install cvx-linalg

Usage

from cvx.linalg import a_norm, cholesky, inv_a_norm, pca, rand_cov, solve, valid

Functions

  • a_norm(vector, matrix=None) — Euclidean norm or NaN-aware matrix norm
  • cholesky(cov) — Upper triangular Cholesky factor R such that R.T @ R = cov
  • inv_a_norm(vector, matrix=None) — Euclidean norm or inverse NaN-aware matrix norm
  • pca(returns, n_components) — Principal Component Analysis via SVD
  • rand_cov(n, seed) — Random positive semi-definite covariance matrix
  • solve(matrix, rhs) — Solve a linear system after removing invalid rows/columns
  • valid(matrix) — Extract valid submatrix by removing rows/columns with non-finite diagonal entries

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

cvx_linalg-0.4.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

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

cvx_linalg-0.4.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file cvx_linalg-0.4.0.tar.gz.

File metadata

  • Download URL: cvx_linalg-0.4.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cvx_linalg-0.4.0.tar.gz
Algorithm Hash digest
SHA256 debd8659c5e443ea11547297189cae159939a5af3ffcc0234442a760b5192e99
MD5 969e649c79d48459c25e04d12b7903cd
BLAKE2b-256 f53aceb9cae609891f26ebac1f72110e6d9b71b16cca774c3c16bc94c07abc8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvx_linalg-0.4.0.tar.gz:

Publisher: rhiza_release.yml on Jebel-Quant/linalg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cvx_linalg-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: cvx_linalg-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cvx_linalg-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f8cfbe9173813567494e5b8d199123a48459d7f5de89b5a5fd5d979a2824196b
MD5 698f0bfe6276099964ba3dfade65de10
BLAKE2b-256 df5e04ef89f6dc6c658641e9d586f5ea9926f4a23a997da25754c560ac8cd787

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvx_linalg-0.4.0-py3-none-any.whl:

Publisher: rhiza_release.yml on Jebel-Quant/linalg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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