26 #if defined (HAVE_CONFIG_H)
62 if (r < 0 || r + a_len >
numel ())
63 (*current_liboctave_error_handler) (
"range error for insert");
97 if (r1 < 0 || r2 < 0 || r1 >=
len || r2 >=
len)
98 (*current_liboctave_error_handler) (
"range error for fill");
100 if (r1 > r2) { std::swap (r1, r2); }
120 retval.
insert (a, nr_insert);
133 return do_mx_unary_map<double, double, std::abs> (*
this);
153 if (r1 > r2) { std::swap (r1, r2); }
183 F77_INT nr = octave::to_f77_int (
m.rows ());
184 F77_INT nc = octave::to_f77_int (
m.cols ());
201 F77_XFCN (dgemv, DGEMV, (F77_CONST_CHAR_ARG2 (
"N", 1),
202 nr, nc, 1.0,
m.data (), nr,
203 a.
data (), 1, 0.0, y, 1
204 F77_CHAR_ARG_LEN (1)));
218 F77_INT nr = octave::to_f77_int (
m.rows ());
219 F77_INT nc = octave::to_f77_int (
m.cols ());
226 if (nr == 0 || nc == 0)
233 retval.
elem (i) = a.
elem (i) *
m.elem (i, i);
236 retval.
elem (i) = 0.0;
251 double res =
elem (0);
267 double res =
elem (0);
281 os << a.
elem (i) <<
"\n";
OCTARRAY_OVERRIDABLE_FUNC_API const double * data(void) const
OCTARRAY_OVERRIDABLE_FUNC_API void make_unique(void)
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type numel(void) const
Number of elements in the array.
OCTARRAY_API T * fortran_vec(void)
Size of the specified dimension.
OCTARRAY_OVERRIDABLE_FUNC_API T & elem(octave_idx_type n)
Size of the specified dimension.
OCTARRAY_OVERRIDABLE_FUNC_API double & xelem(octave_idx_type n)
OCTAVE_API double max(void) const
void resize(octave_idx_type n, const double &rfv=0)
OCTAVE_API ColumnVector & fill(double val)
OCTAVE_API ColumnVector stack(const ColumnVector &a) const
OCTAVE_API ColumnVector abs(void) const
OCTAVE_API bool operator==(const ColumnVector &a) const
void clear(octave_idx_type n)
OCTAVE_API RowVector transpose(void) const
OCTAVE_API double min(void) const
OCTAVE_API ColumnVector extract(octave_idx_type r1, octave_idx_type r2) const
OCTAVE_API bool operator!=(const ColumnVector &a) const
OCTAVE_API ColumnVector extract_n(octave_idx_type r1, octave_idx_type n) const
OCTAVE_API ColumnVector & insert(const ColumnVector &a, octave_idx_type r)
MArray< T > transpose(void) const
ColumnVector operator*(const Matrix &m, const ColumnVector &a)
ColumnVector real(const ComplexColumnVector &a)
ColumnVector imag(const ComplexColumnVector &a)
std::ostream & operator<<(std::ostream &os, const ColumnVector &a)
std::istream & operator>>(std::istream &is, ColumnVector &a)
#define F77_XFCN(f, F, args)
octave_f77_int_type F77_INT
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
bool mx_inline_equal(std::size_t n, const T1 *x, const T2 *y)
void mx_inline_real(std::size_t n, T *r, const std::complex< T > *x)
void mx_inline_imag(std::size_t n, T *r, const std::complex< T > *x)