26 #if ! defined (octave_DiagArray2_h)
27 #define octave_DiagArray2_h 1
29 #include "octave-config.h"
52 :
Array<T> (), m_d1 (0), m_d2 (0) { }
66 :
Array<T> (a), m_d1 (a.m_d1), m_d2 (a.m_d2) { }
70 :
Array<T> (a.extract_diag ()), m_d1 (a.dim1 ()), m_d2 (a.dim2 ()) { }
131 {
return check_idx (
r, c) ? elem (
r, c) : T (0); }
173 void print_info (std::ostream& os,
const std::string& prefix)
const
charNDArray min(char d, const charNDArray &m)
T & elem(octave_idx_type n)
Size of the specified dimension.
T * fortran_vec()
Size of the specified dimension.
std::size_t byte_size() const
Size of the specified dimension.
const T * data() const
Size of the specified dimension.
Array< T, Alloc > & operator=(const Array< T, Alloc > &a)
void print_info(std::ostream &os, const std::string &prefix) const
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.
T & dgelem(octave_idx_type i)
void print_info(std::ostream &os, const std::string &prefix) const
octave_idx_type nelem() const
octave_idx_type rows() const
T dgelem(octave_idx_type i) const
DiagArray2(octave_idx_type r, octave_idx_type c, const T &val)
void resize(octave_idx_type n, octave_idx_type m)
octave_idx_type length() const
T elem(octave_idx_type r, octave_idx_type c) const
DiagArray2< T > build_diag_matrix() const
T checkelem(octave_idx_type r, octave_idx_type c) const
T & dgxelem(octave_idx_type i)
octave_idx_type dim2() const
T xelem(octave_idx_type r, octave_idx_type c) const
DiagArray2(const DiagArray2< T > &a)
octave_idx_type columns() const
DiagArray2(const Array< T > &a)
octave_idx_type cols() const
octave_idx_type dim1() const
DiagArray2(octave_idx_type r, octave_idx_type c)
octave_idx_type diag_length() const
std::size_t byte_size() const
DiagArray2(const DiagArray2< U > &a)
octave_idx_type numel() const
T dgxelem(octave_idx_type i) const
Vector representing the dimensions (size) of an Array.
T::size_type numel(const T &str)