Package org.nd4j.linalg.util
Class LinAlgExceptions
- java.lang.Object
-
- org.nd4j.linalg.util.LinAlgExceptions
-
public class LinAlgExceptions extends Object
-
-
Constructor Summary
Constructors Constructor Description LinAlgExceptions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertAllConfigured(CustomOp op, int numExpectedArgs)Asserts that at least the number of arguments on the given op is met.static voidassertColumns(INDArray n, INDArray n2)static voidassertMatrix(INDArray arr)static voidassertMatrix(INDArray... arr)static voidassertMultiplies(INDArray nd1, INDArray nd2)Asserts matrix multiply rules (columns of left == rows of right or rows of left == columns of right)static voidassertRows(INDArray n, INDArray n2)static voidassertSameLength(INDArray x, INDArray z)Asserts both arrays be the same lengthstatic voidassertSameLength(INDArray x, INDArray y, INDArray z)static voidassertSameShape(INDArray n, INDArray n2)static voidassertSameShape(INDArray x, INDArray y, INDArray z)static voidassertValidNum(INDArray n)static voidassertVector(INDArray arr)static voidassertVector(INDArray... arr)
-
-
-
Method Detail
-
assertAllConfigured
public static void assertAllConfigured(CustomOp op, int numExpectedArgs)
Asserts that at least the number of arguments on the given op is met.- Parameters:
op- the op to validatenumExpectedArgs- the number of expected arguments
-
assertSameLength
public static void assertSameLength(INDArray x, INDArray z)
Asserts both arrays be the same length- Parameters:
x-z-
-
assertVector
public static void assertVector(INDArray... arr)
-
assertMatrix
public static void assertMatrix(INDArray... arr)
-
assertVector
public static void assertVector(INDArray arr)
-
assertMatrix
public static void assertMatrix(INDArray arr)
-
assertMultiplies
public static void assertMultiplies(INDArray nd1, INDArray nd2)
Asserts matrix multiply rules (columns of left == rows of right or rows of left == columns of right)- Parameters:
nd1- the left ndarraynd2- the right ndarray
-
assertValidNum
public static void assertValidNum(INDArray n)
-
-