Helper struct for constructing fixed_point
when value is already shifted.
More...
#include <fixed_point.hpp>
Public Member Functions | |
CUDF_HOST_DEVICE | scaled_integer (Rep v, scale_type s) |
Constructor for scaled_integer More... | |
Public Attributes | |
Rep | value |
The value of the fixed point number. | |
scale_type | scale |
The scale of the value. | |
Helper struct for constructing fixed_point
when value is already shifted.
Example:
Rep | The representation type (either int32_t or int64_t ) |
Definition at line 186 of file fixed_point.hpp.
|
inlineexplicit |
Constructor for scaled_integer
v | The value of the fixed point number |
s | The scale of the value |
Definition at line 195 of file fixed_point.hpp.