Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Distance Functions for Futhark CI Documentation

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

$ futhark repl
> import "lib/github.com/athas/distance/distance"
> module vector = any_vector { let length = 2 }
> module euclidean32 = mk_euclidean f32 vector
> euclidean32.distance (vector.from_array [0,0]) (vector.from_array [1,1])
1.4142135f32

About

Distance measures in Futhark based on SciPy

Resources

Packages

No packages published