GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <iostream>
#include <limits>
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "defun.h"
#include "gripes.h"
#include "mxarray.h"
#include "oct-map.h"
#include "oct-obj.h"
#include "oct-lvalue.h"
#include "oct-stream.h"
#include "ops.h"
#include "ov-base.h"
#include "ov-cell.h"
#include "ov-ch-mat.h"
#include "ov-complex.h"
#include "ov-cx-mat.h"
#include "ov-range.h"
#include "ov-re-mat.h"
#include "ov-scalar.h"
#include "ov-str-mat.h"
#include "ov-fcn-handle.h"
#include "parse.h"
#include "pr-output.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
Macros | |
#define | INT_CONV_METHOD(T, F) |
Functions | |
builtin_type_t | btyp_mixed_numeric (builtin_type_t x, builtin_type_t y) |
CONVDECLX (matrix_conv) | |
CONVDECLX (complex_matrix_conv) | |
CONVDECLX (string_conv) | |
CONVDECLX (cell_conv) | |
DEFUN (sparse_auto_mutate, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} sparse_auto_mutate ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} sparse_auto_mutate (@var{new_val})\n\ @deftypefnx {Built-in Function} {} sparse_auto_mutate (@var{new_val}, \"local\")\n\ Query or set the internal variable that controls whether Octave will\n\ automatically mutate sparse matrices to full matrices to save memory.\n\ For example:\n\ \n\ @example\n\ @group\n\ s = speye (3);\n\ sparse_auto_mutate (false);\n\ s(:, 1) = 1;\n\ typeinfo (s)\n\ @result{} sparse matrix\n\ sparse_auto_mutate (true);\n\ s(1, :) = 1;\n\ typeinfo (s)\n\ @result{} matrix\n\ @end group\n\ @end example\n\ \n\ When called from inside a function with the @qcode{\"local\"} option, the\n\ variable is changed locally for the function and any subroutines it calls. \n\ The original variable value is restored when exiting the function.\n\ @end deftypefn") | |
string_vector | get_builtin_classes (void) |
static void | gripe_assign_conversion_failed (const std::string &tn1, const std::string &tn2) |
static void | gripe_indexed_assignment (const std::string &tn1, const std::string &tn2) |
static void | gripe_no_conversion (const std::string &on, const std::string &tn1, const std::string &tn2) |
void | install_base_type_conversions (void) |
Variables | |
std::string | btyp_class_name [btyp_num_types] |
bool | Vsparse_auto_mutate = false |
#define INT_CONV_METHOD | ( | T, | |
F | |||
) |
Definition at line 453 of file ov-base.cc.
builtin_type_t btyp_mixed_numeric | ( | builtin_type_t | x, |
builtin_type_t | y | ||
) |
Definition at line 57 of file ov-base.cc.
References btyp_bool, btyp_double, btyp_float, btyp_float_complex, btyp_int64, btyp_int8, btyp_uint64, btyp_uint8, btyp_unknown, and x.
Referenced by do_minmax_body().
CONVDECLX | ( | matrix_conv | ) |
Definition at line 1519 of file ov-base.cc.
CONVDECLX | ( | complex_matrix_conv | ) |
Definition at line 1524 of file ov-base.cc.
CONVDECLX | ( | string_conv | ) |
Definition at line 1529 of file ov-base.cc.
CONVDECLX | ( | cell_conv | ) |
Definition at line 1534 of file ov-base.cc.
DEFUN | ( | sparse_auto_mutate | , |
args | , | ||
nargout | |||
) |
Definition at line 1559 of file ov-base.cc.
References SET_INTERNAL_VARIABLE.
string_vector get_builtin_classes | ( | void | ) |
Definition at line 91 of file ov-base.cc.
References btyp_class_name, btyp_complex, btyp_float_complex, btyp_num_types, and Array< T >::is_empty().
|
static |
Definition at line 1296 of file ov-base.cc.
References error().
Referenced by octave_base_value::numeric_assign().
|
static |
Definition at line 1289 of file ov-base.cc.
References error().
Referenced by octave_base_value::numeric_assign().
|
static |
Definition at line 1304 of file ov-base.cc.
References error().
Referenced by octave_base_value::numeric_assign().
Definition at line 1540 of file ov-base.cc.
References INSTALL_ASSIGNCONV, and INSTALL_WIDENOP.
Referenced by install_ops().
std::string btyp_class_name[btyp_num_types] |
Definition at line 81 of file ov-base.cc.
Referenced by get_builtin_classes(), get_dispatch_type(), and make_fcn_handle().
bool Vsparse_auto_mutate = false |
Definition at line 116 of file ov-base.cc.
Referenced by Fsparse(), octave_sparse_bool_matrix::try_narrowing_conversion(), octave_sparse_matrix::try_narrowing_conversion(), and octave_sparse_complex_matrix::try_narrowing_conversion().