public class PartialDerivative
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static PartialDerivative |
EMPTY |
Constructor and Description |
---|
PartialDerivative(DoubleTensor partial) |
public static final PartialDerivative EMPTY
public PartialDerivative(DoubleTensor partial)
public boolean isPresent()
public DoubleTensor get()
public long[] getOfShape(long[] wrtShape)
public long[] getWrtShape(long[] ofShape)
public PartialDerivative add(PartialDerivative addition)
public PartialDerivative subtract(PartialDerivative subtraction)
public PartialDerivative multiplyBy(double multiplier)
public PartialDerivative multiplyAlongOfDimensions(DoubleTensor multiplier)
multiplier
- the value to multiply bypublic PartialDerivative multiplyAlongOfDimensions(DoubleTensor multiplier, int partialOfRank)
multiplier
- the value to multiply bypartialOfRank
- the rank of the 'of' part of the partial. This is needed if it is different
from the rank of the multiplier. This happens for rank changing broadcast ops.public PartialDerivative divideByAlongOfDimensions(DoubleTensor divisor)
public PartialDerivative divideByAlongOfDimensions(DoubleTensor divisor, int partialOfRank)
public PartialDerivative multiplyAlongWrtDimensions(DoubleTensor multiplier)
public static PartialDerivative matrixMultiplyAlongOfDimensions(PartialDerivative partial, DoubleTensor multiplier, boolean partialIsLeft)
public static PartialDerivative matrixMultiplyAlongWrtDimensions(PartialDerivative partial, DoubleTensor multiplier, boolean partialIsLeft)