Parma Polyhedra Library requirements
Internal affine-expression backends

Internal affine-expression backends

UID:
VERSION:
CLASSIFICATION:
PREFIX:
Type
Level
MID
UID
REFS
Title
Statement
Rationale
Comment
BIBLIOGRAPHY
STATUS
COMPONENT
APPLICABILITY
VERIFICATION_METHODS
VERIFICATION_CRITERIA
SOURCE
LANGUAGE
VISIBILITY
INTERFACE
SW_SPEC
1
PPL-SPEC-001622

For Row equal to Dense_Row or Sparse_Row, a live Linear_Expression_Impl<Row> of dimension d shall own d + 1 coefficient slots. Slot zero shall contain the constant; slot i + 1 shall contain the coefficient of Variable(i). Dense storage shall retain zero slots; valid sparse expression storage shall contain no explicit zero entries. Trailing zero coordinates shall retain the ambient dimension. representation() shall return DENSE or SPARSE accordingly, and max_space_dimension() shall equal Row::max_size()-1.

Calls shall satisfy the initialization, synchronization, coefficient-range and resource conditions of 🔗 1. Affine value, numerical prerequisites and shared zero. Raw slot indices shall be in [0, d + 1) and half-open windows shall satisfy 0 ≤ s ≤ e ≤ d + 1. A new dimension shall fit the selected backend's maximum; its increment for the constant slot shall be representable. Internal coordinate transformations shall receive in-dimension variables, valid distinct permutation cycles, and growth within that maximum.

An argument dispatched through Linear_Expression_Interface shall have one of these two concrete backend types. Dispatch shall preserve the operation's meaning for every dense/sparse pairing. Setters and dimension transformations shall implement the coefficient effects of 🔗 5. Ambient dimension queries and trailing-coordinate resizing, 🔗 6. Coefficient access, replacement and zero predicates and 🔗 12. Explicit coefficient-coordinate transformations on these admitted inputs. A const access shall borrow its coefficient according to the selected traits; reads beyond the homogeneous dimension through coefficient(v) shall return zero. Mutations shall invalidate borrowed positions according to their storage.

The internal row_data() accessor shall borrow the complete read-only row only from a live lvalue expression. Mutable and const temporary expression owners shall be rejected. A row borrow shall not outlive its owner or a mutation that invalidates the underlying coefficient storage.

coefficient_is_owned(n) shall identify a reference to a stored coefficient in assertion builds when coefficient arguments use reference traits, without changing the expression. With value traits or assertions disabled it shall return false. Internal scalar-independence preconditions shall apply in every build mode; that diagnostic predicate shall not replace them.

Raw coefficient indices and variable identifiers have different meanings. Internal callers supply the validated dimensions and storage assumptions used by the public interface.

APPROVED
GEOMETRIC_DESCRIPTORS
IF_CPP
Test, Analysis, Inspection

Check both concrete backends, constant-slot mapping, zero reads beyond the dimension, coordinate transformations and trait-dependent borrowing. Inspect interface dispatch and scalar guards; compare public and backend effects on admitted inputs. Admit read-only row borrows from mutable and const lvalues of both backend types, and reject temporary owners.

src/Linear_Expression_Impl_defs.hh; src/Linear_Expression_Impl_inlines.hh; src/Linear_Expression_Impl_templates.hh; src/Linear_Expression_Impl.cc; tests/linearexpression1.cc; tests/linearexpressionspec1.cc; tests/linearexpressionbranches1.cc; tests/expressionbackendspec1.cc.

CPP
Internal

Names belong to Parma_Polyhedra_Library. Backend member excerpts apply to Linear_Expression_Impl<Row> unless a nested or free interface is named.

template <typename Row> class Linear_Expression_Impl;
static dimension_type max_space_dimension();
const Row& row_data() const &;
const Row& row_data() const && = delete;
Representation representation() const;
dimension_type space_dimension() const;
void set_space_dimension(dimension_type);
Coefficient_traits::const_reference coefficient(Variable) const;
Coefficient_traits::const_reference inhomogeneous_term() const;
void set_coefficient(Variable, Coefficient_traits::const_reference);
void set_inhomogeneous_term(Coefficient_traits::const_reference);
void swap_space_dimensions(Variable, Variable);
void shift_space_dimensions(Variable, dimension_type);
void remove_space_dimensions(const Variables_Set&);
void permute_space_dimensions(const std::vector<Variable>&);
// Private diagnostic helper:
bool coefficient_is_owned(const Coefficient&) const;
SW_SPEC
2
PPL-SPEC-001623
PPL-SPEC-001623
Independent backend construction, copying and affine arithmetic

Default construction shall create the zero expression of dimension zero; coefficient and variable construction shall implement 🔗 2. Zero, constant, variable and dimensioned construction. The sizing constructor's Boolean argument shall distinguish its overload and shall not alter its meaning: it shall create the zero expression of the admitted requested dimension. Ordinary, cross-storage and interface-based copy construction shall produce independent coefficients. A dimensioned copy shall retain the selected prefix and zero-extend as necessary. Private construct helpers shall establish those same copied values. Destruction shall release the owned row without changing a distinct source.

Backend affine additions, subtractions, multiplication, truncating division, negation, normalization and coordinate updates shall implement the value rules of 🔗 7. Affine addition, subtraction and negation, 🔗 8. Integral scalar multiplication and coefficient-wise division, 🔗 9. Explicit scaled accumulation, combination and elimination and 🔗 10. Coefficient normalization and sign normalization. Expression addition and subtraction shall admit self operands. Whole-expression combinations and scaled accumulations shall receive a distinct source; their scalar arguments shall be independent of modified target coefficients. Multiplication and division factors shall likewise be independent of the target. Division shall receive a nonzero divisor. Scaled variable accumulation shall retain the variable's dimension even for a zero factor; zero-factor scaled expression accumulation shall preserve the target's current dimension and value.

The prerequisites of 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites shall apply. Each operation that returns a backend reference shall return its target. Distinct sources shall retain their values and dimensions.

Concrete storage and dynamic dispatch must preserve the public affine value while retaining the stronger internal operand-independence conditions.

APPROVED
GEOMETRIC_DESCRIPTORS
IF_CPP
Test, Analysis, Inspection

Compare copied, truncated and extended values across all storage pairings; mutate copies independently. Check exact coefficient-vector arithmetic, self addition/subtraction, zero factors and returned-target identity using existing public and direct-backend histories.

src/Linear_Expression_Impl_defs.hh; src/Linear_Expression_Impl_inlines.hh; src/Linear_Expression_Impl_templates.hh; src/Linear_Expression_Impl.cc; tests/linearexpression1.cc; tests/linearexpressionspec1.cc; tests/linearexpressionbranches1.cc; tests/expressionbackendspec1.cc.

CPP
Internal

Names belong to Parma_Polyhedra_Library. Backend member excerpts apply to Linear_Expression_Impl<Row> unless a nested or free interface is named.

Linear_Expression_Impl();
explicit Linear_Expression_Impl(Coefficient_traits::const_reference);
Linear_Expression_Impl(Variable);
Linear_Expression_Impl(dimension_type, bool);
Linear_Expression_Impl(const Linear_Expression_Impl&);
template <typename Other>
Linear_Expression_Impl(const Linear_Expression_Impl<Other>&);
Linear_Expression_Impl(const Linear_Expression_Interface&);
Linear_Expression_Impl(const Linear_Expression_Interface&, dimension_type);
~Linear_Expression_Impl();
Linear_Expression_Impl& operator+=(Coefficient_traits::const_reference);
Linear_Expression_Impl& operator-=(Coefficient_traits::const_reference);
Linear_Expression_Impl& operator+=(Variable);
Linear_Expression_Impl& operator-=(Variable);
Linear_Expression_Impl& operator+=(const Linear_Expression_Interface&);
Linear_Expression_Impl& operator-=(const Linear_Expression_Interface&);
Linear_Expression_Impl& operator*=(Coefficient_traits::const_reference);
Linear_Expression_Impl& operator/=(Coefficient_traits::const_reference);
void negate();
void normalize();
void sign_normalize();
Linear_Expression_Impl& add_mul_assign(Coefficient_traits::const_reference, Variable);
Linear_Expression_Impl& sub_mul_assign(Coefficient_traits::const_reference, Variable);
void add_mul_assign(Coefficient_traits::const_reference, const Linear_Expression_Interface&);
void sub_mul_assign(Coefficient_traits::const_reference, const Linear_Expression_Interface&);
// Typed source overloads and private construct helpers:
template <typename Other>
Linear_Expression_Impl& operator+=(const Linear_Expression_Impl<Other>&);
template <typename Other>
Linear_Expression_Impl& operator-=(const Linear_Expression_Impl<Other>&);
template <typename Other>
void add_mul_assign(Coefficient_traits::const_reference, const Linear_Expression_Impl<Other>&);
template <typename Other>
void sub_mul_assign(Coefficient_traits::const_reference, const Linear_Expression_Impl<Other>&);
template <typename Other> void construct(const Linear_Expression_Impl<Other>&);
template <typename Other>
void construct(const Linear_Expression_Impl<Other>&, dimension_type);
SW_SPEC
3
PPL-SPEC-001624
PPL-SPEC-001624
Raw coefficient access, zero ranges, gcd and support filtering

Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, get(i) shall return the raw coefficient ai; set(i,n) shall replace it by the entry value of n, removing a sparse entry when zero. is_zero() shall test every slot; all_homogeneous_terms_are_zero() shall exclude slot zero.

For an admitted window [s, e), all_zeroes shall test every slot, num_zeroes shall count zero slots, and gcd shall return the nonnegative greatest common divisor of those coefficients. An empty or all-zero window shall have gcd zero. The positive gcd shall be representable in the selected coefficient type. first_nonzero(s,e) and last_nonzero(s,e) shall return the least and greatest nonzero slot, respectively, or e if none exists. No-argument last_nonzero() shall return the greatest nonzero slot, or zero for the all-zero vector.

all_zeroes(vars) shall test precisely the selected homogeneous coefficients. all_zeroes_except(vars,s,e) shall test the window after excluding the selected variable coefficients; slot zero shall never be excluded by a variable set. Empty windows shall satisfy both universal predicates. has_a_free_dimension_helper(indices) shall retain exactly those input raw indices whose coefficients are zero, inserting no new indices. Variable sets and raw indices shall be within the respective admitted extent. All queries shall preserve the expression.

Internal algebra uses raw coefficient windows, including the constant, and needs consistent empty-window results and absence sentinels.

APPROVED
GEOMETRIC_DESCRIPTORS
IF_CPP
Test, Analysis, Inspection

Compare every window of literal vectors with independent counts, gcds and nonzero positions. Enumerate variable masks and raw-index subsets; include nonzero constants, zero-dimensional expressions, empty windows, negative inputs and both storage types.

src/Linear_Expression_Impl_defs.hh; src/Linear_Expression_Impl_inlines.hh; src/Linear_Expression_Impl_templates.hh; src/Linear_Expression_Impl.cc; tests/linearexpression1.cc; tests/linearexpressionspec1.cc; tests/linearexpressionbranches1.cc; tests/expressionbackendspec1.cc.

CPP
Internal

Names belong to Parma_Polyhedra_Library. Backend member excerpts apply to Linear_Expression_Impl<Row> unless a nested or free interface is named.

Coefficient_traits::const_reference get(dimension_type) const;
void set(dimension_type, Coefficient_traits::const_reference);
bool is_zero() const;
bool all_homogeneous_terms_are_zero() const;
bool all_zeroes(dimension_type start, dimension_type end) const;
dimension_type num_zeroes(dimension_type start, dimension_type end) const;
Coefficient gcd(dimension_type start, dimension_type end) const;
dimension_type first_nonzero(dimension_type first, dimension_type last) const;
dimension_type last_nonzero(dimension_type first, dimension_type last) const;
dimension_type last_nonzero() const;
bool all_zeroes(const Variables_Set&) const;
bool all_zeroes_except(const Variables_Set&, dimension_type, dimension_type) const;
void has_a_free_dimension_helper(std::set<dimension_type>&) const;
SW_SPEC
4
PPL-SPEC-001625
PPL-SPEC-001625
Range scaling and exact affine elimination

Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, mul_assign(c,s,e) shall multiply exactly the raw slots in [s, e) by c; zero shall clear that window. exact_div_assign(c,s,e) shall divide those slots exactly by a nonzero c that divides every selected coefficient. negate(s,e) shall negate precisely those slots. Every operation shall retain dimension and all coefficients outside its window.

For distinct target x and source y, range linear_combine shall assign xi :  = c1xi + c2yi from entry values for s ≤ i < e, with nonzero scalars. linear_combine_lax shall admit zero scalars as well. Both windows shall fit their respective expressions. Whole-expression forms shall use the maximum input dimension and zero-extend absent coordinates. Scalar arguments shall be live and independent of modified target coefficients. The source shall retain its value and dimension. Empty windows shall preserve the target; valid sparse results shall contain no explicit zeros.

The raw-index elimination overload shall require equal dimensions, a distinct source and nonzero pivot coefficients xk, yk. With g = gcd(|xk|, |yk|) > 0, it shall replace every target coefficient by (yk ⁄ g)xi − (xk ⁄ g)yi. The selected pivot shall become zero. The variable overload shall use raw index v.space_dimension(). All evaluated coefficient arithmetic, including normalization factors, shall meet the selected profile's representability conditions.

Elimination is an exact integer combination with reduced factors. Windowed operations must preserve independent prefix and suffix coefficients across storage pairings.

APPROVED
GEOMETRIC_DESCRIPTORS
IF_CPP
Test, Analysis, Inspection

Use independent integer vectors for all four storage pairings, every admitted small window and signed/zero/unit factors. Check direct and interface-dispatched paths, outside-window preservation, source independence, exact-divisibility cases and the reduced pivot formula.

src/Linear_Expression_Impl_defs.hh; src/Linear_Expression_Impl_inlines.hh; src/Linear_Expression_Impl_templates.hh; src/Linear_Expression_Impl.cc; tests/linearexpression1.cc; tests/linearexpressionspec1.cc; tests/linearexpressionbranches1.cc; tests/expressionbackendspec1.cc.

CPP
Internal

Names belong to Parma_Polyhedra_Library. Backend member excerpts apply to Linear_Expression_Impl<Row> unless a nested or free interface is named.

void mul_assign(Coefficient_traits::const_reference, dimension_type, dimension_type);
void exact_div_assign(Coefficient_traits::const_reference, dimension_type, dimension_type);
void negate(dimension_type, dimension_type);
void linear_combine(const Linear_Expression_Interface&, Variable);
void linear_combine(const Linear_Expression_Interface&, dimension_type);
void linear_combine(const Linear_Expression_Interface&,
                    Coefficient_traits::const_reference, Coefficient_traits::const_reference);
void linear_combine_lax(const Linear_Expression_Interface&,
                        Coefficient_traits::const_reference, Coefficient_traits::const_reference);
void linear_combine(const Linear_Expression_Interface&,
                    Coefficient_traits::const_reference, Coefficient_traits::const_reference,
                    dimension_type, dimension_type);
void linear_combine_lax(const Linear_Expression_Interface&,
                        Coefficient_traits::const_reference, Coefficient_traits::const_reference,
                        dimension_type, dimension_type);
// Each linear-combination form also has a typed source overload:
template <typename Other>
void linear_combine(const Linear_Expression_Impl<Other>&, dimension_type);
template <typename Other>
void linear_combine(const Linear_Expression_Impl<Other>&, Variable);
template <typename Other>
void linear_combine(const Linear_Expression_Impl<Other>&,
                    Coefficient_traits::const_reference, Coefficient_traits::const_reference);
template <typename Other>
void linear_combine_lax(const Linear_Expression_Impl<Other>&,
                        Coefficient_traits::const_reference, Coefficient_traits::const_reference);
template <typename Other>
void linear_combine(const Linear_Expression_Impl<Other>&,
                    Coefficient_traits::const_reference, Coefficient_traits::const_reference,
                    dimension_type, dimension_type);
template <typename Other>
void linear_combine_lax(const Linear_Expression_Impl<Other>&,
                        Coefficient_traits::const_reference, Coefficient_traits::const_reference,
                        dimension_type, dimension_type);
SW_SPEC
5
PPL-SPEC-001626
Backend equality, comparison and common-variable queries

Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, full is_equal_to(y) shall require equal dimensions and equal raw coefficient vectors. Range equality shall compare only the admitted common window. Scaled range equality shall test c1xi = c2yi at every selected slot, including when either scalar is zero. Each evaluated scaled product shall be representable. Empty-window equality shall hold.

compare(y) shall compare homogeneous coefficients in increasing variable order, treating absent trailing coefficients as zero, and compare the constant only if all homogeneous coefficients agree. It shall return -2 or 2 for the first homogeneous difference, -1 or 1 for a constant-only difference, and zero for equal zero-extended affine values. Consequently, different declared dimensions containing only additional zero coefficients may compare as zero while failing full dimension-sensitive equality.

have_a_common_variable(y,first,last) shall hold exactly when some variable in the admitted half-open variable range has nonzero coefficients in both operands. Constants shall be irrelevant. All queries shall preserve their operands and shall have the same meaning through typed and interface dispatch.

Dimension-sensitive identity and affine-value ordering serve different internal purposes. Sparse support and dispatch must not change either result.

APPROVED
GEOMETRIC_DESCRIPTORS
IF_CPP
Test, Analysis, Inspection

Compare signed literal vectors and zero-extended unequal dimensions in all storage pairings. Enumerate every common window, zero/nonzero scale pair and common-variable interval, checking direct and dispatched calls and source preservation.

src/Linear_Expression_Impl_defs.hh; src/Linear_Expression_Impl_inlines.hh; src/Linear_Expression_Impl_templates.hh; src/Linear_Expression_Impl.cc; tests/linearexpression1.cc; tests/linearexpressionspec1.cc; tests/linearexpressionbranches1.cc; tests/expressionbackendspec1.cc.

CPP
Internal

Names belong to Parma_Polyhedra_Library. Backend member excerpts apply to Linear_Expression_Impl<Row> unless a nested or free interface is named.

bool is_equal_to(const Linear_Expression_Interface&) const;
bool is_equal_to(const Linear_Expression_Interface&, dimension_type, dimension_type) const;
bool is_equal_to(const Linear_Expression_Interface&,
                 Coefficient_traits::const_reference, Coefficient_traits::const_reference,
                 dimension_type, dimension_type) const;
int compare(const Linear_Expression_Interface&) const;
bool have_a_common_variable(const Linear_Expression_Interface&, Variable, Variable) const;
template <typename Other> bool is_equal_to(const Linear_Expression_Impl<Other>&) const;
template <typename Other>
bool is_equal_to(const Linear_Expression_Impl<Other>&, dimension_type, dimension_type) const;
template <typename Other>
bool is_equal_to(const Linear_Expression_Impl<Other>&,
                 Coefficient_traits::const_reference, Coefficient_traits::const_reference,
                 dimension_type, dimension_type) const;
template <typename Other> int compare(const Linear_Expression_Impl<Other>&) const;
template <typename Other>
bool have_a_common_variable(const Linear_Expression_Impl<Other>&, Variable, Variable) const;
SW_SPEC
6
PPL-SPEC-001627
PPL-SPEC-001627
Owned raw iterator handles and borrowed coefficient positions

Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, begin() and end() shall allocate independent polymorphic iterator handles delimiting the nonzero homogeneous coefficients in increasing variable order. lower_bound(v) shall allocate a handle at the first such variable at least v, or at end. The search variable shall be within the dimension or its one-past position. The caller shall delete each allocated handle through its virtual interface. The handles shall borrow the live expression's row without owning it.

Direct nested-iterator construction shall require a row of at least one slot and a starting raw index 1 ≤ i ≤ row.size(). It shall borrow that row at the first nonzero slot at or after i, or at end. The row shall outlive every such handle.

clone() shall allocate an independent handle at the same borrowed position. Advancing or destroying one handle shall preserve another handle's position and the coefficients. Dereference, variable() and index() shall require a live non-end position; index shall be variable().id()+1. Increment shall move to the next nonzero homogeneous coefficient, admitting arrival at end. Decrement shall require a preceding nonzero homogeneous coefficient and shall move to it, including from end. Constant slot zero shall be excluded.

Equality shall compare positions in the same row and concrete iterator type. Expression mutation shall invalidate borrowed positions as declared for the row; the caller shall obtain new handles afterward. Allocation failures shall propagate without changing the expression or existing handles. The internal zero-skipping helpers shall implement this traversal without changing values.

Raw polymorphic iterator handles have caller-owned allocation and a separately borrowed coefficient lifetime. Copying a handle must preserve independent traversal state.

APPROVED
GEOMETRIC_DESCRIPTORS
IF_CPP
Test, Analysis, Inspection

Exercise forward and reverse paths, constants and trailing zero slots, every lower bound, clone independence and deletion through the base interface in both backends. Check empty traversal and allocation failures without using invalidated handles.

src/Linear_Expression_Impl_defs.hh; src/Linear_Expression_Impl_inlines.hh; src/Linear_Expression_Impl_templates.hh; src/Linear_Expression_Impl.cc; tests/linearexpression1.cc; tests/linearexpressionspec1.cc; tests/linearexpressionbranches1.cc; tests/expressionbackendspec1.cc.

CPP
Internal

Names belong to Parma_Polyhedra_Library. Backend member excerpts apply to Linear_Expression_Impl<Row> unless a nested or free interface is named.

using iterator_interface = Linear_Expression_Interface::const_iterator_interface;
iterator_interface* begin() const;
iterator_interface* end() const;
iterator_interface* lower_bound(Variable) const;
// Members of Linear_Expression_Impl<Row>::const_iterator:
explicit const_iterator(const Row&, dimension_type);
iterator_interface* clone() const;
void operator++();
void operator--();
Coefficient_traits::const_reference operator*() const;
Variable variable() const;
dimension_type index() const;
bool operator==(const iterator_interface&) const;
// Private traversal helpers:
void skip_zeroes_forward();
void skip_zeroes_backward();
SW_SPEC
7
PPL-SPEC-001628
PPL-SPEC-001628
Backend row export, serialization, diagnostics and accounting

Under 🔗 1. Internal affine value, coefficient storage and dispatch prerequisites, get_row(r) shall replace a dense or sparse output with an independent copy of the complete raw coefficient vector. The copy shall include its logical extent, all constant and trailing zero slots, and shall not borrow the backend's coefficient storage.

ascii_dump(stream) shall emit size, the raw slot count, and every coefficient in slot order, using the producer grammar of 🔗 13. Reloadable ASCII export and replacement loading. ascii_load(stream) shall implement that raw grammar: require its exact size keyword and a nonzero raw count, replace the row and read exactly that many coefficients. Normal malformed or truncated extraction shall return false; resource and stream exceptions shall propagate. A rejected or throwing load may leave a partially replaced row; only destruction shall be required until the caller restores a valid value. A following token shall remain available after a complete record. The selected coefficient input grammar, stream formatting and exception masks shall retain their ordinary behavior.

print(stream) and the free stream insertion shall implement the affine format and variable formatter dispatch of 🔗 14. Human-readable affine output and formatter dispatch; insertion shall return its stream. Source values shall be preserved by export and print. OK() shall return false for a row of size zero, and sparse OK() shall also reject any explicit stored zero, with its documented diagnostic to std::cerr. This local check shall not inspect unrelated domain state. external_memory_in_bytes() shall report the owned row's external storage; total_memory_in_bytes() shall add sizeof(*this).

A raw backend export must preserve both the affine coefficient vector and its owning storage, while failed loading has a deliberately limited lifetime guarantee.

APPROVED
GEOMETRIC_DESCRIPTORS
IF_CPP
Test, Analysis, Inspection

Overwrite differently sized prepopulated rows, then mutate source and outputs independently. Check exact dumps, valid reloads, malformed/truncated input, suffix retention, ordinary stream failures, formatting and accounting identities in both backends.

src/Linear_Expression_Impl_defs.hh; src/Linear_Expression_Impl_inlines.hh; src/Linear_Expression_Impl_templates.hh; src/Linear_Expression_Impl.cc; tests/linearexpression1.cc; tests/linearexpressionspec1.cc; tests/linearexpressionbranches1.cc; tests/expressionbackendspec1.cc.

CPP
Internal

Names belong to Parma_Polyhedra_Library. Backend member excerpts apply to Linear_Expression_Impl<Row> unless a nested or free interface is named.

void get_row(Dense_Row&) const;
void get_row(Sparse_Row&) const;
void ascii_dump(std::ostream&) const;
bool ascii_load(std::istream&);
void print(std::ostream&) const;
bool OK() const;
memory_size_type external_memory_in_bytes() const;
memory_size_type total_memory_in_bytes() const;
template <typename Row>
std::ostream& operator<<(std::ostream&, const Linear_Expression_Impl<Row>&);