Skip to content

Conversation

@jimpo
Copy link
Collaborator

@jimpo jimpo commented Jan 31, 2026

Introduces a new FieldOps trait that bundles arithmetic operations (add, sub, mul, square, invert) with zero() and one() methods. This trait abstracts over:

  • Field types (single elements, trivially vectors of length 1)
  • PackedField types (SIMD-accelerated vectors of field elements)
  • Symbolic field types (for constraint system representations)

Operations are defined element-wise, enabling generic code that works with both scalar fields and packed representations.

@jimpo jimpo force-pushed the push-nzzxxlwsqluw branch from 3edacf9 to 4908cf3 Compare January 31, 2026 18:58
Introduces a new FieldOps<F> trait that bundles arithmetic operations
(add, sub, mul, square, invert) with zero() and one() methods. This
trait abstracts over:
- Field types (single elements, trivially vectors of length 1)
- PackedField types (SIMD-accelerated vectors of field elements)
- Symbolic field types (for constraint system representations)

Operations are defined element-wise, enabling generic code that works
with both scalar fields and packed representations.
@jimpo jimpo force-pushed the push-nzzxxlwsqluw branch from 4908cf3 to 08e7636 Compare January 31, 2026 19:02
@jimpo jimpo merged commit 2fdae0f into main Jan 31, 2026
15 checks passed
@jimpo jimpo deleted the push-nzzxxlwsqluw branch January 31, 2026 19:15
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