Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix covariance / Update _chisq.c #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alulujasmine
Copy link

Update the chisq expression in order to take the condition where the uncert is 2-D i.e. a covariance matrix. In this case, chisq = (data-model).T inv(sigma) (data-model).

Update the chisq expression in order to take the condition where the uncert is 2-D i.e. a covariance matrix. In this case, chisq = (data-model).T @ inv(sigma) @ (data-model).
@pcubillos
Copy link
Owner

Hi @alulujasmine
Sorry for the late answer, I was on holidays, I'll check and test this in the next couple of days, but on a quick look, it seems alright. Thanks for the contributions!

@alulujasmine
Copy link
Author

alulujasmine commented Oct 6, 2021

Thanks for your reply! I am very sorry that I didn't test it because I don't know how to do it. I had tried to download the whole updated package and run it. It didn't work. Thank you very much for taking this update into consideration and being willing to test it!

@pcubillos pcubillos changed the title Update _chisq.c Matrix covariance / Update _chisq.c Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants