jeanluct / braidlab

Matlab package for analyzing data using braids
GNU General Public License v3.0
23 stars 9 forks source link

mpz_set_str in cyclemat #48

Closed jeanluct closed 9 years ago

jeanluct commented 9 years ago
#!matlab
>> b = braid([4  3 -1  4  1  4  2 -3 -4  3 -2 -1  4  2  4 -3]);
>> b.cyclemat
Unexpected Standard exception from MEX file.
What() is:mpz_set_str
..

Error in loopsigma (line 56)
      [varargout{1:nargout}] = loopsigma_helper(ii,ustr);

Error in braidlab.braid/mtimes (line 330)
        [varargout{1:nargout}] = loopsigma(b1.word,vertcat(b2.coords));

Error in braidlab.braid/cycle (line 109)
  [l,pn] = b*l;

Error in braidlab.braid/cyclemat (line 56)
[pn,it] = cycle(b,varargin{:});
jeanluct commented 9 years ago

From Jean-Luc Thiffeault on 2014-02-27 21:18:33+00:00

Do not wrap VPIs when using num2char. Resolves issue #48.

→ <>

jeanluct commented 9 years ago

From Jean-Luc Thiffeault on 2014-02-27 21:19:56+00:00

VPI does a bad thing: when using num2str it calls disp, but disp is set to wrap at 80 lines. I added an option to disp for the wrapping length (which it now gets from the window by default). If that pagewidth is 0, then it does no wrapping (at least of single numbers, for now).