org.nd4j.linalg.indexing
Class BooleanIndexing
- java.lang.Object
-
- org.nd4j.linalg.indexing.BooleanIndexing
-
public class BooleanIndexing extends java.lang.ObjectBoolean indexing
-
-
Constructor Summary
Constructors Constructor and Description BooleanIndexing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static booleanand(IComplexNDArray n, Condition cond)Andstatic booleanand(INDArray n, Condition cond)And over the whole ndarray given some conditionstatic voidapplyWhere(IComplexNDArray to, Condition condition, Function<IComplexNumber,IComplexNumber> function)Based on the matching elements transform to based on condition to with function functionstatic voidapplyWhere(INDArray to, Condition condition, Function<java.lang.Number,java.lang.Number> function)Based on the matching elements transform to based on condition to with function functionstatic booleanor(IComplexNDArray n, Condition cond)Or over the whole ndarray given some conditionstatic booleanor(INDArray n, Condition cond)Or over the whole ndarray given some condition
-
-
-
Method Detail
-
and
public static boolean and(IComplexNDArray n, Condition cond)
And- Parameters:
n-cond-- Returns:
-
or
public static boolean or(IComplexNDArray n, Condition cond)
Or over the whole ndarray given some condition- Parameters:
n-cond-- Returns:
-
and
public static boolean and(INDArray n, Condition cond)
And over the whole ndarray given some condition- Parameters:
n-cond-- Returns:
-
or
public static boolean or(INDArray n, Condition cond)
Or over the whole ndarray given some condition- Parameters:
n-cond-- Returns:
-
applyWhere
public static void applyWhere(INDArray to, Condition condition, Function<java.lang.Number,java.lang.Number> function)
Based on the matching elements transform to based on condition to with function function- Parameters:
to- the ndarray to transformcondition- the condition on transformfunction- the function to apply the transform to
-
applyWhere
public static void applyWhere(IComplexNDArray to, Condition condition, Function<IComplexNumber,IComplexNumber> function)
Based on the matching elements transform to based on condition to with function function- Parameters:
to- the ndarray to transformcondition- the condition on transformfunction- the function to apply the transform to
-
-
DMelt 3.0 © DataMelt by jWork.ORG