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<float, float, 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 (sgemv, SGEMV, (F77_CONST_CHAR_ARG2 (
"N", 1),
202 nr, nc, 1.0f,
m.data (), nr,
203 a.
data (), 1, 0.0f, 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 float res =
elem (0);
267 float 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.
T & xelem(octave_idx_type n)
Size of the specified dimension.
octave_idx_type numel(void) const
Number of elements in the array.
T & elem(octave_idx_type n)
Size of the specified dimension.
const T * data(void) const
Size of the specified dimension.
const T * fortran_vec(void) const
Size of the specified dimension.
bool operator!=(const FloatColumnVector &a) const
FloatColumnVector stack(const FloatColumnVector &a) const
FloatColumnVector & insert(const FloatColumnVector &a, octave_idx_type r)
FloatColumnVector extract_n(octave_idx_type r1, octave_idx_type n) const
bool operator==(const FloatColumnVector &a) const
FloatRowVector transpose(void) const
FloatColumnVector extract(octave_idx_type r1, octave_idx_type r2) const
FloatColumnVector abs(void) const
FloatColumnVector & fill(float val)
MArray< T > transpose(void) const
#define F77_XFCN(f, F, args)
octave_f77_int_type F77_INT
std::ostream & operator<<(std::ostream &os, const FloatColumnVector &a)
FloatColumnVector operator*(const FloatMatrix &m, const FloatColumnVector &a)
std::istream & operator>>(std::istream &is, FloatColumnVector &a)
FloatColumnVector real(const FloatComplexColumnVector &a)
FloatColumnVector imag(const FloatComplexColumnVector &a)
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