Interface ToDoubleCast
- All Superinterfaces:
AutoCloseable,SafeCloseable
- All Known Implementing Classes:
ByteToDoubleCast,CharToDoubleCast,DoubleToDoubleCast,FloatToDoubleCast,IntToDoubleCast,LongToDoubleCast,ShortToDoubleCast,ToDoubleCast.Identity
public interface ToDoubleCast extends SafeCloseable
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classToDoubleCast.Identity -
Field Summary
Fields Modifier and Type Field Description static ToDoubleCastIDENTITY -
Method Summary
Modifier and Type Method Description <T> DoubleChunk<? extends T>cast(Chunk<? extends T> input)static ToDoubleCastmakeToDoubleCast(ChunkType type, int size)Create a kernel that casts the values in an input chunk to an double.
-
Field Details
-
Method Details
-
cast
-
makeToDoubleCast
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 typesize- the size of the largest chunk that can be cast by this kernel- Returns:
- a
ToIntFunctorthat can be applied to chunks of type in order to produce a DoubleChunk of values
-