29 #include "octave-config.h"
116 type_name (),
"real scalar");
118 retval =
matrix(0).double_value ();
132 type_name (),
"real scalar");
134 retval =
matrix(0).float_value ();
149 error (
"invalid conversion of %s to Matrix", type_name ().c_str ());
166 error (
"invalid conversion of %s to FloatMatrix", type_name ().c_str ());
183 error (
"invalid conversion of %s to Matrix", type_name ().c_str ());
200 error (
"invalid conversion of %s to FloatMatrix", type_name ().c_str ());
215 double *vec =
retval.fortran_vec ();
226 float *vec =
retval.fortran_vec ();
262 if (warn &&
matrix.any_element_not_one_or_zero ())
299 matrix_ref ().changesign ();
310 {
return os.
write (
matrix, block_size, output_type, skip, flt_fmt); }
320 OCTAVE_INT_T::val_type *pr =
static_cast<OCTAVE_INT_T::val_type *
>
399 bool resize_ok =
false)
507 {
return scalar.float_value (); }
578 return scalar.bool_value ();
619 block_size, output_type, skip, flt_fmt);
630 OCTAVE_INT_T::val_type *pr =
static_cast<OCTAVE_INT_T::val_type *
>
double double_value(bool=false) const
float float_scalar_value(bool=false) const
builtin_type_t builtin_type(void) const
void * mex_get_data(void) const
octave_int< uint64_t > octave_uint64
bool bool_value(bool warn=false) const
double double_value(bool=false) const
intNDArray< octave_int64 > int64NDArray
FloatMatrix float_matrix_value(bool=false) const
FloatNDArray float_array_value(bool=false) const
FloatComplexNDArray float_complex_array_value(bool=false) const
OCTAVE_VALUE_INT_SCALAR_T(void)
uint16NDArray uint16_array_value(void) const
nd group nd example oindent but is performed more efficiently If only and it is a scalar
octave_idx_type write(const octave_value &data, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, octave::mach_info::float_format flt_fmt)
void warn_logical_conversion(void)
intNDArray< octave_uint32 > uint32NDArray
double scalar_value(bool=false) const
intNDArray< octave_uint8 > uint8NDArray
intNDArray< octave_uint16 > uint16NDArray
ComplexMatrix complex_matrix_value(bool=false) const
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the then the first element defines the pivoting tolerance for the unsymmetric the values defined such that for full matrix
octave_int< uint16_t > octave_uint16
int write(octave_stream &os, int block_size, oct_data_conv::data_type output_type, octave_idx_type skip, octave::mach_info::float_format flt_fmt) const
~OCTAVE_VALUE_INT_SCALAR_T(void)
void error(const char *fmt,...)
bool is_integer_type(void) const
void * get_data(void) const
bool OCTAVE_TYPE_PREDICATE_FUNCTION(void) const
octave_value map(unary_mapper_t umap) const
octave::mach_info::float_format flt_fmt
FloatComplexNDArray float_complex_array_value(bool=false) const
ComplexNDArray complex_array_value(bool=false) const
uint8NDArray uint8_array_value(void) const
double lo_ieee_nan_value(void)
intNDArray< octave_int16 > int16NDArray
uint8NDArray uint8_array_value(void) const
uint32NDArray uint32_array_value(void) const
octave_value map(unary_mapper_t umap) const
octave_idx_type numel(int n=0) const
Number of elements that a matrix with this dimensions would have.
ComplexNDArray complex_array_value(bool=false) const
int8NDArray int8_array_value(void) const
builtin_type_t builtin_type(void) const
octave_uint32 uint32_scalar_value(void) const
octave_value map(unary_mapper_t umap) const
FloatComplexMatrix float_complex_matrix_value(bool=false) const
void * mex_get_data(void) const
#define OCTAVE_VALUE_INT_SCALAR_T
uint64NDArray uint64_array_value(void) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
int64NDArray int64_array_value(void) const
NDArray array_value(bool=false) const
intNDArray< octave_int8 > int8NDArray
octave_base_value * clone(void) const
octave_uint16 uint16_scalar_value(void) const
octave_uint64 uint64_scalar_value(void) const
nd deftypefn *octave_map m
float float_value(bool=false) const
~OCTAVE_VALUE_INT_MATRIX_T(void)
int32NDArray int32_array_value(void) const
ComplexMatrix complex_matrix_value(bool=false) const
uint16NDArray uint16_array_value(void) const
int8NDArray int8_array_value(void) const
Matrix matrix_value(bool=false) const
Matrix matrix_value(bool=false) const
int64NDArray int64_array_value(void) const
OCTAVE_VALUE_INT_MATRIX_T(const Array< OCTAVE_INT_T > &nda)
bool OCTAVE_TYPE_PREDICATE_FUNCTION(void) const
#define OCTAVE_VALUE_INT_MATRIX_T
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
octave_base_value * empty_clone(void) const
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
octave_int32 int32_scalar_value(void) const
octave_int16 int16_scalar_value(void) const
FloatComplexMatrix float_complex_matrix_value(bool=false) const
float lo_ieee_float_nan_value(void)
float float_value(bool=false) const
mxArray * as_mxArray(void) const
octave_int< uint32_t > octave_uint32
#define OCTAVE_INT_MX_CLASS
octave_int8 int8_scalar_value(void) const
int write(octave_stream &os, int block_size, oct_data_conv::data_type output_type, int skip, octave::mach_info::float_format flt_fmt) const
FloatMatrix float_matrix_value(bool=false) const
OCTAVE_VALUE_INT_SCALAR_T(const OCTAVE_INT_T &nda)
N Dimensional Array with copy-on-write semantics.
NDArray array_value(bool=false) const
boolNDArray bool_array_value(bool warn=false) const
intNDArray< octave_int32 > int32NDArray
boolNDArray bool_array_value(bool warn=false) const
T::size_type numel(const T &str)
void err_invalid_conversion(const std::string &from, const std::string &to)
float float_scalar_value(bool=false) const
#define OCTAVE_VALUE_INT_NDARRAY_EXTRACTOR_FUNCTION
=val(i)}if ode{val(i)}occurs in table i
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol zero divided by nd tex zero divided by nd ifnottex and any operation involving another NaN value(5+NaN).Note that NaN always compares not equal to NaN(NaN!
uint32NDArray uint32_array_value(void) const
void warn_implicit_conversion(const char *id, const char *from, const char *to)
octave_int< int64_t > octave_int64
int16NDArray int16_array_value(void) const
octave_base_value * clone(void) const
octave_idx_type ndims(void) const
Number of dimensions.
octave_value resize(const dim_vector &dv, bool fill=false) const
FloatNDArray float_array_value(bool=false) const
charNDArray char_array_value(bool=false) const
bool is_integer_type(void) const
std::complex< float > FloatComplex
octave_int< int16_t > octave_int16
int16NDArray int16_array_value(void) const
charNDArray char_array_value(bool=false) const
octave_value map(unary_mapper_t umap) const
std::complex< double > Complex
const T * fortran_vec(void) const
OCTAVE_VALUE_INT_MATRIX_T(void)
octave_int< uint8_t > octave_uint8
Vector representing the dimensions (size) of an Array.
octave_int< int32_t > octave_int32
octave_int64 int64_scalar_value(void) const
OCTAVE_VALUE_INT_MATRIX_T(const intNDArray< OCTAVE_INT_T > &nda)
octave_uint8 uint8_scalar_value(void) const
idx_vector index_vector(bool=false) const
int32NDArray int32_array_value(void) const
mxArray * as_mxArray(void) const
uint64NDArray uint64_array_value(void) const
double scalar_value(bool=false) const
idx_vector index_vector(bool=false) const
octave_int< int8_t > octave_int8
intNDArray< octave_uint64 > uint64NDArray
octave_base_value * empty_clone(void) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)