Skip to content

athas/distance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

 
 
 

Contributors