EjmlExtensionsKt

public final class EjmlExtensionsKt

Functions

Link copied to clipboard
public final static SimpleMatrix avgNorm(List<SimpleMatrix> $self)
public final static NDArray<Float, D1> avgNorm(List<NDArray<Float, D1>> $self)
Link copied to clipboard
public final static SimpleMatrix colNormalize(SimpleMatrix $self)
Link copied to clipboard
public final static Double cosineDistance(SimpleMatrix $self, SimpleMatrix other)
public final static Float cosineDistance(NDArray<Float, D1> $self, NDArray<Float, D1> other)
public final static NDArray<Float, D2> cosineDistance(NDArray<Float, D2> $self, NDArray<Float, D2> other)
Link copied to clipboard
public final static FMatrixRMaj cosineDistanceOneToMany(FMatrixRMaj $self, FMatrixRMaj other)
Link copied to clipboard
public final static SimpleMatrix createSparse(    Integer numRows,     Integer numCols,     Integer size)
Link copied to clipboard
public final static Unit divAssign(SimpleMatrix $self, Float alpha)
Link copied to clipboard
public final static Double euclideanDistance(SimpleMatrix $self, SimpleMatrix other)

Distance Algorithms

public final static Float euclideanDistance(NDArray<Float, D2> $self, NDArray<Float, D2> other)
Link copied to clipboard
public final static Float euclideanDistanceD1(NDArray<Float, D1> $self, NDArray<Float, D1> other)
Link copied to clipboard
public final static Float fastNormF(SimpleMatrix $self)

Fast Normalizers: OBS prone to overflows/underflows

Link copied to clipboard
public final static SimpleMatrix getCol(SimpleMatrix $self, Integer index)
Link copied to clipboard
public final static SimpleMatrix getRow(SimpleMatrix $self, Integer index)

Basic Retrieval

Link copied to clipboard
public final static SimpleMatrix getRows(SimpleMatrix $self, IntArray rows)
Link copied to clipboard
public final static SimpleMatrix iMap(SimpleMatrix $self, Function1<Float, Float> op)
Link copied to clipboard
public final static SimpleMatrix iMapWithCol(SimpleMatrix $self, Function2<Number, Integer, Number> op)
Link copied to clipboard
public final static SimpleMatrix iScale(SimpleMatrix $self, Float alpha)

Basic Operations

Link copied to clipboard
public final static SimpleMatrix map(SimpleMatrix $self, Function1<Float, Float> op)
Link copied to clipboard
public final static SimpleMatrix mapWithXY(SimpleMatrix $self, Function3<Integer, Integer, Double, Double> op)

Row, Col, Number

Link copied to clipboard
public final static Unit minusAssign(SimpleMatrix $self, SimpleMatrix other)
Link copied to clipboard
public final static Float norm2(NDArray<Float, D1> $self)
Link copied to clipboard
public final static SimpleMatrix normalize(SimpleMatrix $self)
Link copied to clipboard
public final static Float normP(NDArray<Float, D1> $self, Integer p)
Link copied to clipboard
public final static Integer numElems(SimpleMatrix $self)
Link copied to clipboard
public final static Unit plusAssign(SimpleMatrix $self, SimpleMatrix other)
Link copied to clipboard
public final static SimpleMatrix sumCols(SimpleMatrix $self)
Link copied to clipboard
public final static SimpleMatrix sumRows(SimpleMatrix $self)
Link copied to clipboard
public final static SimpleMatrix times(SimpleMatrix $self, SimpleMatrix other)
Link copied to clipboard
public final static Unit timesAssign(SimpleMatrix $self, Float alpha)