k3s/vendor/gonum.org/v1/gonum/blas
Darren Shepherd 53ed13bf29 Update vendor 2020-04-18 23:59:08 -07:00
..
blas64 Update vendor 2020-04-18 23:59:08 -07:00
cblas128 Update vendor 2020-04-18 23:59:08 -07:00
gonum Update vendor 2020-04-18 23:59:08 -07:00
README.md Update vendor 2019-08-30 23:08:05 -07:00
blas.go Update vendor 2019-08-30 23:08:05 -07:00
conversions.bash go mod vendor 2019-09-05 15:16:39 -07:00
doc.go Update vendor 2019-08-30 23:08:05 -07:00

README.md

Gonum BLAS GoDoc

A collection of packages to provide BLAS functionality for the Go programming language

Installation

  go get gonum.org/v1/gonum/blas/...

Packages

blas

Defines BLAS API split in several interfaces.

blas/gonum

Go implementation of the BLAS API (incomplete, implements the float32 and float64 API).

blas/blas64 and blas/blas32

Wrappers for an implementation of the double (i.e., float64) and single (float32) precision real parts of the BLAS API.

package main

import (
	"fmt"

	"gonum.org/v1/gonum/blas/blas64"
)

func main() {
	v := blas64.Vector{Inc: 1, Data: []float64{1, 1, 1}}
	fmt.Println("v has length:", blas64.Nrm2(len(v.Data), v))
}

blas/cblas128 and blas/cblas64

Wrappers for an implementation of the double (i.e., complex128) and single (complex64) precision complex parts of the blas API.

Currently blas/cblas64 and blas/cblas128 require gonum.org/v1/netlib/blas.