public interface Level1
Modifier and Type | Method and Description |
---|---|
double |
asum(INDArray arr)
computes the sum of magnitudes of all vector elements or, for a complex vector x, the sum
|
double |
asum(long N,
DataBuffer x,
int offsetX,
int incrX)
sum of magnitudes of all elements
|
void |
axpy(long N,
double alpha,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY)
computes a vector-scalar product and adds the result to a vector.
|
void |
axpy(long N,
double alpha,
INDArray x,
INDArray y)
computes a vector-scalar product and adds the result to a vector.
|
void |
copy(INDArray x,
INDArray y)
copy a vector to another vector.
|
void |
copy(long N,
DataBuffer x,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY)
copy a vector to another vector.
|
double |
dot(long N,
DataBuffer dx,
int offsetX,
int incrX,
DataBuffer y,
int offsetY,
int incrY)
Vector-vector dot product
|
double |
dot(long N,
double alpha,
INDArray X,
INDArray Y)
computes a vector-vector dot product.
|
int |
iamax(INDArray arr)
finds the element of a
vector that has the largest absolute value.
|
int |
iamax(long N,
DataBuffer x,
int offsetX,
int incrX)
Index of largest absolute value
|
int |
iamax(long N,
INDArray arr,
int stride)
finds the element of a
vector that has the largest absolute value.
|
int |
iamin(INDArray arr)
finds the element of a vector that has the minimum absolute value.
|
double |
nrm2(INDArray arr)
computes the Euclidean norm of a vector.
|
void |
rot(long N,
INDArray X,
INDArray Y,
double c,
double s)
performs rotation of points in the plane.
|
void |
rotg(INDArray a,
INDArray b,
INDArray c,
INDArray s)
computes parameters for a Givens rotation.
|
void |
rotmg(INDArray d1,
INDArray d2,
INDArray b1,
double b2,
INDArray P)
computes the modified parameters for a Givens rotation.
|
void |
scal(long N,
double alpha,
INDArray X)
computes a vector by a scalar product.
|
boolean |
supportsDataBufferL1Ops()
Can we use the axpy and copy methods that take a DataBuffer instead of an INDArray with this backend?
|
void |
swap(INDArray x,
INDArray y)
swaps a vector with another vector.
|
double dot(long N, double alpha, INDArray X, INDArray Y)
n
- alpha
- X
- Y
- double dot(long N, DataBuffer dx, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)
double nrm2(INDArray arr)
arr
- double asum(INDArray arr)
arr
- double asum(long N, DataBuffer x, int offsetX, int incrX)
int iamax(INDArray arr)
arr
- int iamax(long N, INDArray arr, int stride)
n
- the length to iterate forarr
- the array to get the max
index forstride
- the stride for the arrayint iamax(long N, DataBuffer x, int offsetX, int incrX)
int iamin(INDArray arr)
arr
- void copy(long N, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)
x
- y
- void axpy(long N, double alpha, INDArray x, INDArray y)
n
- alpha
- x
- y
- void axpy(long N, double alpha, DataBuffer x, int offsetX, int incrX, DataBuffer y, int offsetY, int incrY)
n
- number of operationsalpha
- x
- XoffsetX
- offset of first element of X in bufferincrX
- increment/stride between elements of X in buffery
- YoffsetY
- offset of first element of Y in bufferincrY
- increment/stride between elements of Y in buffervoid rotg(INDArray a, INDArray b, INDArray c, INDArray s)
a
- b
- c
- s
- void rot(long N, INDArray X, INDArray Y, double c, double s)
N
- X
- Y
- c
- s
- void rotmg(INDArray d1, INDArray d2, INDArray b1, double b2, INDArray P)
d1
- d2
- b1
- b2
- P
- void scal(long N, double alpha, INDArray X)
N
- alpha
- X
- boolean supportsDataBufferL1Ops()
Copyright © 2021. All rights reserved.