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

#13 Adding Householder transformations and the QR decomposition #20

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

Conversation

breezko
Copy link

@breezko breezko commented Oct 4, 2020

  • Fixing Imports
  • Following pytest name conventions

@breezko
Copy link
Author

breezko commented Oct 4, 2020

The pipeline check is weird, I can't change subject etc ;)

@gmuraru
Copy link
Owner

gmuraru commented Oct 4, 2020

It should respect the format from here: https://github.com/commitizen/cz-cli (I think here is better: https://commitlint.io/)

@breezko
Copy link
Author

breezko commented Oct 5, 2020

So like this @gmuraru : feat: #13 Adding Householder transformations and the QR decomposition & Fixing imports ?

If that's correct I'd amend my commit asap.

@gmuraru
Copy link
Owner

gmuraru commented Oct 5, 2020

I don't think that is going to work.
You can use this to create the commit message https://commitlint.io/

@breezko
Copy link
Author

breezko commented Oct 5, 2020

I don't think that is going to work.
You can use this to create the commit message https://commitlint.io/

My pervious message was the resut of commitlint.io

I used as subject "feature"

@gmuraru
Copy link
Owner

gmuraru commented Oct 5, 2020

Ahh...apologies...I did not see the feat: ...

@gmuraru
Copy link
Owner

gmuraru commented Oct 5, 2020

It seems the problem is the following:

✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

There should be a subject and a type

@breezko
Copy link
Author

breezko commented Oct 5, 2020

It seems the problem is the following:

✖   subject may not be empty [subject-empty]
✖   type may not be empty [type-empty]

There should be a subject and a type

Alright, as soon as I'm home I'll fix the commit message :)

@@ -1,4 +1,4 @@
from src.trie.trie import Trie
from ...src.trie.trie import Trie
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MAYBE: Could you leave it as it was before - the tests are supposed to be run from the root of the project

""" Test small 3x3 example from the Wikipedia page on QR decomposition """
A = np.array([[12, -51, 4], [6, 167, -68], [-4, 24, -41]])
Q, R = qr(A)
print("A=", A, "Q=", Q, "R=", R, sep="\n\n", file=open("Small QR example.txt", "w"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHOULD: Remove prints from tests

""" Test small 3x3 example from the Wikipedia page on QR decomposition """
A = np.array([[12, -51, 4], [6, 167, -68], [-4, 24, -41]])
Q, R = qr(A)
print("A=", A, "Q=", Q, "R=", R, sep="\n\n", file=open("Small QR example.txt", "w"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove txt files

"""
A = gaussian_matrix(m, n)
Q, R = qr(A)
for e in qr_errors(A, Q, R):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHOULD: Use np.all_close and remove the qr_errors function

@gmuraru
Copy link
Owner

gmuraru commented Oct 9, 2020

@breezko are you still working on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants