MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / vector_sum

Function vector_sum

poly-commit/src/utils.rs:163–168  ·  view source on GitHub ↗
(v1: &[F], v2: &[F])

Source from the content-addressed store, hash-verified

161
162#[inline]
163pub(crate) fn vector_sum<F: Field>(v1: &[F], v2: &[F]) -> Vec<F> {
164 ark_std::cfg_iter!(v1)
165 .zip(v2)
166 .map(|(li, ri)| *li + ri)
167 .collect()
168}
169
170#[inline]
171#[cfg(test)]

Callers 1

openMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected