42 :
Array<T> (a.as_column ()), d1 (r), d2 (c)
45 if (rcmin != a.
numel ())
53 return extract_diag (k);
65 else if (k > 0 && k <
cols ())
67 else if (k < 0 && -k <
rows ())
104 return check_idx (r, c) ?
elem (r, c) :
zero;
107 template <
typename T>
113 (*current_liboctave_error_handler) (
"can't resize to negative dimensions");
122 template <
typename T>
134 template <
typename T>
140 if (r < 0 || r >=
dim1 ())
143 if (c < 0 || c >=
dim2 ())
void resize(octave_idx_type n, octave_idx_type m, const T &rfv)
octave_idx_type cols(void) const
octave_idx_type rows(void) const
T elem(octave_idx_type r, octave_idx_type c) const
Array< T > diag(octave_idx_type k=0) const
octave_idx_type numel(void) const
Number of elements in the array.
T checkelem(octave_idx_type r, octave_idx_type c) const
void err_index_out_of_range(int nd, int dim, octave_idx_type idx, octave_idx_type ext)
bool check_idx(octave_idx_type r, octave_idx_type c) const
Array< T > extract_diag(octave_idx_type k=0) const
octave_idx_type dim1(void) const
T & elem(octave_idx_type n)
DiagArray2< T > hermitian(T(*fcn)(const T &)=0) const
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &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 F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
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
void resize(const dim_vector &dv, const T &rfv)
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
the exceeded dimensions are set to if fewer subscripts than dimensions are the exceeding dimensions are merged into the final requested dimension For consider the following dims
With real return the complex result
Array< T > array_value(void) const
T & xelem(octave_idx_type n)
N Dimensional Array with copy-on-write semantics.
=val(i)}if ode{val(i)}occurs in table i
DiagArray2< T > transpose(void) const
octave_idx_type dim2(void) const
Vector representing the dimensions (size) of an Array.
charNDArray min(char d, const charNDArray &m)