Class DenseFieldOps

java.lang.Object
org.flag4j.linalg.ops.dense.field_ops.DenseFieldOps

public final class DenseFieldOps extends Object
This class provides low level methods for computing ops on dense field tensors.
  • Method Details

    • div

      public static <T extends Field<T>> void div(Shape shape1, T[] src1, Shape shape2, T[] src2, T[] dest)
      Computes the element-wise division between two tensors.
      Parameters:
      shape1 - Shape of the first tensor.
      src1 - Entries of the first tensor.
      shape2 - Shape of the second tenor.
      src2 - Entries of the second tensor.
      dest - Array to store the result in. May be the same array as either src1 or src2.
      Throws:
      TensorShapeException - If !shape1.equals(shape2).
      ArrayIndexOutOfBoundsException - If src2.length < src1.length || dest.length < src1.length.