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)
        getBroadcastInput in class Lop
        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
        getInstructions in class Lop
        input1 - input 1
        input2 - input 2
        output - output
        instructions as string