29 #include "octave-config.h" 116 type_name (),
"real scalar");
132 type_name (),
"real scalar");
149 error (
"invalid conversion of %s to Matrix", type_name ().c_str ());
152 double *vec =
retval.fortran_vec ();
166 error (
"invalid conversion of %s to FloatMatrix", type_name ().c_str ());
169 float *vec =
retval.fortran_vec ();
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 ())
265 bool *vec =
retval.fortran_vec ();
279 char *vec =
retval.fortran_vec ();
299 matrix_ref ().changesign ();
320 OCTAVE_INT_T::val_type *pr =
static_cast<OCTAVE_INT_T::val_type *
> 374 return save_hdf5_internal (loc_id, hdf5_save_type,
name, flag);
379 return load_hdf5_internal (loc_id, hdf5_save_type,
name);
411 bool resize_ok =
false)
427 return tmp.do_index_op (idx, resize_ok);
519 {
return scalar.float_value (); }
590 return scalar.bool_value ();
631 block_size, output_type, skip,
flt_fmt);
642 OCTAVE_INT_T::val_type *pr =
static_cast<OCTAVE_INT_T::val_type *
> 689 return save_hdf5_internal (loc_id, hdf5_save_type,
name, flag);
694 return load_hdf5_internal (loc_id, hdf5_save_type,
name);
octave_idx_type write(const octave_value &data, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, mach_info::float_format flt_fmt)
ComplexNDArray complex_array_value(bool=false) const
uint16NDArray uint16_array_value(void) const
octave_int< uint64_t > octave_uint64
int32NDArray int32_array_value(void) const
intNDArray< octave_int64 > int64NDArray
octave_value map(unary_mapper_t umap) const
float float_value(bool=false) const
octave_uint16 uint16_scalar_value(void) const
NDArray array_value(bool=false) const
characters Given a string matrix
OCTAVE_VALUE_INT_SCALAR_T(void)
nd group nd example oindent but is performed more efficiently If only and it is a scalar
static octave_hdf5_id hdf5_save_type
int64NDArray int64_array_value(void) const
int32NDArray int32_array_value(void) const
void warn_logical_conversion(void)
uint8NDArray uint8_array_value(void) const
octave_value map(unary_mapper_t umap) const
intNDArray< octave_uint32 > uint32NDArray
octave_int8 int8_scalar_value(void) const
intNDArray< octave_uint8 > uint8NDArray
intNDArray< octave_uint16 > uint16NDArray
octave_uint8 uint8_scalar_value(void) const
octave_int< uint16_t > octave_uint16
octave_base_value * empty_clone(void) const
FloatNDArray float_array_value(bool=false) const
void error(const char *fmt,...)
int8NDArray int8_array_value(void) const
ComplexMatrix complex_matrix_value(bool=false) const
charNDArray char_array_value(bool=false) const
octave::mach_info::float_format flt_fmt
double double_value(bool=false) const
octave_uint32 uint32_scalar_value(void) const
int16NDArray int16_array_value(void) const
ComplexMatrix complex_matrix_value(bool=false) const
double lo_ieee_nan_value(void)
FloatComplexNDArray float_complex_array_value(bool=false) const
uint16NDArray uint16_array_value(void) const
intNDArray< octave_int16 > int16NDArray
octave_base_value * clone(void) const
float float_value(bool=false) const
octave_base_value * empty_clone(void) const
bool OCTAVE_TYPE_PREDICATE_FUNCTION(void) const
boolNDArray bool_array_value(bool warn=false) const
octave_int64 int64_scalar_value(void) const
FloatMatrix float_matrix_value(bool=false) const
boolNDArray bool_array_value(bool warn=false) const
FloatComplexMatrix float_complex_matrix_value(bool=false) const
uint8NDArray uint8_array_value(void) const
#define OCTAVE_VALUE_INT_SCALAR_T
Matrix matrix_value(bool=false) const
#define DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA
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
nd deftypefn *std::string name
bool load_hdf5(octave_hdf5_id loc_id, const char *name)
bool bool_value(bool warn=false) const
intNDArray< octave_int8 > int8NDArray
float float_scalar_value(bool=false) const
octave_uint64 uint64_scalar_value(void) const
Array< octave_value > array_value(void) const
uint64NDArray uint64_array_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
void * mex_get_data(void) const
OCTAVE_VALUE_INT_MATRIX_T(const Array< OCTAVE_INT_T > &nda)
builtin_type_t builtin_type(void) const
FloatMatrix float_matrix_value(bool=false) const
#define OCTAVE_VALUE_INT_MATRIX_T
octave_value map(unary_mapper_t umap) const
octave_value do_index_op(const octave_value_list &idx, bool resize_ok=false)
idx_vector index_vector(bool=false) const
Matrix matrix_value(bool=false) 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
uint32NDArray uint32_array_value(void) const
uint32NDArray uint32_array_value(void) const
bool OCTAVE_TYPE_PREDICATE_FUNCTION(void) const
float lo_ieee_float_nan_value(void)
octave_int< uint32_t > octave_uint32
#define OCTAVE_INT_MX_CLASS
mxArray * as_mxArray(void) const
NDArray array_value(bool=false) const
octave_value resize(const dim_vector &dv, bool fill=false) const
octave_int32 int32_scalar_value(void) const
OCTAVE_VALUE_INT_SCALAR_T(const OCTAVE_INT_T &nda)
N Dimensional Array with copy-on-write semantics.
double scalar_value(bool=false) const
void * mex_get_data(void) const
intNDArray< octave_int32 > int32NDArray
float float_scalar_value(bool=false) const
T::size_type numel(const T &str)
void err_invalid_conversion(const std::string &from, const std::string &to)
octave_value map(unary_mapper_t umap) const
#define OCTAVE_VALUE_INT_NDARRAY_EXTRACTOR_FUNCTION
octave_idx_type numel(int n=0) const
Number of elements that a matrix with this dimensions would have.
double scalar_value(bool=false) const
idx_vector index_vector(bool=false) const
charNDArray char_array_value(bool=false) const
void warn_implicit_conversion(const char *id, const char *from, const char *to)
double double_value(bool=false) const
octave_int< int64_t > octave_int64
bool load_hdf5(octave_hdf5_id loc_id, const char *name)
mxArray * as_mxArray(void) const
bool isinteger(void) const
octave_base_value * clone(void) const
bool isinteger(void) const
octave_int16 int16_scalar_value(void) const
std::complex< float > FloatComplex
octave_int< int16_t > octave_int16
int16NDArray int16_array_value(void) const
octave_idx_type ndims(void) const
Number of dimensions.
bool save_hdf5(octave_hdf5_id loc_id, const char *name, bool flag)
ComplexNDArray complex_array_value(bool=false) const
FloatNDArray float_array_value(bool=false) const
std::complex< double > Complex
static octave_hdf5_id hdf5_save_type
OCTAVE_VALUE_INT_MATRIX_T(void)
FloatComplexNDArray float_complex_array_value(bool=false) const
octave_int< uint8_t > octave_uint8
uint64NDArray uint64_array_value(void) const
int8NDArray int8_array_value(void) const
Vector representing the dimensions (size) of an Array.
octave_int< int32_t > octave_int32
int64NDArray int64_array_value(void) const
nd group nd example For each display the value
OCTAVE_VALUE_INT_MATRIX_T(const intNDArray< OCTAVE_INT_T > &nda)
bool save_hdf5(octave_hdf5_id loc_id, const char *name, bool flag)
FloatComplexMatrix float_complex_matrix_value(bool=false) const
octave_int< int8_t > octave_int8
intNDArray< octave_uint64 > uint64NDArray
builtin_type_t builtin_type(void) const