Skip to content

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

@deego

Description

@deego

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).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions