24 #if defined (HAVE_CONFIG_H) 48 if (len !=
a.numel ())
66 if (r < 0 || r + a_len >
numel ())
67 (*current_liboctave_error_handler) (
"range error for insert");
86 if (r < 0 || r + a_len >
numel ())
87 (*current_liboctave_error_handler) (
"range error for insert");
138 if (r1 < 0 || r2 < 0 || r1 >= len || r2 >= len)
139 (*current_liboctave_error_handler) (
"range error for fill");
160 if (r1 < 0 || r2 < 0 || r1 >= len || r2 >= len)
161 (*current_liboctave_error_handler) (
"range error for fill");
213 return do_mx_unary_map<float, FloatComplex, std::abs> (*this);
219 return do_mx_unary_map<FloatComplex, FloatComplex, std::conj<float>> (
a);
308 F77_INT a_len = octave::to_f77_int (
a.numel ());
323 F77_XFCN (cgemv, CGEMV, (F77_CONST_CHAR_ARG2 (
"N", 1),
326 F77_CHAR_ARG_LEN (1)));
350 F77_INT a_len = octave::to_f77_int (
a.numel ());
355 if (nc == 0 || nr == 0)
375 F77_INT a_len = octave::to_f77_int (
a.numel ());
380 if (nc == 0 || nr == 0)
400 F77_INT a_len = octave::to_f77_int (
a.numel ());
405 if (nc == 0 || nr == 0)
468 os <<
a.elem (
i) <<
"\n";
octave_idx_type rows(void) const
void mx_inline_add2(size_t n, R *r, const X *x)
FloatComplexColumnVector operator*(const FloatComplexMatrix &m, const FloatColumnVector &a)
Template for N-dimensional array classes with like-type math operators.
void mx_inline_sub2(size_t n, R *r, const X *x)
bool operator==(const FloatComplexColumnVector &a) const
FloatComplexColumnVector stack(const FloatColumnVector &a) const
const FloatComplex * data(void) const
FloatComplexColumnVector & operator-=(const FloatColumnVector &a)
MArray< T > hermitian(T(*fcn)(const T &)=nullptr) const
identity matrix If supplied two scalar respectively For allows like xample val
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE * f
FloatComplexColumnVector extract(octave_idx_type r1, octave_idx_type r2) const
const FloatComplex * fortran_vec(void) const
std::istream & operator>>(std::istream &is, FloatComplexColumnVector &a)
FloatComplex & elem(octave_idx_type n)
FloatComplexColumnVector conj(const FloatComplexColumnVector &a)
bool operator!=(const FloatComplexColumnVector &a) const
octave_idx_type rows(void) const
MArray< T > transpose(void) const
#define F77_XFCN(f, F, args)
T elem(octave_idx_type r, octave_idx_type c) const
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
octave_idx_type cols(void) const
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
FloatComplexColumnVector & operator+=(const FloatColumnVector &a)
FloatComplex max(void) const
octave_idx_type cols(void) const
FloatComplexColumnVector extract_n(octave_idx_type r1, octave_idx_type n) const
FloatComplex min(void) const
void err_nonconformant(const char *op, octave_idx_type op1_len, octave_idx_type op2_len)
With real return the complex result
FloatComplexColumnVector(void)
FloatComplex & xelem(octave_idx_type n)
FloatComplexRowVector transpose(void) const
FloatComplexRowVector hermitian(void) const
octave_f77_int_type F77_INT
the element is set to zero In other the statement xample y
#define F77_CONST_CMPLX_ARG(x)
FloatComplexColumnVector & fill(float val)
std::ostream & operator<<(std::ostream &os, const FloatComplexColumnVector &a)
FloatComplexColumnVector & insert(const FloatColumnVector &a, octave_idx_type r)
std::complex< float > FloatComplex
octave_idx_type numel(void) const
Number of elements in the array.
bool mx_inline_equal(size_t n, const T1 *x, const T2 *y)
write the output to stdout if nargout is
FloatColumnVector abs(void) const