Package org.flag4j.core
Interface VectorPropertiesMixin
- Type Parameters:
T
- Vector type.U
- Dense Vector type.V
- Sparse Vector type.W
- Complex Vector type.Y
- Real Vector type.X
- Vector entry type.
- All Known Subinterfaces:
VectorMixin<T,
U, V, W, X, TT, UU, WW>
- All Known Implementing Classes:
CooCVector
,CooVector
,CVector
,Vector
public interface VectorPropertiesMixin
This interface specifies methods which provide properties of a vector. All vectors should implement this interface.
-
Method Summary
-
Method Details
-
length
int length()Gets the length of a vector.- Returns:
- The length, i.e. the number of entries, in this vector.
-
maxAbs
double maxAbs()Finds the maximum value, in absolute value, in this tensor. If this tensor is complex, then this method is equivalent toTensorPropertiesMixin.max()
.- Returns:
- The maximum value, in absolute value, in this tensor.
-