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

Fixed distance() of class Vector by adding np.sqrt #36

Closed
wants to merge 2 commits into from

Conversation

Devrim-Celik
Copy link
Contributor

Since the idea of the distance method is to (probably) implement the euclidean distance, we need to calculate the square-root (which is missing in the current version) of the squares of differences.

Since the idea of the distance method is to (probably) implement the euclidean distance, we need to calculate the square-root (which is missing in the current version) of the squares of differences.
Copy link
Contributor

@Manindra29 Manindra29 left a comment

Choose a reason for hiding this comment

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

LGTM

abhikpal added a commit that referenced this pull request Mar 13, 2018
@abhikpal
Copy link
Member

Brilliant! Shouldn't you be using np.sqrt? I've merged your change into develop with np.sqrt instead of np.square

@Devrim-Celik
Copy link
Contributor Author

yes of cause, thx :)

@abhikpal abhikpal added this to the Pre-VisPy release milestone Jun 5, 2018
@abhikpal abhikpal self-assigned this Jun 5, 2018
@abhikpal abhikpal modified the milestones: Pre-VisPy release, Port backend to VisPy Jun 12, 2018
@abhikpal abhikpal closed this Jul 18, 2018
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.

3 participants