Class MapMult

java.lang.Object
org.apache.sysds.lops.Lop
org.apache.sysds.lops.MapMult

public class MapMult extends Lop
  • Field Details

    • OPCODE

      public static final String OPCODE
  • Constructor Details

    • MapMult

      public MapMult(Lop input1, Lop input2, Types.DataType dt, Types.ValueType vt, boolean rightCache, boolean partitioned, boolean emptyBlocks, AggBinaryOp.SparkAggType aggtype)
      Constructor to setup a partial Matrix-Vector Multiplication for Spark
      Parameters:
      input1 - low-level operator 1
      input2 - low-level operator 2
      dt - data type
      vt - value type
      rightCache - true if right cache, false if left cache
      partitioned - true if partitioned, false if not partitioned
      emptyBlocks - true if output empty blocks
      aggtype - spark aggregation type
  • Method Details

    • getAggType

      public AggBinaryOp.SparkAggType getAggType()
      Description copied from class: Lop
      Method to get aggregate type if applicable. This method is overridden by the Lops with aggregate types (e.g. MapMult)
      Overrides:
      getAggType in class Lop
      Returns:
      SparkAggType
    • getBroadcastInput

      public Lop getBroadcastInput()
      Description copied from class: Lop
      Method to get the input to be broadcast. This method is overridden by the Lops which require broadcasts (e.g. AppendM)
      Overrides:
      getBroadcastInput in class Lop
      Returns:
      An input Lop or Null
    • toString

      public String toString()
      Description copied from class: Lop
      Method to have Lops print their state. This is for debugging purposes.
      Specified by:
      toString in class Lop
    • getInstructions

      public String getInstructions(String input1, String input2, String output)
      Description copied from class: Lop
      Method should be overridden if needed
      Overrides:
      getInstructions in class Lop
      Parameters:
      input1 - input 1
      input2 - input 2
      output - output
      Returns:
      instructions as string