#include "dRowVector.h"
Public Types | |
typedef bool(* | compare_fcn_type) (typename ref_param< double >::type, typename ref_param< double >::type) |
typedef ref_param< double >::type | crefT |
typedef double | element_type |
typedef octave_idx_type | size_type |
Used for operator(), and returned by numel() and size() (beware: signed integer) More... | |
typedef double | value_type |
Public Member Functions | |
RowVector (const Array< double > &a) | |
RowVector (const dim_vector &dv) | |
RowVector (const MArray< double > &a) | |
RowVector (const RowVector &a) | |
RowVector (octave_idx_type n) | |
RowVector (octave_idx_type n, double val) | |
RowVector (void) | |
OCTAVE_API RowVector | append (const RowVector &a) const |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | as_column (void) const |
Return the array as a column vector. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | as_matrix (void) const |
Return the array as a matrix. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | as_row (void) const |
Return the array as a row vector. More... | |
OCTARRAY_API void | changesign (void) |
OCTARRAY_API void | clear (const dim_vector &dv) |
void | clear (octave_idx_type n) |
void | clear (octave_idx_type r, octave_idx_type c) |
OCTARRAY_API void | clear (void) |
OCTAVE_API RowVector | extract (octave_idx_type c1, octave_idx_type c2) const |
OCTAVE_API RowVector | extract_n (octave_idx_type c1, octave_idx_type n) const |
OCTARRAY_API void | fill (const double &val) |
OCTAVE_API RowVector & | fill (double val) |
OCTAVE_API RowVector & | fill (double val, octave_idx_type c1, octave_idx_type c2) |
OCTINTERP_API Array< octave_idx_type > | find (octave_idx_type, bool) const |
OCTAVE_API Array< octave_idx_type > | find (octave_idx_type, bool) const |
MArray< double > | hermitian (double(*fcn)(const double &)=nullptr) const |
OCTARRAY_API void | idx_add (const octave::idx_vector &idx, const MArray< double > &vals) |
OCTARRAY_API void | idx_add (const octave::idx_vector &idx, double val) |
Performs indexed accumulative addition. More... | |
OCTARRAY_API void | idx_add_nd (const octave::idx_vector &idx, const MArray< double > &vals, int dim=-1) |
OCTARRAY_API void | idx_max (const octave::idx_vector &idx, const MArray< double > &vals) |
OCTARRAY_API void | idx_min (const octave::idx_vector &idx, const MArray< double > &vals) |
OCTAVE_API RowVector & | insert (const RowVector &a, octave_idx_type c) |
MArray< double > | ipermute (const Array< octave_idx_type > &vec) const |
OCTINTERP_API sortmode | is_sorted_rows (sortmode) const |
OCTAVE_API sortmode | is_sorted_rows (sortmode) const |
OCTAVE_API sortmode | issorted (sortmode mode) const |
OCTINTERP_API sortmode | issorted (sortmode) const |
OCTAVE_API sortmode | issorted (sortmode) const |
OCTINTERP_API Array< octave_idx_type > | lookup (const Array< octave::cdef_object > &, sortmode) const |
OCTAVE_API Array< octave_idx_type > | lookup (const Array< octave::idx_vector > &, sortmode) const |
OCTINTERP_API octave_idx_type | lookup (octave::cdef_object const &, sortmode) const |
OCTAVE_API octave_idx_type | lookup (octave::idx_vector const &, sortmode) const |
OCTARRAY_OVERRIDABLE_FUNC_API void | make_unique (void) |
OCTAVE_API double | max (void) const |
OCTAVE_API double | min (void) const |
OCTINTERP_API octave_idx_type | nnz (void) const |
OCTAVE_API octave_idx_type | nnz (void) const |
OCTINTERP_API Array< octave::cdef_object > | nth_element (const octave::idx_vector &, int) const |
OCTAVE_API Array< octave::idx_vector > | nth_element (const octave::idx_vector &, int) const |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | numel (void) const |
Number of elements in the array. More... | |
OCTAVE_API bool | operator!= (const RowVector &a) const |
RowVector & | operator= (const RowVector &a) |
OCTAVE_API bool | operator== (const RowVector &a) const |
MArray< double > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
MArray< double > | reshape (const dim_vector &new_dims) const |
void | resize (octave_idx_type n, const double &rfv=0) |
OCTINTERP_API Array< octave::cdef_object > | sort (Array< octave_idx_type > &sidx, int, sortmode) const |
OCTAVE_API Array< octave::idx_vector > | sort (Array< octave_idx_type > &sidx, int, sortmode) const |
OCTINTERP_API Array< octave::cdef_object > | sort (int, sortmode) const |
OCTAVE_API Array< octave::idx_vector > | sort (int, sortmode) const |
OCTINTERP_API Array< octave_idx_type > | sort_rows_idx (sortmode) const |
OCTAVE_API Array< octave_idx_type > | sort_rows_idx (sortmode) const |
MArray | squeeze (void) const |
OCTAVE_API ColumnVector | transpose (void) const |
First dimension | |
Get the first dimension of the array (number of rows) | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | dim1 (void) const |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | rows (void) const |
Second dimension | |
Get the second dimension of the array (number of columns) | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | dim2 (void) const |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | cols (void) const |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | columns (void) const |
Protected Attributes | |
dim_vector | m_dimensions |
Array< double, Alloc >::ArrayRep * | m_rep |
double * | m_slice_data |
octave_idx_type | m_slice_len |
Private Member Functions | |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTARRAY_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
Static Private Member Functions | |
static OCTARRAY_API void | instantiation_guard () |
static OCTARRAY_API Array< double, Alloc >::ArrayRep * | nil_rep (void) |
Friends | |
OCTAVE_API RowVector | imag (const ComplexRowVector &a) |
OCTAVE_API RowVector | operator* (const RowVector &a, const Matrix &b) |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const RowVector &a) |
OCTAVE_API std::istream & | operator>> (std::istream &is, RowVector &a) |
OCTAVE_API RowVector | real (const ComplexRowVector &a) |
Third dimension | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | reshape (octave_idx_type nr, octave_idx_type nc) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | hermitian (double(*fcn)(const double &)=nullptr) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | dim3 (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | pages (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API size_type | size (const size_type d) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API std::size_t | byte_size (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API const dim_vector & | dims (void) const |
Return a const-reference so that dims ()(i) works efficiently. More... | |
OCTARRAY_API octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_API octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_API octave_idx_type | compute_index (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type | compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | xelem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (octave_idx_type n) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | xelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | xelem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | xelem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_API double & | checkelem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_API double & | checkelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_API double & | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_API double & | checkelem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. More... | |
OCTARRAY_API crefT | checkelem (octave_idx_type n) const |
Size of the specified dimension. More... | |
OCTARRAY_API crefT | checkelem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_API crefT | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_API crefT | checkelem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | elem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | elem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | elem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | elem (octave_idx_type n) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | elem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | elem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | operator() (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | operator() (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API double & | operator() (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | operator() (octave_idx_type n) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | operator() (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API crefT | operator() (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | column (octave_idx_type k) const |
Extract column: A(:,k+1). More... | |
OCTARRAY_API Array< double, Alloc > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). More... | |
OCTARRAY_API Array< double, Alloc > | linear_slice (octave_idx_type lo, octave_idx_type up) const |
Extract a slice from this array as a column vector: A(:)(lo+1:up). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | issquare (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | isempty (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | isvector (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | is_nd_vector (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API const double * | data (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API double * | fortran_vec (void) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool | is_shared (void) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API int | ndims (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const octave::idx_vector &i) const |
Indexing without resizing. More... | |
OCTARRAY_API Array< double, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const Array< octave::idx_vector > &ia) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const octave::idx_vector &i, bool resize_ok, const double &rfv) const |
Indexing with possible resizing and fill. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | index (const octave::idx_vector &i, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok, const double &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok, const double &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< double, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok) const |
Size of the specified dimension. More... | |
virtual OCTARRAY_API double | resize_fill_value (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize2 (octave_idx_type nr, octave_idx_type nc, const double &rfv) |
Resizing (with fill). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | resize2 (octave_idx_type nr, octave_idx_type nc) |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize1 (octave_idx_type n, const double &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | resize1 (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize (const dim_vector &dv, const double &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | resize (const dim_vector &dv) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const octave::idx_vector &i, const Array< double, Alloc > &rhs, const double &rfv) |
Indexed assignment (always with resize & fill). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const octave::idx_vector &i, const Array< double, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< double, Alloc > &rhs, const double &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< double, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const Array< octave::idx_vector > &ia, const Array< double, Alloc > &rhs, const double &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const Array< octave::idx_vector > &ia, const Array< double, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | delete_elements (const octave::idx_vector &i) |
Deleting elements. More... | |
OCTARRAY_API void | delete_elements (int dim, const octave::idx_vector &i) |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon) More... | |
OCTARRAY_API void | delete_elements (const Array< octave::idx_vector > &ia) |
Dispatcher to the above two. More... | |
OCTARRAY_API Array< double, Alloc > & | insert (const Array< double, Alloc > &a, const Array< octave_idx_type > &idx) |
Insert an array into another at a specified position. More... | |
OCTARRAY_API Array< double, Alloc > & | insert (const Array< double, Alloc > &a, octave_idx_type r, octave_idx_type c) |
This is just a special case for idx = [r c 0 ...]. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | maybe_economize (void) |
Size of the specified dimension. More... | |
OCTARRAY_API void | print_info (std::ostream &os, const std::string &prefix) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | sort (int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< double, Alloc > | sort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. More... | |
OCTARRAY_API sortmode | issorted (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. More... | |
OCTARRAY_API Array< octave_idx_type > | sort_rows_idx (sortmode mode=ASCENDING) const |
Sort by rows returns only indices. More... | |
OCTARRAY_API sortmode | is_sorted_rows (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. More... | |
OCTARRAY_API octave_idx_type | lookup (const double &value, sortmode mode=UNSORTED) const |
Do a binary lookup in a sorted array. More... | |
OCTARRAY_API Array< octave_idx_type > | lookup (const Array< double, Alloc > &values, sortmode mode=UNSORTED) const |
Ditto, but for an array of values, specializing on the case when values are sorted. More... | |
OCTARRAY_API octave_idx_type | nnz (void) const |
Count nonzero elements. More... | |
OCTARRAY_API Array< octave_idx_type > | find (octave_idx_type n=-1, bool backward=false) const |
Find indices of (at most n) nonzero elements. More... | |
OCTARRAY_API Array< double, Alloc > | nth_element (const octave::idx_vector &n, int dim=0) const |
Returns the n-th element in increasing order, using the same ordering as used for sort. More... | |
OCTARRAY_API Array< double, Alloc > | diag (octave_idx_type k=0) const |
Get the kth super or subdiagonal. More... | |
OCTARRAY_API Array< double, Alloc > | diag (octave_idx_type m, octave_idx_type n) const |
Size of the specified dimension. More... | |
Array< U, A > | map (F fcn) const |
Apply function fcn to each element of the Array<T, Alloc>. More... | |
Array< U, A > | map (U(&fcn)(double)) const |
Overloads for function references. More... | |
Array< U, A > | map (U(&fcn)(const double &)) const |
Size of the specified dimension. More... | |
bool | test (F fcn) const |
Generic any/all test functionality with arbitrary predicate. More... | |
bool | test_any (F fcn) const |
Simpler calls. More... | |
bool | test_any (bool(&fcn)(double)) const |
Overloads for function references. More... | |
bool | test_any (bool(&fcn)(const double &)) const |
Size of the specified dimension. More... | |
bool | test_all (F fcn) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(double)) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(const double &)) const |
Size of the specified dimension. More... | |
OCTARRAY_API bool | optimize_dimensions (const dim_vector &dv) |
Returns true if this->dims () == dv, and if so, replaces this->m_dimensions by a shallow copy of dv. More... | |
static OCTARRAY_API Array< double, Alloc > | cat (int dim, octave_idx_type n, const Array< double, Alloc > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
Definition at line 34 of file dRowVector.h.
|
inherited |
|
inherited |
|
inherited |
|
inline |
Definition at line 40 of file dRowVector.h.
|
inlineexplicit |
Definition at line 42 of file dRowVector.h.
|
inlineexplicit |
Definition at line 45 of file dRowVector.h.
|
inline |
Definition at line 47 of file dRowVector.h.
|
inline |
Definition at line 50 of file dRowVector.h.
|
inline |
Definition at line 52 of file dRowVector.h.
|
inline |
Definition at line 54 of file dRowVector.h.
Definition at line 115 of file dRowVector.cc.
References insert(), len, Array< T, Alloc >::numel(), and Array< double >::numel().
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 763 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Indexed assignment (always with resize & fill).
Definition at line 745 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 753 of file Array-base.cc.
|
staticinherited |
Concatenation along a specified (0-based) dimension, equivalent to cat().
dim = -1 corresponds to dim = 0 and dim = -2 corresponds to dim = 1, but apply the looser matching rules of vertcat/horzcat.
Definition at line 854 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 560 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 593 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 556 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 588 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 558 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 590 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 554 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 586 of file Array-base.cc.
|
inherited |
Definition at line 407 of file Array-base.cc.
|
inline |
Definition at line 105 of file dRowVector.h.
References Array< T, Alloc >::clear(), and n.
Referenced by linspace().
|
inlineinherited |
Definition at line 406 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Extract column: A(:,k+1).
Definition at line 625 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 514 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 510 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 512 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Dispatcher to the above two.
Definition at line 781 of file Array-base.cc.
|
inherited |
Deleting elements.
A(I) = [] (with a single subscript)
Definition at line 775 of file Array-base.cc.
|
inherited |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon)
Definition at line 778 of file Array-base.cc.
|
inherited |
Get the kth super or subdiagonal.
The zeroth diagonal is the ordinary diagonal.
Definition at line 845 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 847 of file Array-base.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
RowVector RowVector::extract | ( | octave_idx_type | c1, |
octave_idx_type | c2 | ||
) | const |
Definition at line 144 of file dRowVector.cc.
References Array< double >::elem(), and Array< T, Alloc >::xelem().
RowVector RowVector::extract_n | ( | octave_idx_type | c1, |
octave_idx_type | n | ||
) | const |
Definition at line 159 of file dRowVector.cc.
References Array< double >::elem(), n, and Array< T, Alloc >::xelem().
Definition at line 404 of file Array-base.cc.
RowVector & RowVector::fill | ( | double | val | ) |
Definition at line 78 of file dRowVector.cc.
References len, Array< double >::make_unique(), Array< double >::numel(), and Array< double >::xelem().
RowVector & RowVector::fill | ( | double | val, |
octave_idx_type | c1, | ||
octave_idx_type | c2 | ||
) |
Definition at line 94 of file dRowVector.cc.
References len, Array< double >::make_unique(), Array< double >::numel(), and Array< double >::xelem().
|
inherited |
Find indices of (at most n) nonzero elements.
If n is specified, backward specifies search from backward.
Definition at line 835 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 672 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 661 of file Array-base.cc.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 686 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 733 of file Array-base.cc.
|
inherited |
Indexing without resizing.
Definition at line 682 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Indexing with possible resizing and fill.
Definition at line 715 of file Array-base.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 684 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 723 of file Array-base.cc.
|
inherited |
Insert an array into another at a specified position.
If size (a) is [d1 d2 ... dN] and idx is [i1 i2 ... iN], this method is equivalent to x(i1:i1+d1-1, i2:i2+d2-1, ... , iN:iN+dN-1) = a.
Definition at line 789 of file Array-base.cc.
|
inherited |
This is just a special case for idx = [r c 0 ...].
Definition at line 793 of file Array-base.cc.
RowVector & RowVector::insert | ( | const RowVector & | a, |
octave_idx_type | c | ||
) |
Definition at line 59 of file dRowVector.cc.
References Array< T, Alloc >::elem(), Array< double >::make_unique(), Array< double >::numel(), Array< T, Alloc >::numel(), and Array< double >::xelem().
Referenced by append().
|
privateinherited |
Definition at line 37 of file MArray-i.cc.
|
privateinherited |
Definition at line 47 of file MArray-i.cc.
|
privateinherited |
Definition at line 48 of file MArray-i.cc.
|
privateinherited |
Definition at line 49 of file MArray-i.cc.
|
privateinherited |
Definition at line 50 of file MArray-i.cc.
|
privateinherited |
Definition at line 57 of file MArray-i.cc.
|
privateinherited |
Definition at line 58 of file MArray-i.cc.
|
privateinherited |
Definition at line 59 of file MArray-i.cc.
|
privateinherited |
Definition at line 60 of file MArray-i.cc.
|
privateinherited |
Definition at line 35 of file MArray-s.cc.
|
staticprivateinherited |
|
inlineinherited |
Ordering is auto-detected or can be specified.
Definition at line 819 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Definition at line 101 of file Array-f.cc.
Ordering is auto-detected or can be specified.
Definition at line 813 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Extract a slice from this array as a column vector: A(:)(lo+1:up).
Must be 0 <= lo && up <= numel. May be up < lo.
Definition at line 632 of file Array-base.cc.
|
inherited |
Ditto, but for an array of values, specializing on the case when values are sorted.
NaNs get the value N.
Definition at line 827 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Do a binary lookup in a sorted array.
Must not contain NaNs. Mode can be specified or is auto-detected by comparing 1st and last element.
Definition at line 823 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
double RowVector::max | ( | void | ) | const |
Definition at line 223 of file dRowVector.cc.
References Array< double >::elem(), len, and Array< double >::numel().
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), matrix_norm(), and svd_matrix_norm().
double RowVector::min | ( | void | ) | const |
Definition at line 207 of file dRowVector.cc.
References Array< double >::elem(), len, and Array< double >::numel().
|
staticprivateinherited |
Definition at line 270 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Count nonzero elements.
Definition at line 831 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Returns the n-th element in increasing order, using the same ordering as used for sort.
n can either be a scalar index or a contiguous range.
Definition at line 841 of file Array-base.cc.
|
inlineinherited |
bool RowVector::operator!= | ( | const RowVector & | a | ) | const |
Definition at line 53 of file dRowVector.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 56 of file dRowVector.h.
References MArray< T >::operator=().
bool RowVector::operator== | ( | const RowVector & | a | ) | const |
Definition at line 44 of file dRowVector.cc.
References Array< double >::data(), Array< T, Alloc >::data(), len, mx_inline_equal(), Array< T, Alloc >::numel(), and Array< double >::numel().
|
inherited |
Returns true if this->dims () == dv, and if so, replaces this->m_dimensions by a shallow copy of dv.
This is useful for maintaining several arrays with supposedly equal dimensions (e.g. structs in the interpreter).
Definition at line 952 of file Array-base.cc.
|
inherited |
Extract page: A(:,:,k+1).
Definition at line 627 of file Array-base.cc.
|
inlineinherited |
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 806 of file Array-base.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 703 of file Array-base.cc.
|
inline |
Definition at line 100 of file dRowVector.h.
References n, and Array< T, Alloc >::resize().
Referenced by Matrix::column_max(), Matrix::column_min(), and linspace().
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 699 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Resizing (with fill).
Definition at line 693 of file Array-base.cc.
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 689 of file Array-base.cc.
|
inlineinherited |
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 809 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Size of the specified dimension.
Dimensions beyond the Array number of dimensions return 1 as those are implicit singleton dimensions.
Equivalent to Octave's 'size (A, DIM)'
Definition at line 808 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
|
inherited |
Sort by rows returns only indices.
Definition at line 816 of file Array-base.cc.
|
inherited |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.cc.
ColumnVector RowVector::transpose | ( | void | ) | const |
Definition at line 126 of file dRowVector.cc.
References MArray< T >::transpose().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
friend |
Definition at line 138 of file dRowVector.cc.
|
friend |
Definition at line 172 of file dRowVector.cc.
|
friend |
Definition at line 238 of file dRowVector.cc.
|
friend |
Definition at line 249 of file dRowVector.cc.
|
friend |
Definition at line 132 of file dRowVector.cc.
|
protectedinherited |
|
protectedinherited |