From f4b55da7eefa5a4b5c8521a05c554392f71816f6 Mon Sep 17 00:00:00 2001 From: Sebastien Binet Date: Mon, 6 Aug 2018 10:00:12 +0200 Subject: [PATCH] blas: fix documentation of Use functions This was noticed while adapting JuliaLang/Microbenchmarks#27 to the new Gonum import paths. This CL somewhat clarifies the correct default implementation (pure-Go) used by the various blas{32,64} and cblas{64,128} packages. --- blas/blas32/blas32.go | 3 ++- blas/blas64/blas64.go | 3 ++- blas/cblas128/cblas128.go | 3 ++- blas/cblas64/cblas64.go | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/blas/blas32/blas32.go b/blas/blas32/blas32.go index 7cf009fb..926a5ac2 100644 --- a/blas/blas32/blas32.go +++ b/blas/blas32/blas32.go @@ -12,7 +12,8 @@ import ( var blas32 blas.Float32 = gonum.Implementation{} // Use sets the BLAS float32 implementation to be used by subsequent BLAS calls. -// The default implementation is native.Implementation. +// The default implementation is +// gonum.org/v1/gonum/blas/gonum.Implementation. func Use(b blas.Float32) { blas32 = b } diff --git a/blas/blas64/blas64.go b/blas/blas64/blas64.go index 11dfaafb..91fb6090 100644 --- a/blas/blas64/blas64.go +++ b/blas/blas64/blas64.go @@ -12,7 +12,8 @@ import ( var blas64 blas.Float64 = gonum.Implementation{} // Use sets the BLAS float64 implementation to be used by subsequent BLAS calls. -// The default implementation is native.Implementation. +// The default implementation is +// gonum.org/v1/gonum/blas/gonum.Implementation. func Use(b blas.Float64) { blas64 = b } diff --git a/blas/cblas128/cblas128.go b/blas/cblas128/cblas128.go index 7612da2f..1205da8a 100644 --- a/blas/cblas128/cblas128.go +++ b/blas/cblas128/cblas128.go @@ -12,7 +12,8 @@ import ( var cblas128 blas.Complex128 = gonum.Implementation{} // Use sets the BLAS complex128 implementation to be used by subsequent BLAS calls. -// The default implementation is cgo.Implementation. +// The default implementation is +// gonum.org/v1/gonum/blas/gonum.Implementation. func Use(b blas.Complex128) { cblas128 = b } diff --git a/blas/cblas64/cblas64.go b/blas/cblas64/cblas64.go index a6810ab8..042a7dab 100644 --- a/blas/cblas64/cblas64.go +++ b/blas/cblas64/cblas64.go @@ -12,7 +12,8 @@ import ( var cblas64 blas.Complex64 = gonum.Implementation{} // Use sets the BLAS complex64 implementation to be used by subsequent BLAS calls. -// The default implementation is cgo.Implementation. +// The default implementation is +// gonum.org/v1/gonum/blas/gonum.Implementation. func Use(b blas.Complex64) { cblas64 = b }