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

Comments

@deego
Copy link

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 added a commit that referenced this issue Jan 23, 2019
@jgillis jgillis added this to the Version 3.5 milestone Jan 23, 2019
@jgillis jgillis self-assigned this Jan 23, 2019
@jgillis

This comment has been minimized.

Copy link
Member

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
Projects
None yet
2 participants
You can’t perform that action at this time.