File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ void mexFunction(int nlhs,
184
184
.reg (" create_range_dimension" , &nix::DataArray::createRangeDimension)
185
185
.reg (" create_alias_range_dimension" , &nix::DataArray::createAliasRangeDimension)
186
186
.reg (" create_sampled_dimension" , &nix::DataArray::createSampledDimension);
187
- methods->add (" DataArray::delete_dimension " , nixdataarray::delete_dimension );
187
+ methods->add (" DataArray::delete_dimensions " , nixdataarray::delete_dimensions );
188
188
methods->add (" DataArray::readAll" , nixdataarray::read_all);
189
189
methods->add (" DataArray::writeAll" , nixdataarray::write_all);
190
190
methods->add (" DataArray::addSource" , nixdataarray::add_source);
Original file line number Diff line number Diff line change @@ -63,11 +63,10 @@ namespace nixdataarray {
63
63
}
64
64
}
65
65
66
- void delete_dimension (const extractor &input, infusor &output) {
66
+ void delete_dimensions (const extractor &input, infusor &output) {
67
67
nix::DataArray da = input.entity <nix::DataArray>(1 );
68
68
69
- const size_t idx = static_cast <size_t >(input.num <double >(2 ));
70
- bool res = da.deleteDimension (idx);
69
+ bool res = da.deleteDimensions ();
71
70
72
71
output.set (0 , res);
73
72
}
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ namespace nixdataarray {
15
15
16
16
void write_all (const extractor &input, infusor &output);
17
17
18
- void delete_dimension (const extractor &input, infusor &output);
18
+ void delete_dimensions (const extractor &input, infusor &output);
19
19
20
20
} // namespace nixdataarray
21
21
22
- #endif
22
+ #endif
You can’t perform that action at this time.
0 commit comments