Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
use floating point as default result type
Browse files Browse the repository at this point in the history
  • Loading branch information
lindahua committed Sep 15, 2013
1 parent 6718461 commit 0b2da29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ A Julia package for evaluating distances(metrics) between vectors.

This package also provides carefully optimized functions to compute column-wise and pairwise distances, which is often faster than a straightforward loop implementation by one or two orders of magnitude. (See the benchmark section below for details).

**Dependencies:** [Devectorize.jl](https://github.com/lindahua/Devectorize.jl)
**Dependencies:** [NumericExtensions.jl](https://github.com/lindahua/NumericExtensions.jl)


## Supported distances
Expand Down
2 changes: 1 addition & 1 deletion src/generic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract Metric <: SemiMetric

# Generic functions

result_type(::PreMetric, T1::Type, T2::Type) = promote_type(T1, T2)
result_type(::PreMetric, T1::Type, T2::Type) = NumericExtensions.to_fptype(promote_type(T1, T2))


# Generic column-wise evaluation
Expand Down

0 comments on commit 0b2da29

Please sign in to comment.