24 #if defined (HAVE_CONFIG_H) 44 if (len !=
a.numel ())
60 if (r < 0 || r + a_len >
numel ())
61 (*current_liboctave_error_handler) (
"range error for insert");
95 if (r1 < 0 || r2 < 0 || r1 >= len || r2 >= len)
96 (*current_liboctave_error_handler) (
"range error for fill");
131 return do_mx_unary_map<float, float, std::abs> (*this);
184 F77_INT a_len = octave::to_f77_int (
a.numel ());
197 float *
y =
retval.fortran_vec ();
199 F77_XFCN (sgemv, SGEMV, (F77_CONST_CHAR_ARG2 (
"N", 1),
200 nr, nc, 1.0
f, m.
data (), nr,
201 a.data (), 1, 0.0f,
y, 1
202 F77_CHAR_ARG_LEN (1)));
219 F77_INT a_len = octave::to_f77_int (
a.numel ());
224 if (nr == 0 || nc == 0)
249 float res =
elem (0);
265 float res =
elem (0);
279 os <<
a.elem (
i) <<
"\n";
octave_idx_type rows(void) const
FloatColumnVector stack(const FloatColumnVector &a) const
const float * data(void) const
FloatColumnVector abs(void) const
FloatColumnVector operator*(const FloatMatrix &m, const FloatColumnVector &a)
FloatColumnVector & fill(float val)
identity matrix If supplied two scalar respectively For allows like xample val
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 const F77_DBLE * f
void mx_inline_real(size_t n, T *r, const std::complex< T > *x)
float & elem(octave_idx_type n)
octave_idx_type rows(void) const
MArray< T > transpose(void) const
#define F77_XFCN(f, F, args)
T elem(octave_idx_type r, octave_idx_type c) const
void mx_inline_imag(size_t n, T *r, const std::complex< T > *x)
octave_idx_type cols(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
FloatColumnVector extract(octave_idx_type r1, octave_idx_type r2) const
FloatRowVector transpose(void) const
octave_idx_type cols(void) const
bool operator==(const FloatColumnVector &a) const
std::ostream & operator<<(std::ostream &os, const FloatColumnVector &a)
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
FloatColumnVector & insert(const FloatColumnVector &a, octave_idx_type r)
bool operator!=(const FloatColumnVector &a) const
With real return the complex result
FloatColumnVector imag(const FloatComplexColumnVector &a)
float & xelem(octave_idx_type n)
octave_f77_int_type F77_INT
FloatColumnVector real(const FloatComplexColumnVector &a)
the element is set to zero In other the statement xample y
std::istream & operator>>(std::istream &is, FloatColumnVector &a)
octave_idx_type numel(void) const
Number of elements in the array.
bool mx_inline_equal(size_t n, const T1 *x, const T2 *y)
write the output to stdout if nargout is
FloatColumnVector extract_n(octave_idx_type r1, octave_idx_type n) const