| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Numeric.DataFrame.Internal.Array.Class
Documentation
class PrimBytes t => PrimArray t a | a -> t where Source #
Methods
Broadcast element into array
ix# :: Int# -> a -> t Source #
Index an array given an offset
Arguments
| :: Int# | number of elements, not checked! Avoid using this argument if possible. |
| -> (s -> (#s, t#)) | |
| -> s | |
| -> (#s, a#) |
Generate an array using an accumulator funtion
Arguments
| :: Int# | number of elements, not checked! Avoid using this argument if possible. |
| -> Int# | |
| -> t | |
| -> a | |
| -> a |
update a single element in an array given an offset
elemOffset :: a -> Int# Source #
Offset of an array in number of elements
elemSize0 :: a -> Int# Source #
Number of elements in an array. Returns zero if this information is not available at runtime. This is possible only if all elements are same in an array.
fromElems :: Int# -> Int# -> ByteArray# -> a Source #
Get array by its offset and size in a ByteArray. Both offset and size are given in element number.
Instances
| PrimArray Double DoubleX4 Source # | |
| PrimArray Double DoubleX3 Source # | |
| PrimArray Double DoubleX2 Source # | |
| PrimArray Float FloatX4 Source # | |
| PrimArray Float FloatX3 Source # | |
| PrimArray Float FloatX2 Source # | |
| PrimBytes t => PrimArray t (ScalarBase t) Source # | |
| PrimBytes t => PrimArray t (ArrayBase t ds) Source # | |
unsafeFromFlatList :: PrimArray t a => Int -> [t] -> a Source #
Construct an array from a flat list and length