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

relax metrics to Real #74

Merged
merged 3 commits into from
Aug 1, 2017
Merged

relax metrics to Real #74

merged 3 commits into from
Aug 1, 2017

Conversation

KristofferC
Copy link
Member

Also tests it by defining a new number type that is a subtype of Real and calling everything.

Replaces #72.

src/common.jl Outdated
@@ -65,7 +65,7 @@ end

function get_colwise_dims(d::Int, r::AbstractArray, a::AbstractMatrix, b::AbstractVector)
size(a, 1) == length(b) == d
throw(DimensionMismatch("Incorrect vector dimensions."))
Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you formatter, this was a missed || here.

@@ -58,7 +58,6 @@ export
rogerstanimoto,
chebyshev,
minkowski,
mahalanobis,
Copy link
Member Author

Choose a reason for hiding this comment

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

already exported above

@KristofferC KristofferC merged commit 7db5360 into master Aug 1, 2017
@KristofferC KristofferC deleted the kc/real branch August 1, 2017 18:27
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.

1 participant