Mercurial > octave-nkf
comparison gui/src/backend/OctaveLink.cpp @ 13681:ee7f4294d162
Variables view now showing matrix size.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sun, 25 Sep 2011 21:28:38 +0200 |
parents | f27573828e92 |
children | 25dc40d24a44 |
comparison
equal
deleted
inserted
replaced
13680:3a2b09503fed | 13681:ee7f4294d162 |
---|---|
68 | 68 |
69 // Convert real matrix. | 69 // Convert real matrix. |
70 } | 70 } |
71 else if (octaveValue.is_real_matrix ()) | 71 else if (octaveValue.is_real_matrix ()) |
72 { | 72 { |
73 // TODO: Convert real matrix into a string. | 73 return QString ("%1x%2 matrix") |
74 return QString ("{matrix}"); | 74 .arg (octaveValue.matrix_value ().rows ()) |
75 .arg (octaveValue.matrix_value ().cols ()); | |
75 | 76 |
76 // Convert complex matrix. | 77 // Convert complex matrix. |
77 } | 78 } |
78 else if (octaveValue.is_complex_matrix ()) | 79 else if (octaveValue.is_complex_matrix ()) |
79 { | 80 { |
80 // TODO: Convert complex matrix into a string. | 81 return QString ("%1x%2 complex matrix") |
81 return QString ("{complex matrix}"); | 82 .arg (octaveValue.matrix_value ().rows ()) |
83 .arg (octaveValue.matrix_value ().cols ()); | |
82 | 84 |
83 // If everything else does not fit, we could not recognize the type. | 85 // If everything else does not fit, we could not recognize the type. |
84 } | 86 } |
85 else | 87 else |
86 { | 88 { |