Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
pypocketfft
Commits
9a4f0247
Commit
9a4f0247
authored
Apr 27, 2019
by
Martin Reinecke
Browse files
bug fix
parent
32cb03a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
pocketfft.cc
View file @
9a4f0247
...
...
@@ -2079,7 +2079,7 @@ template<typename T> arr<char> alloc_tmp(const shape_t &shape,
for
(
size_t
i
=
0
;
i
<
ndim
;
++
i
)
fullsize
*=
shape
[
i
];
auto
othersize
=
fullsize
/
axsize
;
auto
tmpsize
=
axsize
*
((
othersize
>
VTYPE
<
T
>::
vlen
)
?
VTYPE
<
T
>::
vlen
:
1
);
auto
tmpsize
=
axsize
*
((
othersize
>
=
VTYPE
<
T
>::
vlen
)
?
VTYPE
<
T
>::
vlen
:
1
);
return
arr
<
char
>
(
tmpsize
*
elemsize
);
}
template
<
typename
T
>
arr
<
char
>
alloc_tmp
(
const
shape_t
&
shape
,
...
...
@@ -2094,7 +2094,7 @@ template<typename T> arr<char> alloc_tmp(const shape_t &shape,
{
auto
axsize
=
shape
[
axes
[
i
]];
auto
othersize
=
fullsize
/
axsize
;
tmpsize
=
max
(
tmpsize
,
axsize
*
((
othersize
>
VTYPE
<
T
>::
vlen
)
?
VTYPE
<
T
>::
vlen
:
1
));
tmpsize
=
max
(
tmpsize
,
axsize
*
((
othersize
>
=
VTYPE
<
T
>::
vlen
)
?
VTYPE
<
T
>::
vlen
:
1
));
}
return
arr
<
char
>
(
tmpsize
*
elemsize
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment