-
2. Affine meaning of linear expressions PPL-LLR-000012 A linear expression shall denote the sum of its coordinate values multiplied by their coefficients, together with its constant term. For valid operands satisfying the operation's stated input and computational-arithmetic preconditions, a successfully completed algebraic operation shall produce the affine result specified for that operation. Under those conditions, a transformation specified as value-preserving shall retain the expression's affine value.
-
1. Numerical and geometric foundations PPL-HLR-000001 PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.
-
-
Incoming link from: 2. Installation of configured public artifacts1
1. Public C++ access to supported facilities PPL-LLR-000311 The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
Expression_Adapter<T> shall borrow a const reference to its raw_type. Construction from a temporary raw owner shall be rejected by deleted rvalue overloads, including the transparent and hiding adapters. Copies and temporary adapter values may query their still-live lvalue raw owner. The raw expression shall outlive the adapter and every borrowed iterator or coefficient reference. Copying an adapter shall retain that binding; destroying it shall not destroy or modify the raw expression. Changes to the live raw expression shall be visible on subsequent queries; previously obtained references and iterators retain the raw type's invalidation rules.
inner() shall return the one-level T::const_reference view of the same raw expression. representation() shall report the raw representation. Expression_Adapter_Transparent<T> shall add no transformation to T's view. Construction and copying shall not copy coefficient storage.
-
2. Affine meaning of linear expressions PPL-LLR-000012 A linear expression shall denote the sum of its coordinate values multiplied by their coefficients, together with its constant term. For valid operands satisfying the operation's stated input and computational-arithmetic preconditions, a successfully completed algebraic operation shall produce the affine result specified for that operation. Under those conditions, a transformation specified as value-preserving shall retain the expression's affine value.
-
1. Numerical and geometric foundations PPL-HLR-000001 PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.
-
-
Incoming link from: 2. Installation of configured public artifacts1
1. Public C++ access to supported facilities PPL-LLR-000311 The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
For a view with visible dimension d and visible coefficient vector a = (a0, …, ad), inhomogeneous_term() and get(0) shall return a0; get(i) for 1 ≤ i ≤ d shall return ai. coefficient(Variable(k)) and get(Variable(k)) shall return ak + 1 for 0 ≤ k < d. These are borrowed const accesses. The transformations defining a and d are specified in 🔗 4. Expression view with a hidden inhomogeneous coefficient and 🔗 5. Expression view with an optional hidden final coordinate; a transparent view shall retain its inner view's coefficients and dimension.
begin()/end() shall delimit the nonzero homogeneous coefficients in increasing variable order, excluding the constant and every hidden last coordinate. lower_bound(v) shall select the first such variable at least v, or end(); a one-past-visible-dimension variable is admitted. Mutations shall follow 🔗 1. Borrowed expression-view construction and one-level access.
Each get_row(r) shall replace the dense or sparse output with an independent copy of all d + 1 visible coefficients, including zero slots. Altering that output shall not alter the raw expression, and later raw mutations shall not alter the output copy.
-
2. Affine meaning of linear expressions PPL-LLR-000012 A linear expression shall denote the sum of its coordinate values multiplied by their coefficients, together with its constant term. For valid operands satisfying the operation's stated input and computational-arithmetic preconditions, a successfully completed algebraic operation shall produce the affine result specified for that operation. Under those conditions, a transformation specified as value-preserving shall retain the expression's affine value.
-
1. Numerical and geometric foundations PPL-HLR-000001 PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.
-
-
Incoming link from: 2. Installation of configured public artifacts1
1. Public C++ access to supported facilities PPL-LLR-000311 The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
With the vector and dimension in 🔗 2. Expression-view coefficients, iterators and independent row export, is_zero() shall hold exactly when every visible coefficient is zero; all_homogeneous_terms_are_zero() shall ignore a0. For 0 ≤ s ≤ e ≤ d + 1, range queries shall use the half-open raw-slot range [s, e): all_zeroes shall test every slot; num_zeroes shall count zero slots; gcd shall return their nonnegative greatest common divisor, with zero for an empty or all-zero range. first_nonzero(s,e) and last_nonzero(s,e) shall return the least/greatest nonzero slot or e if none exists. No-argument last_nonzero() shall return the greatest nonzero slot, or zero if no such slot exists.
all_zeroes(vars) shall test only the selected variable coefficients; all_zeroes_except(vars,s,e) shall test the range after excluding those variables, with slot zero never excluded by a variable set. has_a_free_dimension_helper(indices) shall remove precisely the selected raw slots whose visible coefficients are nonzero, inserting no new indices. Variable sets and raw indices shall be within the visible dimension.
Full is_equal_to(y) shall require equal dimensions and equal visible coefficients. Range equality shall compare the selected slots; scaled equality shall test c1ai = c2bi for every selected slot. Both operands shall admit the selected range; an operand passed to an overload requiring conversion to raw_type shall support that conversion. Scaled products shall satisfy the configured coefficient arithmetic's representability preconditions. The coefficient prerequisites in 🔗 1. Affine value, numerical prerequisites and shared zero shall apply, including representability of the nonnegative gcd and of each scaled product when required by the configured arithmetic. Underlying numerical exceptions shall propagate without modifying the borrowed expression. Empty-range equality shall hold. have_a_common_variable(y,first,last) shall hold exactly when some variable in the valid half-open variable range has nonzero coefficients in both operands; constants shall be irrelevant.
-
2. Affine meaning of linear expressions PPL-LLR-000012 A linear expression shall denote the sum of its coordinate values multiplied by their coefficients, together with its constant term. For valid operands satisfying the operation's stated input and computational-arithmetic preconditions, a successfully completed algebraic operation shall produce the affine result specified for that operation. Under those conditions, a transformation specified as value-preserving shall retain the expression's affine value.
-
1. Numerical and geometric foundations PPL-HLR-000001 PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.
-
-
Incoming link from: 2. Installation of configured public artifacts1
1. Public C++ access to supported facilities PPL-LLR-000311 The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
Expression_Hide_Inhomo<T> shall preserve its inner view's dimension and homogeneous coefficients and expose zero as the inhomogeneous coefficient, even when the raw constant is nonzero. All queries and row exports in 🔗 2. Expression-view coefficients, iterators and independent row export and 🔗 3. Expression-view predicates, coefficient ranges and support filtering shall use this transformed vector. Hiding the constant shall neither alter it in the raw expression nor hide any homogeneous coefficient. In a composition, the transformation shall apply to the one-level inner view, retaining the same borrowed raw object.
-
2. Affine meaning of linear expressions PPL-LLR-000012 A linear expression shall denote the sum of its coordinate values multiplied by their coefficients, together with its constant term. For valid operands satisfying the operation's stated input and computational-arithmetic preconditions, a successfully completed algebraic operation shall produce the affine result specified for that operation. Under those conditions, a transformation specified as value-preserving shall retain the expression's affine value.
-
1. Numerical and geometric foundations PPL-HLR-000001 PPL shall provide numerical values and finite-dimensional geometric descriptors with defined mathematical meanings, so that clients can describe numerical problems consistently across the library.
-
-
Incoming link from: 2. Installation of configured public artifacts1
1. Public C++ access to supported facilities PPL-LLR-000311 The public C++ interface shall expose the configured library's supported numerical facilities and their public value types through the documented public headers, preserving the declared numerical meanings and public type contracts of those facilities.
-
7. Access through supported language interfaces PPL-HLR-000007 PPL shall expose its numerical facilities through its C++ interface and expose selected facilities through the supported C, Java, OCaml and Prolog interfaces. Each interface shall preserve the declared semantics of the facilities it exposes.
-
Expression_Hide_Last<T>(raw,false) shall preserve its inner view. With hide_last == true, the inner dimension shall remain positive for every operation, and the view shall expose dimension one less, omitting exactly the inner view's final homogeneous coefficient. The constant and preceding coefficients shall remain unchanged. All queries and row exports in 🔗 2. Expression-view coefficients, iterators and independent row export and 🔗 3. Expression-view predicates, coefficient ranges and support filtering shall use this prefix. The stored hiding choice shall remain fixed; the currently hidden coordinate shall follow the inner view's current dimension after a valid raw resize.
compare(x,y) for two matching hidden-last adapter types shall compare their homogeneous coefficient sequences lexicographically in increasing variable order, treating missing trailing coefficients as zero. It shall return − 2, zero or 2 according to the first unequal coefficient. Constants, hidden coefficients and trailing zero dimensions shall not affect this comparison. It shall neither mutate its operands nor compare affine constants.