@@ -97,7 +97,7 @@ pub trait C2CPlan: Sized {
97
97
) -> Result < Self > ;
98
98
99
99
/// Execute complex-to-complex transform
100
- fn c2c ( & mut self , in_ : & mut [ Self :: Complex ] , out : & mut [ Self :: Complex ] ) -> Result < ( ) > ;
100
+ fn c2c ( & self , in_ : & mut [ Self :: Complex ] , out : & mut [ Self :: Complex ] ) -> Result < ( ) > ;
101
101
}
102
102
103
103
/// Trait for the plan of Real-to-Complex transformation
@@ -124,7 +124,7 @@ pub trait R2CPlan: Sized {
124
124
) -> Result < Self > ;
125
125
126
126
/// Execute real-to-complex transform
127
- fn r2c ( & mut self , in_ : & mut [ Self :: Real ] , out : & mut [ Self :: Complex ] ) -> Result < ( ) > ;
127
+ fn r2c ( & self , in_ : & mut [ Self :: Real ] , out : & mut [ Self :: Complex ] ) -> Result < ( ) > ;
128
128
}
129
129
130
130
/// Trait for the plan of Complex-to-Real transformation
@@ -151,7 +151,7 @@ pub trait C2RPlan: Sized {
151
151
) -> Result < Self > ;
152
152
153
153
/// Execute complex-to-real transform
154
- fn c2r ( & mut self , in_ : & mut [ Self :: Complex ] , out : & mut [ Self :: Real ] ) -> Result < ( ) > ;
154
+ fn c2r ( & self , in_ : & mut [ Self :: Complex ] , out : & mut [ Self :: Real ] ) -> Result < ( ) > ;
155
155
}
156
156
157
157
pub trait R2RPlan : Sized {
@@ -175,7 +175,7 @@ pub trait R2RPlan: Sized {
175
175
) -> Result < Self > ;
176
176
177
177
/// Execute complex-to-complex transform
178
- fn r2r ( & mut self , in_ : & mut [ Self :: Real ] , out : & mut [ Self :: Real ] ) -> Result < ( ) > ;
178
+ fn r2r ( & self , in_ : & mut [ Self :: Real ] , out : & mut [ Self :: Real ] ) -> Result < ( ) > ;
179
179
}
180
180
181
181
macro_rules! impl_c2c {
@@ -204,7 +204,7 @@ macro_rules! impl_c2c {
204
204
phantom: PhantomData ,
205
205
} )
206
206
}
207
- fn c2c( & mut self , in_: & mut [ Self :: Complex ] , out: & mut [ Self :: Complex ] ) -> Result <( ) > {
207
+ fn c2c( & self , in_: & mut [ Self :: Complex ] , out: & mut [ Self :: Complex ] ) -> Result <( ) > {
208
208
self . check( in_, out) ?;
209
209
unsafe { $exec( self . plan, in_. as_mut_ptr( ) , out. as_mut_ptr( ) ) } ;
210
210
Ok ( ( ) )
@@ -242,7 +242,7 @@ macro_rules! impl_r2c {
242
242
phantom: PhantomData ,
243
243
} )
244
244
}
245
- fn r2c( & mut self , in_: & mut [ Self :: Real ] , out: & mut [ Self :: Complex ] ) -> Result <( ) > {
245
+ fn r2c( & self , in_: & mut [ Self :: Real ] , out: & mut [ Self :: Complex ] ) -> Result <( ) > {
246
246
self . check( in_, out) ?;
247
247
unsafe { $exec( self . plan, in_. as_mut_ptr( ) , out. as_mut_ptr( ) ) } ;
248
248
Ok ( ( ) )
@@ -280,7 +280,7 @@ macro_rules! impl_c2r {
280
280
phantom: PhantomData ,
281
281
} )
282
282
}
283
- fn c2r( & mut self , in_: & mut [ Self :: Complex ] , out: & mut [ Self :: Real ] ) -> Result <( ) > {
283
+ fn c2r( & self , in_: & mut [ Self :: Complex ] , out: & mut [ Self :: Real ] ) -> Result <( ) > {
284
284
self . check( in_, out) ?;
285
285
unsafe { $exec( self . plan, in_. as_mut_ptr( ) , out. as_mut_ptr( ) ) } ;
286
286
Ok ( ( ) )
@@ -318,7 +318,7 @@ macro_rules! impl_r2r {
318
318
phantom: PhantomData ,
319
319
} )
320
320
}
321
- fn r2r( & mut self , in_: & mut [ Self :: Real ] , out: & mut [ Self :: Real ] ) -> Result <( ) > {
321
+ fn r2r( & self , in_: & mut [ Self :: Real ] , out: & mut [ Self :: Real ] ) -> Result <( ) > {
322
322
self . check( in_, out) ?;
323
323
unsafe { $exec( self . plan, in_. as_mut_ptr( ) , out. as_mut_ptr( ) ) } ;
324
324
Ok ( ( ) )
0 commit comments