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.2.0.tar.gz (13.0 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.2.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cvx_linalg-0.2.0.tar.gz
  • Upload date:
  • Size: 13.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 406b07fba57ebe08a22458a0f3f59986e603de0fec414154a0b6506c917cae3e
MD5 dec16dbaca06c524c8fe5ec3c9054e66
BLAKE2b-256 7b1463b5797a9263f27397efd3bd9a9f53c43ddf925481690e712558b89440e7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: cvx_linalg-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 160f9d791c9d77878420390f843f2c10af1f1a350d9294741268a0765faad0bf
MD5 0aeef1a6c83b7d7fb90f5ac584db00aa
BLAKE2b-256 2df9e0fb0875344c5c663ee919ad848be6b0bd981bccf1566da5423e08097e6a

See more details on using hashes here.

Provenance

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