Class DenseRingVectorOps

java.lang.Object
org.flag4j.linalg.ops.dense.ring_ops.DenseRingVectorOps

public final class DenseRingVectorOps extends Object
This utility class contains methods for computing ops on dense Ring Vectors.
  • Method Details

    • innerProduct

      public static <T extends Ring<T>> T innerProduct(T[] src1, T[] src2)
      Computes the vector inner product for two vectors.
      Parameters:
      src1 - Entries of the first vector.
      src2 - Entries of the second vector.
      Returns:
      The inner product of the two vectors.
    • outerProduct

      public static <T extends Ring<T>> Ring<T>[] outerProduct(T[] src1, T[] src2)
      Computes the vector outer product between two real dense vectors.
      Parameters:
      src1 - Entries of first vector.
      src2 - Entries of second vector.
      Returns:
      The matrix resulting from the vector outer product.
    • outerProductConcurrent

      public static <T extends Ring<T>> Ring<T>[] outerProductConcurrent(T[] src1, T[] src2)
      Computes the vector outer product between two real dense vectors using a concurrent implementation.
      Parameters:
      src1 - Entries of first vector.
      src2 - Entries of second vector.
      Returns:
      The matrix resulting from the vector outer product.