MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / is_mpc_compiled

Method is_mpc_compiled

ciphercore-base/src/graphs.rs:212–252  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

210 }
211
212 pub fn is_mpc_compiled(&self) -> bool {
213 matches!(
214 self,
215 Operation::Input(_)
216 | Operation::Zeros(_)
217 | Operation::Ones(_)
218 | Operation::Add
219 | Operation::Subtract
220 | Operation::Multiply
221 | Operation::MixedMultiply
222 | Operation::Dot
223 | Operation::Matmul
224 | Operation::Gemm(_, _)
225 | Operation::Truncate(_)
226 | Operation::Sum(_)
227 | Operation::CumSum(_)
228 | Operation::PermuteAxes(_)
229 | Operation::Get(_)
230 | Operation::GetSlice(_)
231 | Operation::Reshape(_)
232 | Operation::Stack(_)
233 | Operation::Concatenate(_)
234 | Operation::Constant(_, _)
235 | Operation::A2B
236 | Operation::B2A(_)
237 | Operation::CreateTuple
238 | Operation::CreateNamedTuple(_)
239 | Operation::CreateVector(_)
240 | Operation::TupleGet(_)
241 | Operation::NamedTupleGet(_)
242 | Operation::VectorGet
243 | Operation::Zip
244 | Operation::Repeat(_)
245 | Operation::ArrayToVector
246 | Operation::VectorToArray
247 | Operation::Join(_, _)
248 | Operation::JoinWithColumnMasks(_, _)
249 | Operation::ApplyPermutation(_)
250 | Operation::Sort(_)
251 )
252 }
253
254 pub fn update_prf_id(&self, prf_id: u64) -> Result<Self> {
255 match self {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected