Tensors and NDArrays
INDArray fundamentals — shape, rank, stride, DataType, creating arrays, views vs copies, and off-heap memory in ND4J
What is an INDArray?
Key Properties
Indexing Convention
DataType
Available Types in M2.1
Preferred Name
Bits
Notes
Preferred Name
Bits
Preferred Name
Bits
Deprecated Aliases
Old name
Preferred name
Migration Note from beta4
Default DataType and Global Configuration
Creating NDArrays
Zeros and Ones
Scalar-Filled Arrays
From Java Arrays
Random Arrays
Linspace
Identity Matrix
Stacking and Concatenation
Shape Introspection
Views vs. Copies
Views Share Underlying Memory
Copies with dup()
In-Place vs. Out-of-Place Operations
Transpose is a View
Memory Layout
Off-Heap Storage
C Order and F Order
Getting and Setting Values
Individual Elements
Rows and Columns
Sub-Arrays with NDArrayIndex
Basic Operations Preview
Element-Wise Arithmetic
Matrix Multiplication
Reductions
Shape Transformations
Scalar Operations
Last updated
Was this helpful?