Open cbm755 opened 10 years ago
Looks like:
https://savannah.gnu.org/bugs/?38128
which is supposed to be solved by still see this on Octave dev. Will investigate further.
[updated comment, wrong link before]
https://savannah.gnu.org/bugs/index.php?42152
filled upstream. can't fix it here.
Workaround, extract brackets around the row vec:
B = [sym(0) 1; [2 3]];
maybe I should leave this open so people see it? E.g., this upstream
Same error here with v. 4.2.1 w64 for windows: syms d T=[1 d 0 0 0 1 0 0 0 0 1 d 0 0 0 1]
fails with: error: octave_base_value::map_value(): wrong type argument 'scalar'
Thanks for confirming, but note there is nothing we can do here until this is fixed in upstream Octave---see https://github.com/cbm755/octsympy/issues/8#issuecomment-40898024, see also workaround noted above.
sorry, I read that page but I think it was a too old bug to not be solved yet. Thanks for the info.
no problem! Any chance you want to take a deep dive into Octave's parsing, see if you can fix it? I'm sure someone like @mtmiller (who knows the internals better than me) would review such a fix.
just came across this. guess it's still an issue with Octave 5.2,0 symbolic 2.9.0
`>> syms a b c d
mattest = [a b ; c d] mattest = (sym 2x2 matrix)
[a b] [ ] [c d]
mattest = [a 1 ; c d] mattest = (sym 2x2 matrix)
[a 1] [ ] [c d]
mattest = [1 1 ; c d] error: octave_base_value::map_value(): wrong type argument 'scalar'
mattest = [[1 1] ; c d] mattest = (sym 2x2 matrix)
[1 1] [ ] [c d]
`
A works but B fails on Octave 3.6.4 and 3.8.1 with:
It works in Matlab, maybe an Octave bug?