26 #if !defined (octave_DiagArray2_h)
27 #define octave_DiagArray2_h 1
49 :
Array<T> (), d1 (0), d2 (0) { }
58 :
Array<T> (a.as_column ()), d1 (a.numel ()), d2 (a.numel ()) { }
63 :
Array<T> (a), d1 (a.d1), d2 (a.d2) { }
67 :
Array<T> (a.extract_diag ()), d1 (a.dim1 ()), d2 (a.dim2 ()) { }
129 return check_idx (r, c) ?
elem (r, c) : T (0);
134 #if defined (BOUNDS_CHECKING)
135 return checkelem (r, c);
144 return check_idx (r, c) ?
elem (r, c) : zero;
149 #if defined (BOUNDS_CHECKING)
150 return checkelem (r, c);
186 void print_info (std::ostream& os,
const std::string& prefix)
const
T & elem(octave_idx_type r, octave_idx_type c)
const T * fortran_vec(void) const
DiagArray2(const DiagArray2< T > &a)
T elem(octave_idx_type r, octave_idx_type c) const
ComplexSVD & operator=(const ComplexSVD &a)
octave_idx_type dim1(void) const
dim_vector dims(void) const
size_t byte_size(void) const
DiagArray2(const DiagArray2< U > &a)
DiagArray2(octave_idx_type r, octave_idx_type c)
static void transpose(octave_idx_type N, const octave_idx_type *ridx, const octave_idx_type *cidx, octave_idx_type *ridx2, octave_idx_type *cidx2)
T checkelem(octave_idx_type r, octave_idx_type c) const
T & checkelem(octave_idx_type r, octave_idx_type c)
octave_idx_type rows(void) const
const T * data(void) const
T & dgelem(octave_idx_type i)
T & elem(octave_idx_type n)
T dgelem(octave_idx_type i) const
size_t byte_size(void) const
void resize(octave_idx_type n, octave_idx_type m)
T xelem(octave_idx_type r, octave_idx_type c) const
T dgxelem(octave_idx_type i) const
octave_idx_type nelem(void) const
void print_info(std::ostream &os, const std::string &prefix) const
const T * data(void) const
T & dgxelem(octave_idx_type i)
DiagArray2(octave_idx_type r, octave_idx_type c, const T &val)
T & xelem(octave_idx_type n)
DiagArray2(const Array< T > &a)
octave_idx_type cols(void) const
Handles the reference counting for all the derived classes.
octave_idx_type length(void) const
Number of elements in the array.
void print_info(std::ostream &os, const std::string &prefix) const
octave_idx_type columns(void) const
octave_idx_type diag_length(void) const
const T * fortran_vec(void) const
octave_idx_type dim2(void) const
octave_idx_type numel(void) const
Array< T > & operator=(const Array< T > &a)
octave_idx_type length(void) const
charNDArray min(char d, const charNDArray &m)