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

Function scalar_by_vector

poly-commit/src/utils.rs:158–160  ·  view source on GitHub ↗
(s: F, v: &[F])

Source from the content-addressed store, hash-verified

156
157#[inline]
158pub(crate) fn scalar_by_vector<F: Field>(s: F, v: &[F]) -> Vec<F> {
159 ark_std::cfg_iter!(v).map(|x| *x * s).collect()
160}
161
162#[inline]
163pub(crate) fn vector_sum<F: Field>(v1: &[F], v2: &[F]) -> Vec<F> {

Callers 1

openMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected