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

allows non-symmetric distance matrices #634

Merged
merged 1 commit into from
Jun 20, 2015
Merged

Conversation

dfolch
Copy link
Member

@dfolch dfolch commented Jun 19, 2015

This PR addresses #633

For clearly symmetric distance matrices (i.e., when destpattern=None) it only computes the upper triangle, and then mirrors that to the lower triangle. For all other point pattern pairs, the full distance matrix is computed, including the mxn case.

Note: this PR currently follows the existing code by putting NAN along the diagonal of symmetric matrices. Should this be changed to zero?

@jlaura jlaura self-assigned this Jun 19, 2015
jlaura added a commit that referenced this pull request Jun 20, 2015
allows non-symmetric distance matrices
@jlaura jlaura merged commit 6d3b18b into pysal:master Jun 20, 2015
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.

None yet

2 participants