github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/blas/README.md (about)

     1  # Gonum BLAS [![GoDoc](https://godoc.org/github.com/jingcheng-WU/gonum/blas?status.svg)](https://godoc.org/github.com/jingcheng-WU/gonum/blas)
     2  
     3  A collection of packages to provide BLAS functionality for the [Go programming
     4  language](http://golang.org)
     5  
     6  ## Installation
     7  ```sh
     8    go get github.com/jingcheng-WU/gonum/blas/...
     9  ```
    10  
    11  ## Packages
    12  
    13  ### blas
    14  
    15  Defines [BLAS API](http://www.netlib.org/blas/blast-forum/cinterface.pdf) split in several
    16  interfaces.
    17  
    18  ### blas/gonum
    19  
    20  Go implementation of the BLAS API (incomplete, implements the `float32` and `float64` API).
    21  
    22  ### blas/blas64 and blas/blas32
    23  
    24  Wrappers for an implementation of the double (i.e., `float64`) and single (`float32`)
    25  precision real parts of the BLAS API.
    26  
    27  ```Go
    28  package main
    29  
    30  import (
    31  	"fmt"
    32  
    33  	"github.com/jingcheng-WU/gonum/blas/blas64"
    34  )
    35  
    36  func main() {
    37  	v := blas64.Vector{Inc: 1, Data: []float64{1, 1, 1}}
    38  	fmt.Println("v has length:", blas64.Nrm2(len(v.Data), v))
    39  }
    40  ```
    41  
    42  ### blas/cblas128 and blas/cblas64
    43  
    44  Wrappers for an implementation of the double (i.e., `complex128`) and single (`complex64`) 
    45  precision complex parts of the blas API.
    46  
    47  Currently blas/cblas64 and blas/cblas128 require gonum.org/v1/netlib/blas.