Class Binary


  • public class Binary
    extends Lop
    Lop to perform binary operation. Both inputs must be matrices, vectors or scalars. Example - A = B + C.
    • Method Detail

      • 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
      • 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
      • getOperationType

        public Types.OpOp2 getOperationType()
      • 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