blas64

package
v0.0.0-...-40ed44c Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2015 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package blas64 provides a simple interface to the float64 BLAS API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asum

func Asum(n int, x Vector) float64

Asum will panic if the vector increment is negative.

func Axpy

func Axpy(n int, alpha float64, x, y Vector)

func Copy

func Copy(n int, x, y Vector)

func Dot

func Dot(n int, x, y Vector) float64

func Gbmv

func Gbmv(tA blas.Transpose, alpha float64, a Band, x Vector, beta float64, y Vector)

func Gemm

func Gemm(tA, tB blas.Transpose, alpha float64, a, b General, beta float64, c General)

func Gemv

func Gemv(tA blas.Transpose, alpha float64, a General, x Vector, beta float64, y Vector)

func Ger

func Ger(alpha float64, x, y Vector, a General)

func Iamax

func Iamax(n int, x Vector) int

Iamax will panic if the vector increment is negative.

func Implementation

func Implementation() blas.Float64

Implementation returns the current BLAS float64 implementation.

Implementation allows direct calls to the current the BLAS float64 implementation giving finer control of parameters.

func Nrm2

func Nrm2(n int, x Vector) float64

Nrm2 will panic if the vector increment is negative.

func Rot

func Rot(n int, x, y Vector, c, s float64)

func Rotg

func Rotg(a, b float64) (c, s, r, z float64)

func Rotm

func Rotm(n int, x, y Vector, p blas.DrotmParams)

func Rotmg

func Rotmg(d1, d2, b1, b2 float64) (p blas.DrotmParams, rd1, rd2, rb1 float64)

func Sbmv

func Sbmv(alpha float64, a SymmetricBand, x Vector, beta float64, y Vector)

func Scal

func Scal(n int, alpha float64, x Vector)

Scal will panic if the vector increment is negative

func Spmv

func Spmv(alpha float64, a SymmetricPacked, x Vector, beta float64, y Vector)

func Spr

func Spr(alpha float64, x Vector, a SymmetricPacked)

func Spr2

func Spr2(alpha float64, x, y Vector, a SymmetricPacked)

func Swap

func Swap(n int, x, y Vector)

func Symm

func Symm(s blas.Side, alpha float64, a Symmetric, b General, beta float64, c General)

func Symv

func Symv(alpha float64, a Symmetric, x Vector, beta float64, y Vector)

func Syr

func Syr(alpha float64, x Vector, a Symmetric)

func Syr2

func Syr2(alpha float64, x, y Vector, a Symmetric)

func Syr2k

func Syr2k(t blas.Transpose, alpha float64, a, b General, beta float64, c Symmetric)

func Syrk

func Syrk(t blas.Transpose, alpha float64, a General, beta float64, c Symmetric)

func Tbmv

func Tbmv(tA blas.Transpose, a TriangularBand, x Vector)

func Tbsv

func Tbsv(tA blas.Transpose, a TriangularBand, x Vector)

func Tpmv

func Tpmv(tA blas.Transpose, a TriangularPacked, x Vector)

func Tpsv

func Tpsv(tA blas.Transpose, a TriangularPacked, x Vector)

func Trmm

func Trmm(s blas.Side, tA blas.Transpose, alpha float64, a Triangular, b General)

func Trmv

func Trmv(tA blas.Transpose, a Triangular, x Vector)

func Trsm

func Trsm(s blas.Side, tA blas.Transpose, alpha float64, a Triangular, b General)

func Trsv

func Trsv(tA blas.Transpose, a Triangular, x Vector)

func Use

func Use(b blas.Float64)

Use sets the BLAS float64 implementation to be used by subsequent BLAS calls. The default implementation is native.Implementation.

Types

type Band

type Band struct {
	Rows, Cols int
	KL, KU     int
	Stride     int
	Data       []float64
}

Band represents a band matrix using the band storage scheme.

type General

type General struct {
	Rows, Cols int
	Stride     int
	Data       []float64
}

General represents a matrix using the conventional storage scheme.

type Symmetric

type Symmetric struct {
	N      int
	Stride int
	Data   []float64
	Uplo   blas.Uplo
}

Symmetric represents a symmetric matrix using the conventional storage scheme.

type SymmetricBand

type SymmetricBand struct {
	N, K   int
	Stride int
	Data   []float64
	Uplo   blas.Uplo
}

SymmetricBand represents a symmetric matrix using the band storage scheme.

type SymmetricPacked

type SymmetricPacked struct {
	N    int
	Data []float64
	Uplo blas.Uplo
}

SymmetricPacked represents a symmetric matrix using the packed storage scheme.

type Triangular

type Triangular struct {
	N      int
	Stride int
	Data   []float64
	Uplo   blas.Uplo
	Diag   blas.Diag
}

Triangular represents a triangular matrix using the conventional storage scheme.

type TriangularBand

type TriangularBand struct {
	N, K   int
	Stride int
	Data   []float64
	Uplo   blas.Uplo
	Diag   blas.Diag
}

TriangularBand represents a triangular matrix using the band storage scheme.

type TriangularPacked

type TriangularPacked struct {
	N    int
	Data []float64
	Uplo blas.Uplo
	Diag blas.Diag
}

TriangularPacked represents a triangular matrix using the packed storage scheme.

type Vector

type Vector struct {
	Inc  int
	Data []float64
}

Vector represents a vector with an associated element increment.

Jump to

Keyboard shortcuts

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