16782_hw2's People
16782_hw2's Issues
memory leak
Line 319 in 6dfeaea
This pointer should be free'd after it's copied into matlab space.
C++ Compilation Error
These lines cause a compilation error in C++. Also I know that armplanner length isn't really used in the matlab code, is it still needed?
Lines 341 to 343 in 6dfeaea
The code could be changed to:
PLANLENGTH_OUT = mxCreateNumericMatrix( (mwSize)1, (mwSize)1, mxINT8_CLASS, mxREAL);
char* planlength_out = (char*)mxGetData(PLANLENGTH_OUT);
*planlength_out = planlength;
Though the planner length could be larger than a signed byte can store. Maybe mxUINT16_CLASS? 65536 is probably large enough.
PLANLENGTH_OUT = mxCreateNumericMatrix( (mwSize)1, (mwSize)1, mxUINT16_CLASS, mxREAL);
unsigned short* planlength_out = (unsigned short*)mxGetData(PLANLENGTH_OUT);
*planlength_out = planlength;
should return a 1?
Line 205 in 6dfeaea
shouldn't there be a return 1?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.