Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
e952454d
"tests/vscode:/vscode.git/clone" did not exist on "1b152bf524b2cb234f712e780468b0b11f202b4a"
Commit
e952454d
authored
Jan 26, 2018
by
Davis King
Browse files
Added missing assert
parent
ae299a76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
dlib/matrix/matrix_fft.h
dlib/matrix/matrix_fft.h
+2
-0
dlib/matrix/matrix_fft_abstract.h
dlib/matrix/matrix_fft_abstract.h
+4
-4
No files found.
dlib/matrix/matrix_fft.h
View file @
e952454d
...
@@ -238,6 +238,8 @@ namespace dlib
...
@@ -238,6 +238,8 @@ namespace dlib
and then finishes with a radix-2 or -4 iteration if needed.
and then finishes with a radix-2 or -4 iteration if needed.
!*/
!*/
{
{
COMPILE_TIME_ASSERT
((
is_same_type
<
double
,
T
>::
value
||
is_same_type
<
float
,
T
>::
value
||
is_same_type
<
long
double
,
T
>::
value
));
if
(
data
.
size
()
==
0
)
if
(
data
.
size
()
==
0
)
return
;
return
;
...
...
dlib/matrix/matrix_fft_abstract.h
View file @
e952454d
...
@@ -28,7 +28,7 @@ namespace dlib
...
@@ -28,7 +28,7 @@ namespace dlib
);
);
/*!
/*!
requires
requires
- data contains elements of type std::complex<>
- data contains elements of type std::complex<>
that itself contains double, float, or long double.
- is_power_of_two(data.nr()) == true
- is_power_of_two(data.nr()) == true
- is_power_of_two(data.nc()) == true
- is_power_of_two(data.nc()) == true
ensures
ensures
...
@@ -50,7 +50,7 @@ namespace dlib
...
@@ -50,7 +50,7 @@ namespace dlib
);
);
/*!
/*!
requires
requires
- data contains elements of type std::complex<>
- data contains elements of type std::complex<>
that itself contains double, float, or long double.
- is_power_of_two(data.nr()) == true
- is_power_of_two(data.nr()) == true
- is_power_of_two(data.nc()) == true
- is_power_of_two(data.nc()) == true
ensures
ensures
...
@@ -76,7 +76,7 @@ namespace dlib
...
@@ -76,7 +76,7 @@ namespace dlib
);
);
/*!
/*!
requires
requires
- data contains elements of type std::complex<>
- data contains elements of type std::complex<>
that itself contains double, float, or long double.
- is_power_of_two(data.nr()) == true
- is_power_of_two(data.nr()) == true
- is_power_of_two(data.nc()) == true
- is_power_of_two(data.nc()) == true
ensures
ensures
...
@@ -99,7 +99,7 @@ namespace dlib
...
@@ -99,7 +99,7 @@ namespace dlib
);
);
/*!
/*!
requires
requires
- data contains elements of type std::complex<>
- data contains elements of type std::complex<>
that itself contains double, float, or long double.
- is_power_of_two(data.nr()) == true
- is_power_of_two(data.nr()) == true
- is_power_of_two(data.nc()) == true
- is_power_of_two(data.nc()) == true
ensures
ensures
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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