octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48649] parse error with symbolic matrices


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #48649] parse error with symbolic matrices
Date: Thu, 28 Jul 2016 19:17:44 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Update of bug #48649 (project octave):

                  Status:                    None => Duplicate              
             Open/Closed:                    Open => Closed                 
              Depends on:                         => bugs #42282            

    _______________________________________________________

Follow-up Comment #1:

Thanks for your bug report. This is not a parser error, but rather a
typecasting error. I think this is actually bug #42282, which was reported
some time ago but has not been fixed.

A simpler example:


>> x = [sym(1), 0; 0, 1]
error: octave_base_value::map_value(): wrong type argument 'scalar'


You can work around this by making sure at least one element of every row in
the matrix is of the desired type:


>> x = [sym(1), 0; 0, sym(1)]
x = (sym 2×2 matrix)

  ⎡1  0⎤
  ⎢    ⎥
  ⎣0  1⎦




Closing as a duplicate of bug #42282.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48649>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]