Tensor<T>.Find Method
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Overload List
Find() | Gets the linearized indexes of the elements of the tensor that are not zero. |
Find( | Gets the linearized indexes where the elements of the tensor satisfy the specified predicate. |
Find
Gets the linearized indexes of the elements
of the tensor that are not zero.
public virtual int[] Find()
Return Value
Int32[]An integer array that contains the linearized indexes of the elements of this tensor that are not zero.
Find(Func<T, Boolean>)
Gets the linearized indexes where the elements
of the tensor satisfy the specified predicate.
public virtual int[] Find(
Func<T, bool> predicate
)
Parameters
Return Value
Int32[]An integer array that contains the linearized indexes of the elements of this tensor that satisfy predicate.
Exceptions
Argument | predicate is null. |