forked from kscience/kmath
change IllegalArgumentException to RuntimeException
This commit is contained in:
parent
70e1861e53
commit
626d5c98fa
@ -75,7 +75,7 @@ public class RealTensorAlgebra : TensorPartialDivisionAlgebra<Double, RealTensor
|
|||||||
val curDim = shape[i]
|
val curDim = shape[i]
|
||||||
val offset = totalDim - shape.size
|
val offset = totalDim - shape.size
|
||||||
if (curDim != 1 && totalShape[i + offset] != curDim) {
|
if (curDim != 1 && totalShape[i + offset] != curDim) {
|
||||||
throw IllegalArgumentException("Shapes are not compatible and cannot be broadcast")
|
throw RuntimeException("Shapes are not compatible and cannot be broadcast")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user