comparison libinterp/corefcn/bsxfun.cc @ 21372:a1aa52bff079

Allow bsxfun to work for sparse and type conversion (bug #45219, bug #40089). * bsxfun.cc (Fbsxfun): Initialise the fall-back variable C for sparse too.
author Lachlan Andrew <lachlanbis@gmail.com>
date Sat, 16 Jan 2016 20:52:47 +1100
parents 12280fef2741
children ecce63c99c3f
comparison
equal deleted inserted replaced
21371:dc3252099232 21372:a1aa52bff079
515 else 515 else
516 { 516 {
517 C = tmp(0); 517 C = tmp(0);
518 C = C.resize (dvc); 518 C = C.resize (dvc);
519 } 519 }
520 }
521 else // Skip semi-fast path for sparse matrices
522 {
523 C = tmp (0);
524 C = C.resize (dvc);
520 } 525 }
521 } 526 }
522 else 527 else
523 { 528 {
524 update_index (ra_idx, dvc, i); 529 update_index (ra_idx, dvc, i);