Package org.flag4j.core
Interface VectorMixin<T,U,V,W,X extends Number,TT,UU,WW>
- Type Parameters:
T
- Type of this vector.U
- Dense vector type.V
- Sparse Vector type.W
- Complex vector type.X
- The type of individual entry within the vector.TT
- The matrix type equivalent to this vector.UU
- Dense Matrix type equivalent.WW
- Complex matrix type equivalent.
- All Superinterfaces:
VectorComparisonsMixin
,VectorManipulationsMixin<TT>
,VectorOperationsMixin<T,
,U, V, W, X, TT, UU, WW> VectorPropertiesMixin
- All Known Implementing Classes:
CooCVector
,CooVector
,CVector
,Vector
public interface VectorMixin<T,U,V,W,X extends Number,TT,UU,WW>
extends VectorPropertiesMixin, VectorManipulationsMixin<TT>, VectorComparisonsMixin, VectorOperationsMixin<T,U,V,W,X,TT,UU,WW>
This interface specifies methods which all vectors should implement.
-
Method Summary
Methods inherited from interface org.flag4j.core.VectorManipulationsMixin
extend
Methods inherited from interface org.flag4j.core.VectorOperationsMixin
add, add, add, add, elemDiv, elemDiv, elemMult, elemMult, elemMult, elemMult, inner, inner, inner, inner, isParallel, isPerp, join, join, join, join, normalize, outer, outer, outer, outer, stack, stack, stack, stack, stack, stack, stack, stack, sub, sub, sub, sub, toMatrix, toMatrix
Methods inherited from interface org.flag4j.core.VectorPropertiesMixin
length, maxAbs
-
Method Details
-
size
int size()gets the size of this vector.- Returns:
-
repeat
Repeats a vectorn
times along a certain axis to create a matrix.- Parameters:
n
- Number of times to repeat vector.axis
- Axis along which to repeat vector. Ifaxis=0
then each row of the resulting matrix will be equivalent to this vector. Ifaxis=1
then each column of the resulting matrix will be equivalent to this vector.- Returns:
- A matrix whose rows/columns are this vector repeated.
-