compute

package
v0.0.0-...-8b501b0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SumOfSquares

func SumOfSquares(c Device, in []float32) float32

SumOfSquares squares each entry on the in slice and returns the sum of all squared entries.

Types

type Device

type Device interface {
	Square([]float32) []float32
	Sum([]float32) float32
}

Device is implemented by objects that can perform vector operations on slices containing single-precision floating point numbers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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