42 :
Array<T> (a.as_column ()), d1 (r), d2 (c)
53 return extract_diag (k);
65 else if (k > 0 && k < cols ())
67 else if (k < 0 && -k < rows ())
98 (*current_liboctave_error_handler) (
"can't resize to negative dimensions");
102 if (r != dim1 () || c != dim2 ())
116 result.
xelem (i, i) = dgelem (i);
121 template <
typename T>
127 if (r < 0 || r >= dim1 ())
133 if (c < 0 || c >= dim2 ())
void resize(octave_idx_type n, octave_idx_type m, const T &rfv)
bool check_idx(octave_idx_type r, octave_idx_type c) const
Array< T > extract_diag(octave_idx_type k=0) const
DiagArray2< T > hermitian(T(*fcn)(const T &)=0) const
F77_RET_T const double const double double * d
static void gripe_index_out_of_range(void)
void resize(const dim_vector &dv, const T &rfv)
Array< T > array_value(void) const
T & xelem(octave_idx_type n)
Array< T > diag(octave_idx_type k=0) const GCC_ATTR_DEPRECATED
Handles the reference counting for all the derived classes.
octave_idx_type length(void) const
Number of elements in the array.
DiagArray2< T > transpose(void) const
charNDArray min(char d, const charNDArray &m)