Skip to content

Files

Latest commit

e44948c · Apr 6, 2024

History

History
This branch is 1 commit ahead of, 33 commits behind gonum/gonum:master.

blas

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 6, 2024
Apr 6, 2024
Apr 6, 2024
Apr 6, 2024
Apr 6, 2024
Apr 6, 2024
Mar 15, 2023
Sep 30, 2018
Nov 1, 2017
Nov 1, 2017

README.md

Gonum BLAS

go.dev reference 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}}
	v.N = len(v.Data)
	fmt.Println("v has length:", blas64.Nrm2(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.