Mercurial > octave
comparison libinterp/corefcn/sparse.cc @ 30801:568bddf0215e
deprecate sparse_auto_mutate function and internal variable
* sparse.cc (Fsparse): Don't set Vsparse_auto_mutate to false.
* ov-base.h, ov-base.cc (Vsparse_auto_mutate): Deprecate variable.
(Fsparse_auto_mutate): Delete function and tests.
* ov-bool-sparse.h, ov-bool-sparse.cc
(octave_sparse_bool_matrix::try_narrowing_conversion): Delete.
* ov-re-sparse.h, ov-re-sparse.cc
(octave_sparse_bool_matrix::try_narrowing_conversion): Delete.
* ov-cx-sparse.cc
(octave_sparse_complex_matrix::try_narrowing_conversion):
Only perform complex sparse -> real sparse conversion.
* scripts/deprecated/sparse_auto_mutate.m: New function.
* scripts/deprecated/module.mk: Update.
* sparse.txi: Remove documentation for sparse_auto_mutate.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 02 Mar 2022 15:01:30 -0500 |
parents | 83f9f8bda883 |
children | e88a07dec498 |
comparison
equal
deleted
inserted
replaced
30799:16023ccebcca | 30801:568bddf0215e |
---|---|
152 | 152 |
153 if (nargin == 0 || nargin > 6) | 153 if (nargin == 0 || nargin > 6) |
154 print_usage (); | 154 print_usage (); |
155 | 155 |
156 octave_value retval; | 156 octave_value retval; |
157 | |
158 // Temporarily disable sparse_auto_mutate if set (it's obsolete anyway). | |
159 unwind_protect_var<bool> restore_var (Vsparse_auto_mutate, false); | |
160 | 157 |
161 if (nargin == 1) | 158 if (nargin == 1) |
162 { | 159 { |
163 octave_value arg = args(0); | 160 octave_value arg = args(0); |
164 if (arg.islogical ()) | 161 if (arg.islogical ()) |