code: public static INDArray sigmoid(INDArray ndArray, boolean dup) {
          return exec(dup ? new Sigmoid(ndArray, ndArray.ulike()) : new Sigmoid(ndArray));
      }
docs: Sigmoid function
  
  @param ndArray
  @param dup
  @return