public class BLAS extends Object implements scala.Serializable
Original code from the Apache Spark project: http://git.io/vfZUe
Constructor and Description |
---|
BLAS() |
Modifier and Type | Method and Description |
---|---|
static void |
axpy(double a,
Vector x,
Vector y)
y += a * x
|
static void |
copy(Vector x,
Vector y)
y = x
|
static double |
dot(Vector x,
Vector y)
dot(x, y)
|
static void |
scal(double a,
Vector x)
x = a * x
|
static void |
syr(double alpha,
Vector x,
DenseMatrix A)
A := alpha * x * x^T^ + A
|
public static void scal(double a, Vector x)
public static void syr(double alpha, Vector x, DenseMatrix A)
alpha
- a real scalar that will be multiplied to x * x^T^.x
- the vector x that contains the n elements.A
- the symmetric matrix A. Size of n x n.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.