diff -r c5d8bd1a7728 -r 0f59c0d02e13 src/kernels/ball_indicator.rs --- a/src/kernels/ball_indicator.rs Thu Jan 23 23:35:28 2025 +0100 +++ b/src/kernels/ball_indicator.rs Mon Jan 06 21:37:03 2025 -0500 @@ -2,7 +2,7 @@ //! Implementation of the indicator function of a ball with respect to various norms. use float_extras::f64::tgamma as gamma; use numeric_literals::replace_float_literals; -use serde::Serialize; +use serde::{Serialize, Deserialize}; use alg_tools::types::*; use alg_tools::norms::*; use alg_tools::loc::Loc; @@ -28,7 +28,7 @@ /// Representation of the indicator of the ball $𝔹_q = \\{ x ∈ ℝ^N \mid \\|x\\|\_q ≤ r \\}$, /// where $q$ is the `Exponent`, and $r$ is the radius [`Constant`] `C`. -#[derive(Copy,Clone,Serialize,Debug,Eq,PartialEq)] +#[derive(Copy,Clone,Serialize,Deserialize,Debug,Eq,PartialEq)] pub struct BallIndicator { /// The radius of the ball. pub r : C,