26 #if ! defined (octave_DiagArray2_h)
27 #define octave_DiagArray2_h 1
29 #include "octave-config.h"
51 :
Array<T> (), d1 (0), d2 (0) { }
65 :
Array<T> (a), d1 (a.d1), d2 (a.d2) { }
69 :
Array<T> (a.extract_diag ()), d1 (a.
dim1 ()), d2 (a.
dim2 ()) { }
102 OCTAVE_DEPRECATED (
"use 'extract_diag' instead")
129 return check_idx (r, c) ?
elem (r, c) : T (0);
134 #if defined (OCTAVE_ENABLE_BOUNDS_CHECK)
145 #if defined (OCTAVE_ENABLE_BOUNDS_CHECK)
const T * fortran_vec(void) const
DiagArray2(const DiagArray2< T > &a)
T elem(octave_idx_type r, octave_idx_type c) const
octave_idx_type dim1(void) const
dim_vector dims(void) const
octave_idx_type numel(void) const
Number of elements in the array.
size_t byte_size(void) const
identity matrix If supplied two scalar respectively For allows like xample val
DiagArray2(const DiagArray2< U > &a)
SparseBoolMatrix & operator=(const SparseBoolMatrix &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
octave_idx_type nelem(void) const
octave_idx_type rows(void) const
const T * data(void) const
T & dgelem(octave_idx_type i)
octave_idx_type dim1(void) const
T & elem(octave_idx_type n)
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
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
nd deftypefn *octave_map m
bool & operator()(octave_idx_type n)
void resize(octave_idx_type r, octave_idx_type c)
void print_info(std::ostream &os, const std::string &prefix) const
const T * data(void) const
T & dgxelem(octave_idx_type i)
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
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
N Dimensional Array with copy-on-write semantics.
T::size_type numel(const T &str)
=val(i)}if ode{val(i)}occurs in table i
void print_info(std::ostream &os, const std::string &prefix) const
bool & checkelem(octave_idx_type n)
octave_idx_type columns(void) const
octave_idx_type diag_length(void) const
SparseBoolMatrix diag(octave_idx_type k=0) const
const T * fortran_vec(void) const
octave_idx_type dim2(void) const
octave_idx_type dim2(void) const
Vector representing the dimensions (size) of an Array.
octave_idx_type numel(void) const
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Array< T > & operator=(const Array< T > &a)
octave_idx_type length(void) const
charNDArray min(char d, const charNDArray &m)
Array< bool > array_value(void) const