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 cholesky, pca, rand_cov, valid

Functions

  • cholesky(cov) — Upper triangular Cholesky factor R such that R.T @ R = cov
  • pca(returns, n_components) — Principal Component Analysis via SVD
  • rand_cov(n, seed) — Random positive semi-definite covariance matrix
  • 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.3.0.tar.gz (11.9 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.3.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvx_linalg-0.3.0.tar.gz
  • Upload date:
  • Size: 11.9 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.3.0.tar.gz
Algorithm Hash digest
SHA256 9a9598bf12d84ace08af9caff9ac8d25de56aca0d515eae3fb71b9502702ecd0
MD5 750ddb30aafb2dd84848a89d6344fb62
BLAKE2b-256 ebcc31e46ac1a9668168b88bf13d91a7289bb25743e698988c86715005b8a854

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvx_linalg-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: cvx_linalg-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a68860ff1a8da4496e74c86f1ec6441b2ee7a956e96ca427b69ba191e18421c
MD5 4a05b609de93acfa0771b44b98d09c8b
BLAKE2b-256 aa5c224b1fdaf6821d648b067ef9fc7c1cabf55676d7cfbeff1e39bd8092df9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for cvx_linalg-0.3.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