Interface ToDoubleCast

All Superinterfaces:
AutoCloseable, SafeCloseable
All Known Implementing Classes:
ByteToDoubleCast, CharToDoubleCast, DoubleToDoubleCast, FloatToDoubleCast, IntToDoubleCast, LongToDoubleCast, ShortToDoubleCast, ToDoubleCast.Identity

public interface ToDoubleCast
extends SafeCloseable
  • Field Details

  • Method Details

    • cast

      <T> DoubleChunk<? extends T> cast​(Chunk<? extends T> input)
    • makeToDoubleCast

      static ToDoubleCast makeToDoubleCast​(ChunkType type, int size)
      Create a kernel that casts the values in an input chunk to an double.
      Parameters:
      type - the type of chunk, must be an integral primitive type
      size - the size of the largest chunk that can be cast by this kernel
      Returns:
      a ToIntFunctor that can be applied to chunks of type in order to produce a DoubleChunk of values