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 class
ToDoubleCast.Identity
-
Field Summary
Fields Modifier and Type Field Description static ToDoubleCast
IDENTITY
-
Method Summary
Modifier and Type Method Description <T> DoubleChunk<? extends T>
cast(Chunk<? extends T> input)
static ToDoubleCast
makeToDoubleCast(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
ToIntFunctor
that can be applied to chunks of type in order to produce a DoubleChunk of values
-