mikera.vectorz.util
Class Testing
- java.lang.Object
-
- mikera.vectorz.util.Testing
-
public class Testing extends java.lang.ObjectUtility function for testing arrays / matrix implementations
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static AVectorcreateTestVector(int length)static AVectorcreateTestVector(int length, Random r)static INDArrayfillRandom(INDArray a, Random r)Fills an array with random values in the [0..1) range.static booleanvalidateFullyMutable(INDArray m)
-
-
-
Method Detail
-
createTestVector
public static AVector createTestVector(int length)
-
fillRandom
public static INDArray fillRandom(INDArray a, Random r)
Fills an array with random values in the [0..1) range. Returns the mutated array.- Parameters:
a-r-- Returns:
-
validateFullyMutable
public static boolean validateFullyMutable(INDArray m)
-
-
DMelt 3.0 © DataMelt by jWork.ORG