-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f51dc4f
commit d23cd5b
Showing
16 changed files
with
424 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
use std::fmt::Debug; | ||
|
||
use super::{Backend, Column, FieldOps}; | ||
use crate::core::fields::Field; | ||
use crate::core::poly::circle::{CircleEvaluation, CirclePoly}; | ||
use crate::core::poly::NaturalOrder; | ||
|
||
mod poly; | ||
|
||
#[derive(Copy, Clone, Debug)] | ||
pub struct CPUBackend; | ||
|
||
impl Backend for CPUBackend {} | ||
|
||
impl<F: Field> FieldOps<F> for CPUBackend { | ||
type Column = Vec<F>; | ||
} | ||
|
||
impl<F: Clone + Debug> Column<F> for Vec<F> { | ||
fn len(&self) -> usize { | ||
self.len() | ||
} | ||
} | ||
|
||
pub type CPUCirclePoly<F> = CirclePoly<CPUBackend, F>; | ||
pub type CPUCircleEvaluation<F, EvalOrder = NaturalOrder> = | ||
CircleEvaluation<CPUBackend, F, EvalOrder>; |
Oops, something went wrong.