public class PartialDerivatives
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static PartialDerivatives |
OF_CONSTANT |
Constructor and Description |
---|
PartialDerivatives(long id,
DoubleTensor derivativeWithRespectTo) |
PartialDerivatives(java.util.Map<java.lang.Long,DoubleTensor> derivativeWithRespectTo) |
public static PartialDerivatives OF_CONSTANT
public PartialDerivatives(long id, DoubleTensor derivativeWithRespectTo)
public PartialDerivatives(java.util.Map<java.lang.Long,DoubleTensor> derivativeWithRespectTo)
public static PartialDerivatives withRespectToSelf(long withRespectTo, int[] shape)
public DoubleTensor withRespectTo(Vertex vertex)
public DoubleTensor withRespectTo(long id)
public boolean isEmpty()
public java.util.Map<java.lang.Long,DoubleTensor> asMap()
public void putWithRespectTo(long id, DoubleTensor value)
public PartialDerivatives sum(boolean reshape, int... overDimensions)
public PartialDerivatives add(PartialDerivatives toAdd)
public PartialDerivatives subtract(PartialDerivatives toSubtract)
public PartialDerivatives multiplyBy(DoubleTensor multiplier)
public static PartialDerivatives matrixMultiply(PartialDerivatives partials, DoubleTensor multiplier, boolean partialIsLeft)
public PartialDerivatives multiplyBy(double multiplier)
public PartialDerivatives divideBy(DoubleTensor divisor)
public PartialDerivatives divideBy(double divisor)
public PartialDerivatives powerTo(double power)
public PartialDerivatives clone()
clone
in class java.lang.Object
public PartialDerivatives reshape(int currentRank, int[] proposedShape)
public static DoubleTensor increaseRankByPrependingOnesToShape(DoubleTensor lowRankTensor, int desiredRank)
public static DoubleTensor increaseRankByAppendingOnesToShape(DoubleTensor lowRankTensor, int desiredRank)