vtest

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package vtest is test suite for vector algebra re-usable across provided implementation variants

Index

Constants

View Source
const I = N * 100

Number of iterations

View Source
const N = 300

SUT Vector dimension

Variables

This section is empty.

Functions

func ID

func ID(x []float32) []float32

func TestDistance

func TestDistance[T any](t *testing.T, fmap func([]float32) T, ref, sut interface{ Distance(T, T) float32 })

func TestEqual

func TestEqual[T any](t *testing.T, fmap func([]float32) T, sut interface{ Equal(T, T) bool })

Types

type F32

type F32 = []float32

func Vector

func Vector() F32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL