FloatingPoint32ValuePopulator class
A special type of FloatingPointValuePopulator that adjusts how FloatingPoint32Values are populated.
- Inheritance
-
- Object
- FloatingPointValuePopulator<
FloatingPoint32Value> - FloatingPoint32ValuePopulator
Constructors
- FloatingPoint32ValuePopulator.new(FloatingPoint32Value _unpopulated)
- Constructor for a 32-bit floating point value populator.
Properties
- bias → int
-
The bias of floating point value.
no setterinherited
- explicitJBit → bool
-
true
if the format stores the Jbit explicitly.no setterinherited - exponentWidth → int
-
The width of the exponent field.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- mantissaWidth → int
-
The width of the mantissa field.
no setterinherited
- maxExponent → int
-
The maximum exponent value.
no setterinherited
- minExponent → int
-
The minimum exponent value.
no setterinherited
- nan → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.nan.
no setterinherited
- negativeInfinity → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.negativeInfinity.
no setterinherited
- negativeZero → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.negativeZero.
no setterinherited
- one → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.one.
no setterinherited
- positiveInfinity → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.positiveInfinity.
no setterinherited
- positiveZero → FloatingPoint32Value
-
Creates a new FloatingPointValue representing
FloatingPointConstants.positiveZero.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subNormalAsZero → bool
-
true
if subnormal numbers are treated as zero.no setterinherited
Methods
-
getConstantComponents(
FloatingPointConstants constant) → ({LogicValue exponent, LogicValue mantissa, LogicValue sign}) -
Return the set of LogicValues for a given FloatingPointConstants at a
given exponentWidth and mantissaWidth.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ofBigInts(
BigInt exponent, BigInt mantissa, {bool sign = false}) → FloatingPoint32Value -
FloatingPointValue constructor from a set of BigInts of the binary
representation and the size of the exponent and mantissa
inherited
-
ofBinaryStrings(
String sign, String exponent, String mantissa) → FloatingPoint32Value -
FloatingPointValue constructor from a binary string representation of
individual bitfields
inherited
-
ofConstant(
FloatingPointConstants constantFloatingPoint) → FloatingPoint32Value -
Creates a new FloatingPointValue represented by the given
constantFloatingPoint
.inherited -
ofDouble(
double inDouble, {FloatingPointRoundingMode roundingMode = FloatingPointRoundingMode.roundNearestEven}) → FloatingPoint32Value -
Convert from double using its native binary representation
override
-
ofFloatingPoint(
FloatingPoint fp) → FloatingPoint32Value -
Extracts a FloatingPointValue from a FloatingPoint's current
value
.inherited -
ofFloatingPointPrevious(
FloatingPoint fp) → FloatingPoint32Value? -
Extracts a FloatingPointValue from a FloatingPoint's
previousValue
.inherited -
ofFloatingPointValue(
FloatingPointValue fpv, {bool canonicalizeExplicit = false}) → FloatingPointValue -
Convert to from one FloatingPointValue to another, canonicalizing
the mantissa as requested if the output FloatingPointValue has
an explicit J bit.
inherited
-
ofInts(
int exponent, int mantissa, {bool sign = false}) → FloatingPoint32Value -
FloatingPointValue constructor from a set of ints of the binary
representation and the size of the exponent and mantissa
inherited
-
ofLogicValue(
LogicValue val) → FloatingPoint32Value -
Construct a FloatingPointValue from a LogicValue
inherited
-
ofSpacedBinaryString(
String fp) → FloatingPoint32Value -
FloatingPointValue constructor from a single binary string representing
space-separated bitfields in the order of sign, exponent, mantissa.
inherited
-
ofString(
String fp, {int radix = 2}) → FloatingPoint32Value -
FloatingPointValue constructor from a radix-encoded string
representation and the size of the exponent and mantissa
inherited
-
populate(
{required LogicValue sign, required LogicValue exponent, required LogicValue mantissa}) → FloatingPoint32Value -
Populates the FloatingPointValue with the given
sign
,exponent
, andmantissa
, then performs additional validation.inherited -
random(
Random rv, {bool normal = false, bool subNormal = false, bool genNormal = true, bool genSubNormal = true, bool excludeInfinity = false, FloatingPoint32Value? gt, FloatingPoint32Value? lt, FloatingPoint32Value? gte, FloatingPoint32Value? lte}) → FloatingPoint32Value -
Generate a random FloatingPointValue, using random seed
rv
in a given range, if provided. The distribution of values is uniform across the combined bitfield of exponent and mantissa.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited