Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NearRealTimeCTDAS
CTDAS
Commits
290d7bef
Commit
290d7bef
authored
Mar 02, 2014
by
Ingrid Luijkx
Browse files
Fix for np.linalg.svd on Cartesius for sibcasa covariance matrices
parent
58818fde
Changes
1
Hide whitespace changes
Inline
Side-by-side
da/baseclasses/statevector.py
View file @
290d7bef
...
...
@@ -240,7 +240,10 @@ class StateVector(object):
# Make a cholesky decomposition of the covariance matrix
_
,
s
,
_
=
np
.
linalg
.
svd
(
covariancematrix
)
try
:
_
,
s
,
_
=
np
.
linalg
.
svd
(
covariancematrix
)
except
:
s
=
np
.
linalg
.
svd
(
covariancematrix
,
full_matrices
=
1
,
compute_uv
=
0
)
#Cartesius fix
dof
=
np
.
sum
(
s
)
**
2
/
sum
(
s
**
2
)
C
=
np
.
linalg
.
cholesky
(
covariancematrix
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment