Uses of Class
org.flag4j.algebraic_structures.RealFloat32
Packages that use RealFloat32
Package
Description
Provides algebraic structures such as semirings, rings, and fields,
along with their concrete implementations.
-
Uses of RealFloat32 in org.flag4j.algebraic_structures
Classes in org.flag4j.algebraic_structures that implement interfaces with type arguments of type RealFloat32Modifier and TypeClassDescriptionclass
Represents an immutable real number backed by a 32-bit floating-point value.Fields in org.flag4j.algebraic_structures declared as RealFloat32Modifier and TypeFieldDescriptionstatic final RealFloat32
RealFloat32.NEGATIVE_ONE
The numerical value-1.0
.static final RealFloat32
RealFloat32.ONE
The numerical value1.0
.static final RealFloat32
RealFloat32.PI
The numerical value representing pi (π), the ratio of the circumference of a circle to its diameter.static final RealFloat32
RealFloat32.ROOT_THREE
The numerical value representing the square root of three.static final RealFloat32
RealFloat32.ROOT_TWO
The numerical value representing the square root of two.static final RealFloat32
RealFloat32.TEN
The numerical value10.0
.static final RealFloat32
RealFloat32.THREE
The numerical value3.0
.static final RealFloat32
RealFloat32.TWO
The numerical value2.0
.static final RealFloat32
RealFloat32.ZERO
The numerical value0.0
.Methods in org.flag4j.algebraic_structures that return RealFloat32Modifier and TypeMethodDescriptionRealFloat32.add
(double b) Sums an element of this field with a real number (associative and commutative).RealFloat32.add
(RealFloat32 b) Sums two elements of this field (associative and commutative).RealFloat32.addInv()
Computes the additive inverse for an element of this field.RealFloat32.div
(double b) Computes the quotient of an element of this field and a real number.RealFloat32.div
(RealFloat32 b) Computes the quotient of two elements of this field.RealFloat32.getOne()
Gets the multiplicative identity for this semiring.RealFloat32.getZero()
Gets the additive identity for this semiring.RealFloat32.mult
(double b) Multiplies an element of this field with a real number (associative and commutative).RealFloat32.mult
(RealFloat32 b) Multiplies two elements of this field (associative and commutative).RealFloat32.multInv()
Computes the multiplicative inverse for an element of this field.static RealFloat32
RealFloat32.prod
(RealFloat32... values) Computes the product of all data of specified array.static RealFloat32
RealFloat32.round
(RealFloat32 n, int decimals) Rounds number to specified number of decimal places.static RealFloat32
RealFloat32.sgn
(RealFloat32 a) Evaluates the signum or sign function on a field element.RealFloat32.sqrt()
Computes the square root of this field element.RealFloat32.sub
(double b) Computes difference of an element of this field and a real number.RealFloat32.sub
(RealFloat32 b) Computes difference of two elements of this field.static RealFloat32
RealFloat32.sum
(RealFloat32... values) Computes the sum of all data of specified array.static RealFloat32[]
RealFloat32.wrapArray
(float... arr) Wraps a primitive float array as aRealFloat32
array.static RealFloat32[]
Wraps aFloat
array as aRealFloat32
array.Methods in org.flag4j.algebraic_structures with parameters of type RealFloat32Modifier and TypeMethodDescriptionRealFloat32.add
(RealFloat32 b) Sums two elements of this field (associative and commutative).int
RealFloat32.compareTo
(RealFloat32 b) Compares this element of the ordered field withb
.RealFloat32.div
(RealFloat32 b) Computes the quotient of two elements of this field.RealFloat32.mult
(RealFloat32 b) Multiplies two elements of this field (associative and commutative).static RealFloat32
RealFloat32.prod
(RealFloat32... values) Computes the product of all data of specified array.static RealFloat32
RealFloat32.round
(RealFloat32 n, int decimals) Rounds number to specified number of decimal places.static RealFloat32
RealFloat32.sgn
(RealFloat32 a) Evaluates the signum or sign function on a field element.RealFloat32.sub
(RealFloat32 b) Computes difference of two elements of this field.static RealFloat32
RealFloat32.sum
(RealFloat32... values) Computes the sum of all data of specified array.Constructors in org.flag4j.algebraic_structures with parameters of type RealFloat32ModifierConstructorDescriptionRealFloat64
(RealFloat32 value) Constructs a newRealFloat64
instance with the specifiedRealFloat32
value.