Skip to content

Commit 61a9f0b

Browse files
committed
adapt xtensor-fftw to xtensor 0.15.6
1 parent 56e70e5 commit 61a9f0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/xtensor-fftw/basic.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ namespace xt {
165165

166166
// input vs output shape conversion
167167
template <typename output_t>
168-
inline std::vector<std::size_t> output_shape_from_input(xt::xarray<output_t, xt::layout_type::row_major> input, bool half_plus_one_out, bool half_plus_one_in, bool odd_last_dim = false) {
169-
std::vector<std::size_t> output_shape = input.shape();
168+
inline xt::svector<std::size_t> output_shape_from_input(xt::xarray<output_t, xt::layout_type::row_major> input, bool half_plus_one_out, bool half_plus_one_in, bool odd_last_dim = false) {
169+
xt::svector<std::size_t> output_shape = input.shape();
170170
if (half_plus_one_out) { // r2c
171171
auto n = output_shape.size();
172172
output_shape[n-1] = output_shape[n-1]/2 + 1;
@@ -183,8 +183,8 @@ namespace xt {
183183

184184
// output to DFT-dimensions conversion
185185
template <typename output_t>
186-
inline std::vector<std::size_t> dft_dimensions_from_output(xt::xarray<output_t, xt::layout_type::row_major> output, bool half_plus_one_out, bool odd_last_dim = false) {
187-
std::vector<std::size_t> dft_dimensions = output.shape();
186+
inline xt::svector<std::size_t> dft_dimensions_from_output(xt::xarray<output_t, xt::layout_type::row_major> output, bool half_plus_one_out, bool odd_last_dim = false) {
187+
xt::svector<std::size_t> dft_dimensions = output.shape();
188188

189189
if (half_plus_one_out) { // r2c
190190
auto n = dft_dimensions.size();

0 commit comments

Comments
 (0)