Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
ff6bd2dd
Commit
ff6bd2dd
authored
Aug 22, 2016
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added an assert on the size of matlab's bools.
parent
95c5e959
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
mex_wrapper.cpp
dlib/matlab/mex_wrapper.cpp
+1
-0
No files found.
dlib/matlab/mex_wrapper.cpp
View file @
ff6bd2dd
...
...
@@ -700,6 +700,7 @@ namespace mex_binding
sout
<<
" argument "
<<
arg_idx
+
1
<<
" must be a matrix of logical elements."
;
throw
invalid_args_exception
(
sout
.
str
());
}
DLIB_CASSERT
(
sizeof
(
mxLogical
)
==
sizeof
(
bool
),
"logical matrices are not supported by the mex wrapper when mxLogical isn't a bool."
);
assign_mat
(
arg_idx
,
arg
,
pointer_to_matrix
((
const
bool
*
)
mxGetData
(
prhs
),
nc
,
nr
));
}
...
...
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