41 :
Array<T> (a.as_column ()), d1 (
r), d2 (c)
44 if (rcmin != a.
numel ())
57 else if (k > 0 && k < cols ())
59 else if (k < 0 && -k < rows ())
96 return check_idx (
r, c) ?
elem (
r, c) : zero;
105 (*current_liboctave_error_handler) (
"can't resize to negative dimensions");
107 if (
r != dim1 () || c != dim2 ())
114 template <
typename T>
121 result.
xelem (i, i) = dgelem (i);
126 template <
typename T>
132 if (r < 0 || r >= dim1 ())
135 if (c < 0 || c >= dim2 ())
charNDArray min(char d, const charNDArray &m)
N Dimensional Array with copy-on-write semantics.
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.
void resize(octave_idx_type n, octave_idx_type m, const T &rfv)
Array< T > extract_diag(octave_idx_type k=0) const
T elem(octave_idx_type r, octave_idx_type c) const
T checkelem(octave_idx_type r, octave_idx_type c) const
DiagArray2< T > hermitian(T(*fcn)(const T &)=nullptr) const
Array< T > array_value(void) const
DiagArray2< T > transpose(void) const
bool check_idx(octave_idx_type r, octave_idx_type c) const
Vector representing the dimensions (size) of an Array.
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
void err_index_out_of_range(int nd, int dim, octave_idx_type idx, octave_idx_type ext, const dim_vector &dv)