Mercurial > octave-nkf
view .hgsub @ 19354:50922b1c74df
liboctave: confirm that matrices constructors are limited to 2 dimensions.
* liboctave/array/boolMatrix.h, liboctave/array/chMatrix.h
(boolMatrix::boolMatrix(dim_vector),boolMatrix::boolMatrix(dim_vector,bool),
charMatrix::charMatrix(dim_vector),charMatrix::charMatrix(dim_vector,char)):
call redim(2) on the dim_vector argument to the constructor, the same that
happens in the other typeMatrix classes.
* liboctave/array/fCMatrix.h: simplify code to reshape NDArray input into
matrix form (should have no effect).
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Mon, 10 Nov 2014 23:11:20 +0000 |
parents | 44f30dcd87e0 |
children |