File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ pub fn unfold_with_enum_mask(
114
114
) -> Array2 < f64 > {
115
115
let mut xunfold = Array :: zeros ( ( x. nrows ( ) , compute_unfolded_dimension ( xtypes) ) ) ;
116
116
let mut unfold_index = 0 ;
117
- xtypes. iter ( ) . for_each ( |s | match s {
117
+ xtypes. iter ( ) . enumerate ( ) . for_each ( |( i , s ) | match s {
118
118
XType :: Cont ( _, _) | XType :: Int ( _, _) | XType :: Ord ( _) => {
119
119
xunfold
120
120
. column_mut ( unfold_index)
@@ -126,8 +126,8 @@ pub fn unfold_with_enum_mask(
126
126
Zip :: from ( unfold. rows_mut ( ) )
127
127
. and ( x. rows ( ) )
128
128
. for_each ( |mut row, xrow| {
129
- let index = xrow[ [ unfold_index ] ] as usize ;
130
- row[ [ index] ] = 1. ;
129
+ let index = xrow[ i ] as usize ;
130
+ row[ index] = 1. ;
131
131
} ) ;
132
132
xunfold
133
133
. slice_mut ( s ! [ .., unfold_index..unfold_index + v] )
@@ -368,7 +368,7 @@ impl MixintMoeValidParams {
368
368
}
369
369
370
370
impl SurrogateBuilder for MixintMoeParams {
371
- fn new_with_xtypes_rng ( xtypes : & [ XType ] ) -> Self {
371
+ fn new_with_xtypes ( xtypes : & [ XType ] ) -> Self {
372
372
MixintMoeParams :: new ( xtypes, & MoeParams :: new ( ) )
373
373
}
374
374
You can’t perform that action at this time.
0 commit comments