FloatingPoint64ValuePopulator class

A special type of FloatingPointValuePopulator that adjusts how FloatingPoint64Values are populated.

Inheritance

Constructors

FloatingPoint64ValuePopulator(FloatingPoint64Value _unpopulated)
Constructor for a 64-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 → FloatingPoint64Value
Creates a new FloatingPointValue representing FloatingPointConstants.nan.
no setterinherited
negativeInfinity → FloatingPoint64Value
Creates a new FloatingPointValue representing FloatingPointConstants.negativeInfinity.
no setterinherited
negativeZero → FloatingPoint64Value
Creates a new FloatingPointValue representing FloatingPointConstants.negativeZero.
no setterinherited
one → FloatingPoint64Value
Creates a new FloatingPointValue representing FloatingPointConstants.one.
no setterinherited
positiveInfinity → FloatingPoint64Value
Creates a new FloatingPointValue representing FloatingPointConstants.positiveInfinity.
no setterinherited
positiveZero → FloatingPoint64Value
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}) → FloatingPoint64Value
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) → FloatingPoint64Value
FloatingPointValue constructor from a binary string representation of individual bitfields
inherited
ofConstant(FloatingPointConstants constantFloatingPoint) → FloatingPoint64Value
Creates a new FloatingPointValue represented by the given constantFloatingPoint.
inherited
ofDouble(double inDouble, {FloatingPointRoundingMode roundingMode = FloatingPointRoundingMode.roundNearestEven}) → FloatingPoint64Value
Convert from double using its native binary representation
override
ofFloatingPoint(FloatingPoint fp) → FloatingPoint64Value
Extracts a FloatingPointValue from a FloatingPoint's current value.
inherited
ofFloatingPointPrevious(FloatingPoint fp) → FloatingPoint64Value?
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}) → FloatingPoint64Value
FloatingPointValue constructor from a set of ints of the binary representation and the size of the exponent and mantissa
inherited
ofLogicValue(LogicValue val) → FloatingPoint64Value
Construct a FloatingPointValue from a LogicValue
inherited
ofSpacedBinaryString(String fp) → FloatingPoint64Value
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}) → FloatingPoint64Value
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}) → FloatingPoint64Value
Populates the FloatingPointValue with the given sign, exponent, and mantissa, then performs additional validation.
inherited
random(Random rv, {bool genNormal = true, bool genSubNormal = true, bool excludeInfinity = false, FloatingPoint64Value? gt, FloatingPoint64Value? lt, FloatingPoint64Value? gte, FloatingPoint64Value? lte}) → FloatingPoint64Value
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