IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
IntaRNA::PartitionArithmetic Class Reference

#include <PartitionArithmetic.h>

Static Public Member Functions

static Z_type check (const Z_type x)
 
static Z_type add (const Z_type a, const Z_type b)
 
static Z_type multiply (const Z_type a, const Z_type b)
 
static Z_type divide (const Z_type a, const Z_type b)
 
static Z_type exp (const Z_type exponent)
 

Detailed Description

Checked nonnegative arithmetic for pair-probability partitions. Structural zero is exactly zero. Positive subnormals are rejected because their relative precision is not guaranteed. Ordinary sum rounding remains.

Member Function Documentation

◆ add()

Z_type IntaRNA::PartitionArithmetic::add ( const Z_type  a,
const Z_type  b 
)
inlinestatic
Returns
checked sum of two nonnegative values

◆ check()

Z_type IntaRNA::PartitionArithmetic::check ( const Z_type  x)
inlinestatic
Returns
x; throws on negative, NaN, infinite or positive subnormal values

◆ divide()

Z_type IntaRNA::PartitionArithmetic::divide ( const Z_type  a,
const Z_type  b 
)
inlinestatic
Returns
checked quotient; denominator must be positive

◆ exp()

Z_type IntaRNA::PartitionArithmetic::exp ( const Z_type  exponent)
inlinestatic
Returns
checked exponential; a finite exponent must yield a positive normal value

◆ multiply()

Z_type IntaRNA::PartitionArithmetic::multiply ( const Z_type  a,
const Z_type  b 
)
inlinestatic
Returns
checked product; positive underflow is an error

The documentation for this class was generated from the following file: