org.eclipse.january.dataset

## Interface UnaryOperation

- All Superinterfaces:
    IOperation
  All Known Implementing Classes:
    Operations.Negation, UnaryOperation.Stub

      public interface UnaryOperation
      extends IOperation

  Interface to represent a unary operation for implementations over different output domains
  Since:
    2.0

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `UnaryOperation.Stub` Stub class where only two methods need to be overridden: `UnaryOperation.Stub.complexOperate(double[], double, double)`, `UnaryOperation.Stub.toString(String)`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `booleanOperate(long a)`
    `void` | `complexOperate(double[] out, double ra, double ia)`
    `double` | `doubleOperate(double a)`
    `long` | `longOperate(long a)`
    `String` | `toString(String a)`

- - ### Method Detail

    - #### booleanOperate

          boolean booleanOperate(long a)

      Parameters:
        `a` - single operand
      Returns:
        op(a)

    - #### longOperate

          long longOperate(long a)

      Parameters:
        `a` - single operand
      Returns:
        op(a)

    - #### doubleOperate

          double doubleOperate(double a)

      Parameters:
        `a` - single operand
      Returns:
        op(a)

    - #### complexOperate

          void complexOperate(double[] out,
                              double ra,
                              double ia)

      Parameters:
        `out` - holds op(ra, ia)
        `ra` - real part of operand
        `ia` - imaginary part of operand

    - #### toString

          String toString(String a)

      Parameters:
        `a` - single operand
      Returns:
        op(a)

Copyright © 2014–2022 Eclipse Foundation. All rights reserved.