diff --git a/packages/orion-algo/.tool-versions b/packages/orion-algo/.tool-versions new file mode 100644 index 000000000..9bf9e4e8d --- /dev/null +++ b/packages/orion-algo/.tool-versions @@ -0,0 +1 @@ +scarb 2.7.0-rc.3 \ No newline at end of file diff --git a/packages/orion-algo/Scarb.toml b/packages/orion-algo/Scarb.toml index b0431ffcd..44bdd9563 100644 --- a/packages/orion-algo/Scarb.toml +++ b/packages/orion-algo/Scarb.toml @@ -5,5 +5,11 @@ edition = "2023_11" # See more keys and their definitions at https://docs.swmansion.com/scarb/docs/reference/manifest.html +[dev-dependencies] +cairo_test = "2.7.0-rc.3" + [dependencies] orion_numbers = { path = "../orion-numbers" } + +[cairo] +enable-gas=false \ No newline at end of file diff --git a/packages/orion-algo/src/algo/linear_fit.cairo b/packages/orion-algo/src/algo/linear_fit.cairo index d52a7077a..f5c6f185e 100644 --- a/packages/orion-algo/src/algo/linear_fit.cairo +++ b/packages/orion-algo/src/algo/linear_fit.cairo @@ -1,7 +1,5 @@ use orion_numbers::{f16x16::core::{f16x16}, FixedTrait}; use orion_algo::span_math::SpanMathTrait; -use orion_numbers::core_trait::{I32Div, I64Div}; - pub fn linear_fit< T, @@ -43,7 +41,6 @@ mod tests { use super::linear_fit; use orion_numbers::f16x16; use orion_numbers::f32x32; - use orion_numbers::core_trait::{I32Div, I64Div}; #[test] fn linear_fit_line_test() { diff --git a/packages/orion-algo/src/span_math/span_f16x16.cairo b/packages/orion-algo/src/span_math/span_f16x16.cairo index 4188b37f5..e1f3d82c6 100644 --- a/packages/orion-algo/src/span_math/span_f16x16.cairo +++ b/packages/orion-algo/src/span_math/span_f16x16.cairo @@ -1,5 +1,4 @@ use orion_numbers::{f16x16::core::{f16x16, ONE}, FixedTrait}; -use orion_numbers::core_trait::{I32Rem, I32Div}; use orion_algo::span_math::SpanMathTrait; diff --git a/packages/orion-algo/src/span_math/span_f32x32.cairo b/packages/orion-algo/src/span_math/span_f32x32.cairo index de7eff265..b0108734c 100644 --- a/packages/orion-algo/src/span_math/span_f32x32.cairo +++ b/packages/orion-algo/src/span_math/span_f32x32.cairo @@ -1,4 +1,4 @@ -use orion_numbers::{core_trait::{I64Rem, I64Div}, FixedTrait}; +use orion_numbers::{FixedTrait}; use orion_numbers::f32x32::core::{f32x32, ONE}; use orion_algo::span_math::SpanMathTrait;