25 #if ! defined (octave_DiagArray2_h) 26 #define octave_DiagArray2_h 1 28 #include "octave-config.h" 50 :
Array<T> (), d1 (0), d2 (0) { }
64 :
Array<T> (
a), d1 (
a.d1), d2 (
a.d2) { }
103 int ndims (
void)
const {
return 2; }
129 {
return check_idx (r,
c) ?
elem (r,
c) : T (0); }
T xelem(octave_idx_type r, octave_idx_type c) const
void resize(octave_idx_type r, octave_idx_type c)
T dgelem(octave_idx_type i) const
DiagArray2(const DiagArray2< T > &a)
T checkelem(octave_idx_type r, octave_idx_type c) const
const T * data(void) const
T dgxelem(octave_idx_type i) 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)
const T * fortran_vec(void) const
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)
const T * fortran_vec(void) const
T & dgelem(octave_idx_type i)
T & elem(octave_idx_type n)
octave_idx_type rows(void) const
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
octave_idx_type diag_length(void) const
T elem(octave_idx_type r, octave_idx_type c) const
DiagArray2< T > build_diag_matrix() const
size_t byte_size(void) const
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
void resize(octave_idx_type n, octave_idx_type m)
octave_idx_type length(void) const
octave_idx_type cols(void) const
octave_idx_type nelem(void) const
T & dgxelem(octave_idx_type i)
Array< bool > array_value(void) const
DiagArray2(octave_idx_type r, octave_idx_type c, const T &val)
T & xelem(octave_idx_type n)
octave_idx_type numel(void) const
DiagArray2(const Array< T > &a)
N Dimensional Array with copy-on-write semantics.
octave_idx_type dim1(void) const
T::size_type numel(const T &str)
void print_info(std::ostream &os, const std::string &prefix) const
bool & operator()(octave_idx_type n)
dim_vector dims(void) const
octave_idx_type dim2(void) const
octave_idx_type columns(void) const
void print_info(std::ostream &os, const std::string &prefix) const
bool & checkelem(octave_idx_type n)
octave_idx_type numel(void) const
Number of elements in the array.
Vector representing the dimensions (size) of an Array.
octave_idx_type dim1(void) const
size_t byte_size(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 dim2(void) const
const T * data(void) const
charNDArray min(char d, const charNDArray &m)
octave_idx_type nelem(void) const