Mercurial > hg > octave-lyh
comparison src/ls-mat5.cc @ 5384:8df6524b9500
[project @ 2005-06-09 21:06:28 by dbateman]
author | dbateman |
---|---|
date | Thu, 09 Jun 2005 21:06:28 +0000 |
parents | ffea7e58bc00 |
children | 7099eb9841b4 |
comparison
equal
deleted
inserted
replaced
5383:ffea7e58bc00 | 5384:8df6524b9500 |
---|---|
1336 ret += PAD (4 * tc.ndims ()); | 1336 ret += PAD (4 * tc.ndims ()); |
1337 | 1337 |
1338 if (tc.is_string ()) | 1338 if (tc.is_string ()) |
1339 { | 1339 { |
1340 charMatrix chm = tc.char_matrix_value (); | 1340 charMatrix chm = tc.char_matrix_value (); |
1341 ret += 8 + PAD (2 * chm.rows () * chm.cols ()); | 1341 ret += 8; |
1342 if (chm.nelem () > 1) | |
1343 ret += PAD (2 * chm.rows () * chm.cols ()); | |
1342 } | 1344 } |
1343 else if (cname == "sparse") | 1345 else if (cname == "sparse") |
1344 { | 1346 { |
1345 if (tc.is_complex_type ()) | 1347 if (tc.is_complex_type ()) |
1346 { | 1348 { |