D2SparseArray

public final class D2SparseArray implements MultiArray<Float, D2>

Compressed Column (CC) Sparse Matrix File Format

Constructors

Link copied to clipboard
public D2SparseArray D2SparseArray(    IntArray rowIndices,     IntArray colIndices,     MemoryView<Float> data,     IntArray shape,     MultiArray<Float, ? extends Dimension> base)

Types

Link copied to clipboard
public class Companion

Functions

Link copied to clipboard
public NDArray<Float, D2> cat(MultiArray<Float, D2> other)
public NDArray<Float, D2> cat(List<MultiArray<Float, D2>> other, Integer axis)
public NDArray<Float, D2> cat(MultiArray<Float, D2> other, Integer axis)
Link copied to clipboard
public D2SparseArray copy()
Link copied to clipboard
public MutableMultiArray<Float, D2> deepCopy()
Link copied to clipboard
public MultiArray<Float, D1> flatten()
Link copied to clipboard
public final Float get(Integer row, Integer col)
Link copied to clipboard
public MultiArray<Float, ? extends Dimension> getBase()
Link copied to clipboard
public final IntArray getColIndices()
Link copied to clipboard
public Boolean getConsistent()
Link copied to clipboard
public MemoryView<Float> getData()
Link copied to clipboard
public D2 getDim()
Link copied to clipboard
public DataType getDtype()
Link copied to clipboard
public final Map<Pair<Integer, Integer>, Integer> getIndexMap()
Link copied to clipboard
public IntRange getIndices()
Link copied to clipboard
public MultiIndexProgression getMultiIndices()
Link copied to clipboard
public Integer getOffset()
Link copied to clipboard
public final IntArray getRowIndices()
Link copied to clipboard
public IntArray getShape()
Link copied to clipboard
public Integer getSize()
Link copied to clipboard
public IntArray getStrides()
Link copied to clipboard
public Boolean isEmpty()
Link copied to clipboard
public Boolean isNotEmpty()
Link copied to clipboard
public Boolean isScalar()
Link copied to clipboard
public Iterator<Float> iterator()
Link copied to clipboard
public MutableMultiArray<Float, D1> reshape(Integer dim1)
public MutableMultiArray<Float, D2> reshape(Integer dim1, Integer dim2)
public MutableMultiArray<Float, D3> reshape(    Integer dim1,     Integer dim2,     Integer dim3)
public MutableMultiArray<Float, D4> reshape(    Integer dim1,     Integer dim2,     Integer dim3,     Integer dim4)
public MutableMultiArray<Float, DN> reshape(    Integer dim1,     Integer dim2,     Integer dim3,     Integer dim4,     Integer dims)
Link copied to clipboard
public MutableMultiArray<Float, DN> squeeze(Integer axes)
Link copied to clipboard
public D2SparseArray transpose(Integer axes)
Link copied to clipboard
public MutableMultiArray<Float, DN> unsqueeze(Integer axes)

Properties

Link copied to clipboard
private final MultiArray<Float, ? extends Dimension> base
Link copied to clipboard
private final IntArray colIndices
Link copied to clipboard
private final Boolean consistent
Link copied to clipboard
private final MemoryView<Float> data
Link copied to clipboard
private final D2 dim
Link copied to clipboard
private final DataType dtype
Link copied to clipboard
private final Map<Pair<Integer, Integer>, Integer> indexMap
Link copied to clipboard
private final IntRange indices
Link copied to clipboard
private final MultiIndexProgression multiIndices
Link copied to clipboard
private final Integer offset
Link copied to clipboard
private final IntArray rowIndices
Link copied to clipboard
private final IntArray shape
Link copied to clipboard
private final Integer size
Link copied to clipboard
private final IntArray strides

Extensions

Link copied to clipboard
public final MultiArray<Float, D2> dotDense(MultiArray<Float, D2> other)
Link copied to clipboard
public final D2SparseArray dotSparse(D2SparseArray other)
Link copied to clipboard
public final D2SparseArray mapIndexedNonZero(Function3<Float, Int, Int, Float> op)