PPL Java Language Interface 2.0
parma_polyhedra_library.Congruence Class Reference

A linear congruence. More...

Public Member Functions

 Congruence (Linear_Expression e1, Linear_Expression e2, Coefficient m)
 Returns the congruence $\mathtt{e1} = \mathtt{e2} \pmod{\mathtt{m}}$.
Linear_Expression left_hand_side ()
 Returns the left hand side of this.
Linear_Expression right_hand_side ()
 Returns the right hand side of this.
Coefficient modulus ()
 Returns the relation symbol of this.
native String ascii_dump ()
 Returns an ascii formatted internal representation of this.
native String toString ()
 Returns a string representation of this.

Protected Attributes

Coefficient mod
 The modulus of the congruence.

Detailed Description

A linear congruence.

An object of the class Congruence is an object representing a congruence:

  • $\cg = \sum_{i=0}^{n-1} a_i x_i + b = 0 \pmod{m}$

where $n$ is the dimension of the space, $a_i$ is the integer coefficient of variable $x_i$, $b$ is the integer inhomogeneous term and $m$ is the integer modulus; if $m = 0$, then $\cg$ represents the equality congruence $\sum_{i=0}^{n-1} a_i x_i + b = 0$ and, if $m \neq 0$, then the congruence $\cg$ is said to be a proper congruence.

Constructor & Destructor Documentation

◆ Congruence()

parma_polyhedra_library.Congruence.Congruence ( Linear_Expression e1,
Linear_Expression e2,
Coefficient m )
inline

Returns the congruence $\mathtt{e1} = \mathtt{e2} \pmod{\mathtt{m}}$.

Parameters
e1The source linear expression used to construct the object.
e2The source linear expression used to construct the object.
mThe modulus defining the congruence.

Member Function Documentation

◆ left_hand_side()

Linear_Expression parma_polyhedra_library.Congruence.left_hand_side ( )
inline

Returns the left hand side of this.

Returns
The left hand side of this.

◆ right_hand_side()

Linear_Expression parma_polyhedra_library.Congruence.right_hand_side ( )
inline

Returns the right hand side of this.

Returns
The right hand side of this.

◆ modulus()

Coefficient parma_polyhedra_library.Congruence.modulus ( )
inline

Returns the relation symbol of this.

Returns
The relation symbol of this.

◆ ascii_dump()

native String parma_polyhedra_library.Congruence.ascii_dump ( )

Returns an ascii formatted internal representation of this.

Returns
An ascii formatted internal representation of this.

◆ toString()

native String parma_polyhedra_library.Congruence.toString ( )

Returns a string representation of this.

Returns
A string representation of this.

The documentation for this class was generated from the following file:
  • Congruence.java