41 :
Array<T> (a.as_column ()), m_d1 (
r), m_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 ())
133 octave::err_index_out_of_range (2, 1,
r+1, dim1 (), dims ());
135 if (c < 0 || c >= dim2 ())
136 octave::err_index_out_of_range (2, 2, c+1, dim2 (), dims ());
charNDArray min(char d, const charNDArray &m)
T & elem(octave_idx_type n)
Size of the specified dimension.
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() const
Number of elements in the array.
void resize(octave_idx_type n, octave_idx_type m, const T &rfv)
Array< T > array_value() const
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
DiagArray2< T > transpose() const
Vector representing the dimensions (size) of an Array.
F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d