public class LinearUtil extends Object
Constructor and Description |
---|
LinearUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
linearStride(INDArray arr)
When needing to look at an array that's a matrix or some other tensor
we typically need to map those arrays element wise (take axpy or uploading data as a linear buffer for example)
This handles finding the proper offset for the situations where a >= 2d array needs to be interpreted in a linear
form that may not be used outside of those contexts.
|
public static int linearStride(INDArray arr)
arr
- the array to get the stride forCopyright © 2015. All Rights Reserved.