Package org.flag4j.core
Interface RealTensorMixin<T,W>
- Type Parameters:
T
- Tensor type.W
- Complex tensor type.
- All Known Implementing Classes:
CooMatrix
,CooTensor
,CooVector
,CsrMatrix
,Matrix
,RealDenseTensorBase
,RealSparseTensorBase
,Tensor
,Vector
public interface RealTensorMixin<T,W>
This interface specifies methods which all real tensors should implement.
-
Method Summary
-
Method Details
-
isPos
boolean isPos()Checks if this tensor contains only non-negative values.- Returns:
- True if this tensor only contains non-negative values. Otherwise, returns false.
-
isNeg
boolean isNeg()Checks if this tensor contains only non-positive values.- Returns:
- trie if this tensor only contains non-positive values. Otherwise, returns false.
-
toComplex
-