Blas

org.ekrich.blas.api.Blas
object Blas

C Blas API

Higher level Scala to call the underlying C API. The input Array gets directly past to the C function so there is no copying.

Adding optimizer options during the build will allow for function inlining mode = releaseFast or release and lto = thin or full for link time optimization. Refer to the docs for sbt settings: Scala Native.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Blas.type

Members list

Value members

Concrete methods

def dnrm2(X: Array[Double]): Double

L2 norm (Euclidian length) of a vector (double-precision).

L2 norm (Euclidian length) of a vector (double-precision).

Value parameters

X

Vector X.

Attributes

Returns

See description above.

def dnrm2(X: Array[Double], incX: Int): Double

L2 norm (Euclidian length) of a vector (double-precision).

L2 norm (Euclidian length) of a vector (double-precision).

Value parameters

X

Vector X.

incX

Stride within X.

Attributes

Returns

See description above.

def dnrm2(X: Array[Double], incX: Int, N: Int): Double

Attributes

def sdsdot(N: Int, alpha: Float, X: Array[Float], incX: CInt, Y: Array[Float], incY: Int): Float

Dot product of two single-precision vectors plus an initial single-precision value.

Dot product of two single-precision vectors plus an initial single-precision value.

Value parameters

N

The number of elements in the vectors.

X

Vector X.

Y

Vector Y.

alpha

The initial value to add to the dot product.

incX

Stride within X. For example, if incX is 7, every 7th element is used.

incY

Stride within Y. For example, if incY is 7, every 7th element is used.

Attributes

Returns

See description above.