-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the following to osqp_mex.cpp: codegen, default_codegen_defines…
…, update_codegen_defines. Added osqp_struct_codegen_defines.cpp and updated osqp_struct.h. Updated the relevant .m files (codegen.m still needs work). Minor refactoring to osqp_mex.cpp.
- Loading branch information
1 parent
391fe8f
commit c47c8df
Showing
7 changed files
with
331 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
function update_codegen_defines(this, varargin) | ||
% UPDATE_CODEGEN_DEFINES update the current codegen defines | ||
|
||
% Check for structure style input | ||
if(isstruct(varargin{1})) | ||
newSettings = varargin{1}; | ||
assert(length(varargin) == 1, 'too many input arguments'); | ||
else | ||
newSettings = struct(varargin{:}); | ||
end | ||
|
||
% Write the new codegen defiens. The C-function checks for input | ||
% validity. | ||
osqp_mex('update_codegen_defines', this.objectHandle, newSettings); | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.