Skip to content

Conversation

@Lil-Duckling-22
Copy link

Description

Adds with_lc to ConstraintSystemRef to access LinearCombination by reference via closure, avoiding unnecessary cloning when only reading is needed.

Changes:

  • Remove TODO comment about returning reference from get_lc
  • Add with_lc method with closure-based access
  • Update get_lc documentation

Removes TODO comment and adds `with_lc` method to `ConstraintSystemRef` that allows accessing `LinearCombination` by reference via closure, avoiding unnecessary cloning when only reading is needed.

## Changes
- Remove TODO comment about returning reference from `get_lc`
- Add `with_lc` method that provides access to `LinearCombination` through closure
- Update `get_lc` documentation to mention cloning behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant