25 #if defined (HAVE_CONFIG_H)
45 if (len != a.
numel ())
61 if (r < 0 || r + a_len >
numel ())
62 (*current_liboctave_error_handler) (
"range error for insert");
96 if (r1 < 0 || r2 < 0 || r1 >= len || r2 >= len)
97 (*current_liboctave_error_handler) (
"range error for fill");
119 retval.insert (a, nr_insert);
132 return do_mx_unary_map<double, double, std::abs> (*this);
200 F77_XFCN (dgemv, DGEMV, (F77_CONST_CHAR_ARG2 (
"N", 1),
201 nr, nc, 1.0, m.
data (), nr,
202 a.
data (), 1, 0.0,
y, 1
203 F77_CHAR_ARG_LEN (1)));
225 if (nr == 0 || nc == 0)
235 retval.
elem (
i) = 0.0;
250 double res =
elem (0);
266 double res =
elem (0);
280 os << a.
elem (
i) <<
"\n";
ColumnVector & fill(double val)
ColumnVector operator*(const Matrix &m, const ColumnVector &a)
bool operator==(const ColumnVector &a) const
T elem(octave_idx_type r, octave_idx_type c) const
void clear(octave_idx_type n)
octave_idx_type numel(void) const
Number of elements in the array.
identity matrix If supplied two scalar respectively For allows like xample val
std::istream & operator>>(std::istream &is, ColumnVector &a)
void mx_inline_real(size_t n, T *r, const std::complex< T > *x)
octave_idx_type rows(void) const
MArray< T > transpose(void) const
T & elem(octave_idx_type n)
#define F77_XFCN(f, F, args)
octave_idx_type rows(void) const
RowVector transpose(void) const
void mx_inline_imag(size_t n, T *r, const std::complex< T > *x)
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
nd deftypefn *octave_map m
ColumnVector abs(void) const
ColumnVector extract_n(octave_idx_type r1, octave_idx_type n) const
const double * data(void) const
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
With real return the complex result
double & xelem(octave_idx_type n)
octave_idx_type cols(void) const
bool operator!=(const ColumnVector &a) const
=val(i)}if ode{val(i)}occurs in table i
ColumnVector & insert(const ColumnVector &a, octave_idx_type r)
the element is set to zero In other the statement xample y
ColumnVector imag(const ComplexColumnVector &a)
std::ostream & operator<<(std::ostream &os, const ColumnVector &a)
const T * fortran_vec(void) const
ColumnVector real(const ComplexColumnVector &a)
bool mx_inline_equal(size_t n, const T1 *x, const T2 *y)
octave_idx_type cols(void) const
write the output to stdout if nargout is
ColumnVector stack(const ColumnVector &a) const
ColumnVector extract(octave_idx_type r1, octave_idx_type r2) const
void resize(octave_idx_type n, const double &rfv=0)