26 #if defined (HAVE_CONFIG_H)
32 #include <type_traits>
63 if (c < 0 || c + a_len >
numel ())
64 (*current_liboctave_error_handler) (
"range error for insert");
98 if (c1 < 0 || c2 < 0 || c1 >=
len || c2 >=
len)
99 (*current_liboctave_error_handler) (
"range error for fill");
101 if (c1 > c2) { std::swap (c1, c2); }
146 if (c1 > c2) { std::swap (c1, c2); }
195 F77_XFCN (sgemv, SGEMV, (F77_CONST_CHAR_ARG2 (
"T", 1),
196 a_nr, a_nc, 1.0, a.
data (),
197 ld, v.
data (), 1, 0.0, y, 1
198 F77_CHAR_ARG_LEN (1)));
213 float res =
elem (0);
229 float res =
elem (0);
244 os <<
' ' << a.
elem (i);
287 unsigned_octave_idx_type
n = n_in;
295 float delta = (x2 - x1) / (
n - 1);
296 unsigned_octave_idx_type n2 =
n/2;
297 for (unsigned_octave_idx_type i = 1; i < n2; i++)
303 retval.
xelem (n2) = (x1 == -x2 ? 0 : (x1 + x2) / 2);
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.
octave_idx_type cols(void) const
octave_idx_type rows(void) const
const T * fortran_vec(void) const
Size of the specified dimension.
FloatColumnVector transpose(void) const
FloatRowVector extract_n(octave_idx_type c1, octave_idx_type n) const
FloatRowVector append(const FloatRowVector &a) const
bool operator!=(const FloatRowVector &a) const
bool operator==(const FloatRowVector &a) const
FloatRowVector & fill(float val)
FloatRowVector & insert(const FloatRowVector &a, octave_idx_type c)
FloatRowVector extract(octave_idx_type c1, octave_idx_type c2) const
MArray< T > transpose(void) const
#define F77_XFCN(f, F, args)
octave_f77_int_type F77_INT
std::ostream & operator<<(std::ostream &os, const FloatRowVector &a)
FloatRowVector operator*(const FloatRowVector &v, const FloatMatrix &a)
FloatRowVector imag(const FloatComplexRowVector &a)
std::istream & operator>>(std::istream &is, FloatRowVector &a)
FloatRowVector real(const FloatComplexRowVector &a)
FloatRowVector linspace(float x1, float x2, octave_idx_type n_in)
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)
std::complex< float > FloatComplex
octave_value::octave_value(const Array< char > &chm, char type) return retval
F77_RET_T F77_FUNC(xerbla, XERBLA)(F77_CONST_CHAR_ARG_DEF(s_arg
subroutine xsdot(n, dx, incx, dy, incy, retval)