-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash #126
Comments
I used your /dev branch. But I have seen it and the previous bug #125 when using the master branch. |
Oh, this crash only happens when I set If leave it blank, like However, the generated code will compile with errors. Generated code: int main(int argc, char** argv) Try to change TYPE to mat: int main(int argc, char** argv) Get the following compiler errors: 1>test.m.cpp |
Manually to fix the compile error and get the following correct C++ code: int main(int argc, char** argv)
} |
I am using Armadillo v8. So there may be new syntax for doing subview and it's actually simpler. For example, |
two issues here:
|
well, if transpose column vector to row vector doesn't require data movement, then please ignore the second request. Thanks. |
Matlab:
dRdm1 = zeros(9,21);
dRdm1([1 5 9],1) = ones(3,1);
Errors:
Traceback (most recent call last):
File "/usr/local/bin/m2cpp", line 9, in
load_entry_point('matlab2cpp==2.0.1', 'console_scripts', 'm2cpp')()
File "/Library/Python/2.7/site-packages/matlab2cpp-2.0.1-py2.7.egg/matlab2cpp/init.py", line 62, in m2cpp
execute_parser(args)
File "/Library/Python/2.7/site-packages/matlab2cpp-2.0.1-py2.7.egg/matlab2cpp/frontend.py", line 180, in execute_parser
builder.project.translate(args)
File "/Library/Python/2.7/site-packages/matlab2cpp-2.0.1-py2.7.egg/matlab2cpp/node/frontend.py", line 190, in translate
backend.translate(self, opt)
File "/Library/Python/2.7/site-packages/matlab2cpp-2.0.1-py2.7.egg/matlab2cpp/node/backend.py", line 481, in translate
map(translate, node)
File "/Library/Python/2.7/site-packages/matlab2cpp-2.0.1-py2.7.egg/matlab2cpp/node/backend.py", line 495, in translate
translate_one(node, opt)
File "/Library/Python/2.7/site-packages/matlab2cpp-2.0.1-py2.7.egg/matlab2cpp/node/backend.py", line 565, in translate_one
value = value(node)
File "/Library/Python/2.7/site-packages/matlab2cpp-2.0.1-py2.7.egg/matlab2cpp/rules/mat.py", line 198, in Set
index = node[0].str.index('(')
ValueError: substring not found
The text was updated successfully, but these errors were encountered: