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 void
assertAllConfigured(CustomOp op, int numExpectedArgs)
Asserts that at least the number of arguments on the given op is met.static void
assertColumns(INDArray n, INDArray n2)
static void
assertMatrix(INDArray arr)
static void
assertMatrix(INDArray... arr)
static void
assertMultiplies(INDArray nd1, INDArray nd2)
Asserts matrix multiply rules (columns of left == rows of right or rows of left == columns of right)static void
assertRows(INDArray n, INDArray n2)
static void
assertSameLength(INDArray x, INDArray z)
Asserts both arrays be the same lengthstatic void
assertSameLength(INDArray x, INDArray y, INDArray z)
static void
assertSameShape(INDArray n, INDArray n2)
static void
assertSameShape(INDArray x, INDArray y, INDArray z)
static void
assertValidNum(INDArray n)
static void
assertVector(INDArray arr)
static void
assertVector(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)
-
-