Class BreezeUtil

Object
org.apache.spark.ml.ann.BreezeUtil

public class BreezeUtil extends Object
In-place DGEMM and DGEMV for Breeze
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    dgemm(double alpha, breeze.linalg.DenseMatrix<Object> A, breeze.linalg.DenseMatrix<Object> B, double beta, breeze.linalg.DenseMatrix<Object> C)
    DGEMM: C := alpha * A * B + beta * C
    static void
    dgemv(double alpha, breeze.linalg.DenseMatrix<Object> A, breeze.linalg.DenseVector<Object> x, double beta, breeze.linalg.DenseVector<Object> y)
    DGEMV: y := alpha * A * x + beta * y

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BreezeUtil

      public BreezeUtil()
  • Method Details

    • dgemm

      public static void dgemm(double alpha, breeze.linalg.DenseMatrix<Object> A, breeze.linalg.DenseMatrix<Object> B, double beta, breeze.linalg.DenseMatrix<Object> C)
      DGEMM: C := alpha * A * B + beta * C
      Parameters:
      alpha - alpha
      A - A
      B - B
      beta - beta
      C - C
    • dgemv

      public static void dgemv(double alpha, breeze.linalg.DenseMatrix<Object> A, breeze.linalg.DenseVector<Object> x, double beta, breeze.linalg.DenseVector<Object> y)
      DGEMV: y := alpha * A * x + beta * y
      Parameters:
      alpha - alpha
      A - A
      x - x
      beta - beta
      y - y