Mercurial > octave-nkf
view scripts/miscellaneous/pack.m @ 18809:ac0c04e4d141 stable
Fix segfault with sparse inputs to complex() (bug #42290).
* data.cc (Fcomplex): Correctly call SparseComplexMatrix constructor with
nrows, ncols, initial_value. Use in-place operator += to clarify code.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 23 May 2014 11:48:23 -0700 |
parents | d63878346099 |
children | cebe737fd039 |
line wrap: on
line source
## Copyright (C) 1999-2013 John W. Eaton ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or (at ## your option) any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>. ## -*- texinfo -*- ## @deftypefn {Function File} {} pack () ## Consolidate workspace memory in @sc{matlab}. This function is provided for ## compatibility, but does nothing in Octave. ## @end deftypefn ## Author: jwe function pack () endfunction