Skip to content
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

MX silently changes the size if the input is a [1,n] matrix #2366

Closed
deego opened this issue Jan 17, 2019 · 1 comment
Closed

MX silently changes the size if the input is a [1,n] matrix #2366

deego opened this issue Jan 17, 2019 · 1 comment
Assignees
Milestone

Comments

@deego
Copy link

@deego deego commented Jan 17, 2019

MX silently changes the size if the input is a [1,n] matrix. SX does the right thing:

a=ones(2,4)
size(a) ## [2 4]
size(MX(a)) ## [2 4], MX does the right thing here.

a=ones(1,4)
size(a) ## [1 4]
size(SX(a)) ## [1 4] SX handles the [1,n] case well.

a=ones(1,4)
size(a) ## [1 4]
size(MX(a)) ## [4 1] ------ this should have been [1 4]


casadi 3.4.4 (with octave 4.2).

@jgillis jgillis added this to the Version 3.5 milestone Jan 23, 2019
@jgillis jgillis self-assigned this Jan 23, 2019
@jgillis
Copy link
Member

@jgillis jgillis commented Jan 23, 2019

Thanks a lot for reporting this issue.
Fixed in develop now

@jgillis jgillis closed this Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants