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); }
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)
251 double res =
elem (0);
267 double res =
elem (0);
281 os << a.
elem (i) <<
"\n";
Array< T > & insert(const Array< T > &a, const Array< octave_idx_type > &idx)
Insert an array into another at a specified position.
void resize(const dim_vector &dv, const T &rfv)
Size of the specified dimension.
double & xelem(octave_idx_type n)
octave_idx_type numel(void) const
Number of elements in the array.
T & elem(octave_idx_type n)
Size of the specified dimension.
const double * data(void) const
const T * fortran_vec(void) const
Size of the specified dimension.
ColumnVector & fill(double val)
ColumnVector stack(const ColumnVector &a) const
ColumnVector abs(void) const
bool operator==(const ColumnVector &a) const
RowVector transpose(void) const
ColumnVector extract(octave_idx_type r1, octave_idx_type r2) const
bool operator!=(const ColumnVector &a) const
ColumnVector extract_n(octave_idx_type r1, octave_idx_type n) const
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 mx_inline_imag(size_t n, T *r, const std::complex< T > *x)
void mx_inline_real(size_t n, T *r, const std::complex< T > *x)
bool mx_inline_equal(size_t n, const T1 *x, const T2 *y)
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
octave_value::octave_value(const Array< char > &chm, char type) return retval