// tertiary where first input is a matrix, and second and third inputs are scalars (double)
 public static void performTernary(
     MatrixIndexes indexesIn1,
     MatrixValue valueIn1,
     double scalarIn2,
     double scalarIn3,
     CTableMap resultMap,
     MatrixBlock resultBlock,
     Operator op)
     throws DMLRuntimeException {
   // operation on the cells inside the value
   valueIn1.ternaryOperations(op, scalarIn2, scalarIn3, resultMap, resultBlock);
 }