Skip to content

Commit

Permalink
comments for pdoc?
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Dec 18, 2024
1 parent fef198c commit 7b0d0a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cvx/risk/factor/factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
class FactorModel(Model):
"""Factor risk model"""

# number of assets
assets: int = 0

# number of factors
k: int = 0

def __post_init__(self):
Expand Down
6 changes: 4 additions & 2 deletions cvx/risk/linalg/cholesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@


def cholesky(cov):
# upper triangular part of the cholesky decomposition
# np.linalg.cholesky(cov) is the lower triangular part
"""
upper triangular part of the cholesky decomposition
Note that np.linalg.cholesky(cov) is the lower triangular part
"""
return sc.linalg.cholesky(cov)

0 comments on commit 7b0d0a7

Please sign in to comment.