Class RealComplexCooConcats

java.lang.Object
org.flag4j.linalg.ops.sparse.coo.real_complex.RealComplexCooConcats

public final class RealComplexCooConcats extends Object
This utility class contains implementations for ops which concatenate sparse COO matrices and vectors.
  • Method Details

    • augment

      public static CooCMatrix augment(CooCMatrix a, CooMatrix b)
      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 and b.
      Throws:
      IllegalArgumentException - If a.numRows != b.numRows
    • augment

      public static CooCMatrix augment(CooCMatrix a, CooVector b)
      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 matrix a.