23 #if defined (HAVE_CONFIG_H) 40 "float complex diagonal matrix",
"single");
86 if (! force_conversion)
100 if (! force_conversion)
166 os.
write (reinterpret_cast<char *> (&r), 4);
167 os.
write (reinterpret_cast<char *> (&
c), 4);
173 float max_val, min_val;
190 if (! (
is.read (reinterpret_cast<char *> (&r), 4)
191 &&
is.read (reinterpret_cast<char *> (&
c), 4)
192 &&
is.read (reinterpret_cast<char *> (&
tmp), 1)))
204 static_cast<save_type> (
tmp), 2 * len,
swap, fmt);
218 bool retval =
val.is_complex_scalar () ||
val.is_real_scalar ();
220 x =
val.float_complex_value ();
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)
bool all_integers(float &max_val, float &min_val) const
octave_value map(octave_base_value::unary_mapper_t umap) const
void write_floats(std::ostream &os, const float *data, save_type type, octave_idx_type len)
const T * data(void) const
bool all_elements_are_real(void) const
bool load_binary(std::istream &is, bool swap, octave::mach_info::float_format fmt)
identity matrix If supplied two scalar respectively For allows like xample val
save_type get_save_type(double, double)
const T * fortran_vec(void) const
bool chk_valid_scalar(const octave_value &, FloatComplex &) const
static octave_base_value * default_numeric_conversion_function(const octave_base_value &a)
octave_base_value * try_narrowing_conversion(void)
#define DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(t, n, c)
FloatDiagMatrix abs(void) const
octave_value map(unary_mapper_t umap) const
octave_idx_type rows(void) const
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
void read_floats(std::istream &is, float *data, save_type type, octave_idx_type len, bool swap, octave::mach_info::float_format fmt)
octave_value to_dense(void) const
octave_value resize(const dim_vector &dv, bool fill=false) const
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
FloatComplexDiagMatrix float_complex_diag_matrix_value(bool=false) const
FloatComplexMatrix float_complex_matrix_value(bool=false) const
ComplexColumnVector conj(const ComplexColumnVector &a)
FloatComplexColumnVector extract_diag(octave_idx_type k=0) const
void swap_bytes< 4 >(void *ptr)
octave_idx_type length(void) const
octave_idx_type cols(void) const
ComplexDiagMatrix complex_diag_matrix_value(bool=false) const
octave_idx_type nelem(void) const
std::string type_name(void) const
bool save_binary(std::ostream &os, bool &save_as_floats)
FloatComplexDiagMatrix matrix
Array< U > map(F fcn) const
Apply function fcn to each element of the Array<T>.
void warn_implicit_conversion(const char *id, const char *from, const char *to)
FloatDiagMatrix float_diag_matrix_value(bool=false) const
type_conv_info numeric_conversion_function(void) const
octave_value as_double(void) const
octave_value as_single(void) const
ColumnVector imag(const ComplexColumnVector &a)
octave_idx_type columns(void) const
std::complex< float > FloatComplex
static int static_type_id(void)
octave_base_value * try_narrowing_conversion(void)
octave_idx_type numel(void) const
Number of elements in the array.
ColumnVector real(const ComplexColumnVector &a)
write the output to stdout if nargout is
DiagMatrix diag_matrix_value(bool=false) const
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x