26 #if defined (HAVE_CONFIG_H)
32 #include <type_traits>
65 if (c < 0 || c + a_len >
numel ())
66 (*current_liboctave_error_handler) (
"range error for insert");
85 if (c < 0 || c + a_len >
numel ())
86 (*current_liboctave_error_handler) (
"range error for insert");
136 if (c1 < 0 || c2 < 0 || c1 >=
len || c2 >=
len)
137 (*current_liboctave_error_handler) (
"range error for fill");
139 if (c1 > c2) { std::swap (c1, c2); }
158 if (c1 < 0 || c2 < 0 || c1 >=
len || c2 >=
len)
159 (*current_liboctave_error_handler) (
"range error for fill");
161 if (c1 > c2) { std::swap (c1, c2); }
211 return do_mx_unary_map<FloatComplex, FloatComplex, std::conj<float>> (a);
219 if (c1 > c2) { std::swap (c1, c2); }
308 F77_XFCN (cgemv, CGEMV, (F77_CONST_CHAR_ARG2 (
"T", 1),
311 F77_CHAR_ARG_LEN (1)));
373 os <<
' ' << a.
elem (i);
446 unsigned_octave_idx_type
n = n_in;
455 unsigned_octave_idx_type n2 =
n/2;
456 for (unsigned_octave_idx_type i = 1; i < n2; i++)
458 retval.
xelem (i) = x1 +
static_cast<float> (i)*delta;
459 retval.
xelem (
n-1-i) = x2 -
static_cast<float> (i)*delta;
462 retval.
xelem (n2) = (x1 == -x2 ? 0 : (x1 + x2) / 2.0f);
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.
FloatComplex min(void) const
FloatComplexColumnVector hermitian(void) const
FloatComplexRowVector append(const FloatRowVector &a) const
bool operator!=(const FloatComplexRowVector &a) const
FloatComplexRowVector & operator+=(const FloatRowVector &a)
FloatComplex max(void) const
FloatComplexRowVector & fill(float val)
FloatComplexRowVector & insert(const FloatRowVector &a, octave_idx_type c)
FloatComplexRowVector extract_n(octave_idx_type c1, octave_idx_type n) const
FloatComplexColumnVector transpose(void) const
FloatComplexRowVector extract(octave_idx_type c1, octave_idx_type c2) const
FloatComplexRowVector & operator-=(const FloatRowVector &a)
bool operator==(const FloatComplexRowVector &a) const
MArray< T > hermitian(T(*fcn)(const T &)=nullptr) const
MArray< T > transpose(void) const
#define F77_CONST_CMPLX_ARG(x)
#define F77_XFCN(f, F, args)
octave_f77_int_type F77_INT
std::ostream & operator<<(std::ostream &os, const FloatComplexRowVector &a)
FloatComplexRowVector operator*(const FloatComplexRowVector &v, const FloatComplexMatrix &a)
FloatComplexRowVector linspace(const FloatComplex &x1, const FloatComplex &x2, octave_idx_type n_in)
std::istream & operator>>(std::istream &is, FloatComplexRowVector &a)
FloatComplexRowVector conj(const FloatComplexRowVector &a)
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
void mx_inline_add2(size_t n, R *r, const X *x)
void mx_inline_sub2(size_t n, R *r, const X *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
subroutine xcdotu(n, zx, incx, zy, incy, retval)
F77_RET_T F77_FUNC(xerbla, XERBLA)(F77_CONST_CHAR_ARG_DEF(s_arg