Distance measures in Futhark based on SciPy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/github.com/athas/distance
.gitignore
.travis.yml
README.md
futhark.pkg

README.md

Distance Functions for Futhark Build Status

This package contains a variety of distance functions written in Futhark. They are heavily inspired by the corresponding functions in SciPy.

Installation

$ futhark-pkg add github.com/athas/distance
$ futhark-pkg sync

Usage

$ futharki
> import "lib/github.com/athas/distance/distance"
> module euclidean32 = mk_euclidean f32 any_vector
> euclidean32.distance [0,0] [1,1]
1.4142135f32