Class RealComplexCooConcats
java.lang.Object
org.flag4j.linalg.ops.sparse.coo.real_complex.RealComplexCooConcats
This utility class contains implementations for ops which concatenate sparse COO matrices and vectors.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CooCMatrix
augment
(CooCMatrix a, CooMatrix b) Augments two matrices.static CooCMatrix
augment
(CooCMatrix a, CooVector b) Augments a real sparse COO vector to a complex sparse COO matrix.
-
Method Details
-
augment
Augments two matrices. That is, combines the columns of the two matrices.- Parameters:
a
- The first matrix in the augmentation.b
- The second matrix in the augmentation.- Returns:
- The result of augmenting the two matrices
a
andb
. - Throws:
IllegalArgumentException
- Ifa.numRows != b.numRows
-
augment
Augments a real sparse COO vector to a complex sparse COO matrix.- Parameters:
a
- COO matrix in the augmentation operation.b
- COO vector in the augmentation operation.- Returns:
- The result of augmenting the vector
b
to the right hand side of the matrixa
.
-