Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Extend/improve Preconditions class #6451
It would be quite helpful to extend the capabilities of the preconditions class to be able to do things like:
I'm finding that some of the types of preconditions I would like to write cannot be done using Preconditions without object creation for the non-error case (like an INDArray.shape() call).
Edit: some useful NDArray formatting values could potentially be:
Edit 2: class names would also be useful. For example, Class.getSimpleName() results in object creation on each call.