util
log_determinant_chol(M)
¶
Returns the log determinant of the n x n Cholesky decomposition of a matrix M.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
M |
ndarray
|
The n x n Cholesky decomposition of a matrix. |
required |
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
The log determinant of the matrix M. |
Examples:
>>> M = np.array([[2.0, 0.0], [1.0, 1.0]])
>>> log_det = log_determinant_chol(M)
>>> print(log_det)
1.3862943611198906
Source code in spotpython/gp/util.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|