#include "intNDArray.h"
Public Types | |
typedef bool(* | compare_fcn_type) (typename ref_param< T >::type, typename ref_param< T >::type) |
typedef ref_param< T >::type | crefT |
typedef T | element_type |
typedef octave_idx_type | size_type |
Used for operator(), and returned by numel() and size() (beware: signed integer) More... | |
typedef T | value_type |
Public Member Functions | |
template<typename U > | |
intNDArray (const Array< U > &a) | |
intNDArray (const dim_vector &dv) | |
intNDArray (const dim_vector &dv, T val) | |
intNDArray (const intNDArray< T > &a)=default | |
template<typename U > | |
intNDArray (const intNDArray< U > &a) | |
template<typename U > | |
intNDArray (const MArray< U > &a) | |
intNDArray (T val) | |
intNDArray (void)=default | |
~intNDArray (void)=default | |
OCTAVE_API intNDArray | abs (void) const |
OCTAVE_API boolNDArray | all (int dim=-1) const |
OCTAVE_API boolNDArray | any (int dim=-1) const |
bool | any_element_is_nan (void) const |
OCTAVE_API bool | any_element_not_one_or_zero (void) const |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | as_column (void) const |
Return the array as a column vector. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | as_matrix (void) const |
Return the array as a matrix. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | as_row (void) const |
Return the array as a row vector. More... | |
intNDArray & | changesign (void) |
OCTARRAY_API void | clear (const dim_vector &dv) |
void | clear (octave_idx_type r, octave_idx_type c) |
OCTARRAY_API void | clear (void) |
OCTAVE_API intNDArray | concat (const intNDArray< T > &rb, const Array< octave_idx_type > &ra_idx) |
OCTAVE_API intNDArray | cummax (Array< octave_idx_type > &index, int dim=-1) const |
OCTAVE_API intNDArray | cummax (int dim=-1) const |
OCTAVE_API intNDArray | cummin (Array< octave_idx_type > &index, int dim=-1) const |
OCTAVE_API intNDArray | cummin (int dim=-1) const |
OCTAVE_API intNDArray | cumsum (int dim) const |
OCTAVE_API intNDArray | diag (octave_idx_type k=0) const |
OCTAVE_API intNDArray | diag (octave_idx_type m, octave_idx_type n) const |
OCTAVE_API intNDArray | diff (octave_idx_type order=1, int dim=-1) const |
OCTAVE_API NDArray | dsum (int dim) const |
OCTARRAY_API void | fill (const T &val) |
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< T > | hermitian (T(*fcn)(const T &)=nullptr) const |
OCTARRAY_API void | idx_add (const octave::idx_vector &idx, const MArray< T > &vals) |
OCTARRAY_API void | idx_add (const octave::idx_vector &idx, T val) |
Performs indexed accumulative addition. More... | |
OCTARRAY_API void | idx_add_nd (const octave::idx_vector &idx, const MArray< T > &vals, int dim=-1) |
OCTARRAY_API void | idx_max (const octave::idx_vector &idx, const MArray< T > &vals) |
OCTARRAY_API void | idx_min (const octave::idx_vector &idx, const MArray< T > &vals) |
OCTAVE_API intNDArray & | insert (const intNDArray< T > &a, const Array< octave_idx_type > &ra_idx) |
OCTAVE_API intNDArray & | insert (const intNDArray< T > &a, octave_idx_type r, octave_idx_type c) |
MArray< T > | 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 intNDArray | max (Array< octave_idx_type > &index, int dim=-1) const |
OCTAVE_API intNDArray | max (int dim=-1) const |
OCTAVE_API intNDArray | min (Array< octave_idx_type > &index, int dim=-1) const |
OCTAVE_API intNDArray | min (int dim=-1) 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 boolNDArray | operator! (void) const |
intNDArray & | operator= (const intNDArray< T > &a)=default |
MArray< T > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
OCTAVE_API intNDArray | prod (int dim) const |
MArray< T > | reshape (const dim_vector &new_dims) const |
OCTAVE_API intNDArray | signum (void) const |
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 |
intNDArray | squeeze (void) const |
OCTAVE_API intNDArray | sum (int dim) const |
intNDArray | 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 |
Static Public Member Functions | |
static OCTAVE_API octave_idx_type | compute_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions) |
static OCTAVE_API void | increment_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0) |
Protected Attributes | |
dim_vector | m_dimensions |
Array< T, Alloc >::ArrayRep * | m_rep |
T * | 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< T, Alloc >::ArrayRep * | nil_rep (void) |
Third dimension | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | reshape (octave_idx_type nr, octave_idx_type nc) 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 T & | 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 T & | 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 T & | 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 T & | 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 T & | checkelem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_API T & | checkelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_API T & | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_API T & | 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 T & | elem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API T & | elem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API T & | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API T & | 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 T & | operator() (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API T & | operator() (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API T & | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API T & | 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< T, Alloc > | column (octave_idx_type k) const |
Extract column: A(:,k+1). More... | |
OCTARRAY_API Array< T, Alloc > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). More... | |
OCTARRAY_API Array< T, 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 T * | data (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API T * | 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< T, Alloc > | index (const octave::idx_vector &i) const |
Indexing without resizing. More... | |
OCTARRAY_API Array< T, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | index (const Array< octave::idx_vector > &ia) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | index (const octave::idx_vector &i, bool resize_ok, const T &rfv) const |
Indexing with possible resizing and fill. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | index (const octave::idx_vector &i, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok, const T &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, 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< T, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok, const T &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< T, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok) const |
Size of the specified dimension. More... | |
virtual OCTARRAY_API T | resize_fill_value (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize2 (octave_idx_type nr, octave_idx_type nc, const T &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 T &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 T &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< T, Alloc > &rhs, const T &rfv) |
Indexed assignment (always with resize & fill). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const octave::idx_vector &i, const Array< T, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< T, Alloc > &rhs, const T &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< T, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const Array< octave::idx_vector > &ia, const Array< T, Alloc > &rhs, const T &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const Array< octave::idx_vector > &ia, const Array< T, 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< T, Alloc > & | insert (const Array< T, Alloc > &a, const Array< octave_idx_type > &idx) |
Insert an array into another at a specified position. More... | |
OCTARRAY_API Array< T, Alloc > & | insert (const Array< T, 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< T, Alloc > | sort (int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< T, 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 T &value, sortmode mode=UNSORTED) const |
Do a binary lookup in a sorted array. More... | |
OCTARRAY_API Array< octave_idx_type > | lookup (const Array< T, 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< T, 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... | |
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)(T)) const |
Overloads for function references. More... | |
Array< U, A > | map (U(&fcn)(const T &)) 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)(T)) const |
Overloads for function references. More... | |
bool | test_any (bool(&fcn)(const T &)) const |
Size of the specified dimension. More... | |
bool | test_all (F fcn) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(T)) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(const T &)) 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< T, Alloc > | cat (int dim, octave_idx_type n, const Array< T, Alloc > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
Definition at line 37 of file intNDArray.h.
|
inherited |
|
inherited |
|
inherited |
|
default |
|
default |
|
default |
|
inline |
Definition at line 52 of file intNDArray.h.
|
inline |
Definition at line 54 of file intNDArray.h.
|
inline |
Definition at line 56 of file intNDArray.h.
|
inline |
Definition at line 60 of file intNDArray.h.
|
inline |
Definition at line 63 of file intNDArray.h.
|
inline |
Definition at line 66 of file intNDArray.h.
intNDArray< T > intNDArray< T >::abs | ( | void | ) | const |
Definition at line 183 of file intNDArray.cc.
References elem, numel(), and Array< T, Alloc >::xelem().
boolNDArray intNDArray< T >::all | ( | int | dim = -1 | ) | const |
Definition at line 84 of file intNDArray.cc.
boolNDArray intNDArray< T >::any | ( | int | dim = -1 | ) | const |
Definition at line 91 of file intNDArray.cc.
|
inline |
Definition at line 70 of file intNDArray.h.
bool intNDArray< T >::any_element_not_one_or_zero | ( | void | ) | const |
Definition at line 51 of file intNDArray.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 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.
|
inline |
Definition at line 77 of file intNDArray.h.
References MArray< T >::changesign().
|
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.
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.
|
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 |
|
static |
Definition at line 107 of file intNDArray.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 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 |
intNDArray< T > intNDArray< T >::concat | ( | const intNDArray< T > & | rb, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 115 of file intNDArray.cc.
References Array< T, Alloc >::numel().
intNDArray< T > intNDArray< T >::cummax | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 278 of file intNDArray.cc.
References mx_inline_cummax().
intNDArray< T > intNDArray< T >::cummax | ( | int | dim = -1 | ) | const |
Definition at line 271 of file intNDArray.cc.
References mx_inline_cummax().
intNDArray< T > intNDArray< T >::cummin | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 292 of file intNDArray.cc.
References mx_inline_cummin().
intNDArray< T > intNDArray< T >::cummin | ( | int | dim = -1 | ) | const |
Definition at line 285 of file intNDArray.cc.
References mx_inline_cummin().
intNDArray< T > intNDArray< T >::cumsum | ( | int | dim | ) | const |
Definition at line 236 of file intNDArray.cc.
References mx_inline_cumsum().
|
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.
intNDArray< T > intNDArray< T >::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 68 of file intNDArray.cc.
References Array< T >::diag().
intNDArray< T > intNDArray< T >::diag | ( | octave_idx_type | m, |
octave_idx_type | n | ||
) | const |
Definition at line 75 of file intNDArray.cc.
References Array< T >::diag(), m, and n.
intNDArray< T > intNDArray< T >::diff | ( | octave_idx_type | order = 1 , |
int | dim = -1 |
||
) | const |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
NDArray intNDArray< T >::dsum | ( | int | dim | ) | const |
Definition at line 229 of file intNDArray.cc.
References mx_inline_dsum().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 404 of file Array-base.cc.
|
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.
|
inlineinherited |
Definition at line 102 of file MArray.h.
References Array< T, Alloc >::hermitian().
Referenced by do_mgorth(), ComplexColumnVector::hermitian(), ComplexMatrix::hermitian(), ComplexRowVector::hermitian(), FloatComplexColumnVector::hermitian(), FloatComplexMatrix::hermitian(), and FloatComplexRowVector::hermitian().
|
inherited |
Definition at line 82 of file MArray.cc.
References Array< T, Alloc >::data(), len, min(), n, numel(), and Array< T, Alloc >::numel().
|
inherited |
|
inherited |
Definition at line 152 of file MArray.cc.
References Array< T, Alloc >::data(), Array< T, Alloc >::dims(), dim_vector::first_non_singleton(), Array< T, Alloc >::fortran_vec(), get_extent_triplet(), len, max(), mx_inline_add2(), n, Array< T, Alloc >::ndims(), dim_vector::redim(), and Array< T, Alloc >::resize().
|
inherited |
Definition at line 134 of file MArray.cc.
References Array< T, Alloc >::data(), len, min(), n, numel(), and Array< T, Alloc >::numel().
|
inherited |
|
static |
Definition at line 98 of file intNDArray.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 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.
intNDArray< T > & intNDArray< T >::insert | ( | const intNDArray< T > & | a, |
const Array< octave_idx_type > & | ra_idx | ||
) |
Definition at line 134 of file intNDArray.cc.
References Array< T, Alloc >::insert(), and ra_idx.
intNDArray< T > & intNDArray< T >::insert | ( | const intNDArray< T > & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 125 of file intNDArray.cc.
|
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 |
Definition at line 94 of file MArray.h.
References Array< T, Alloc >::ipermute().
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 |
Definition at line 52 of file Array-tc.cc.
|
inherited |
Definition at line 43 of file Array-idx-vec.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 |
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.
intNDArray< T > intNDArray< T >::max | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 250 of file intNDArray.cc.
References mx_inline_max().
intNDArray< T > intNDArray< T >::max | ( | int | dim = -1 | ) | const |
Definition at line 243 of file intNDArray.cc.
References mx_inline_max().
intNDArray< T > intNDArray< T >::min | ( | Array< octave_idx_type > & | index, |
int | dim = -1 |
||
) | const |
Definition at line 264 of file intNDArray.cc.
References mx_inline_min().
intNDArray< T > intNDArray< T >::min | ( | int | dim = -1 | ) | const |
Definition at line 257 of file intNDArray.cc.
References mx_inline_min().
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 |
boolNDArray intNDArray< T >::operator! | ( | void | ) | const |
Definition at line 39 of file intNDArray.cc.
References elem, Array< T, Alloc >::elem(), and numel().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
default |
|
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 |
Definition at line 90 of file MArray.h.
References Array< T, Alloc >::permute().
Referenced by Funicode_idx(), opengl_renderer::get_pixels(), opengl_renderer::render_text(), and base_text_renderer::rotate_pixels().
|
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.
intNDArray< T > intNDArray< T >::prod | ( | int | dim | ) | const |
Definition at line 215 of file intNDArray.cc.
References mx_inline_prod().
|
inlineinherited |
Definition at line 87 of file MArray.h.
References Array< T, Alloc >::reshape().
Referenced by F__base64_decode_bytes__(), Ffilter(), Range::index(), and octave_matrix::reshape().
|
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.
|
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 |
intNDArray< T > intNDArray< T >::signum | ( | void | ) | const |
Definition at line 199 of file intNDArray.cc.
References elem, numel(), and Array< T, Alloc >::xelem().
|
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.
|
inline |
Definition at line 112 of file intNDArray.h.
intNDArray< T > intNDArray< T >::sum | ( | int | dim | ) | const |
Definition at line 222 of file intNDArray.cc.
References mx_inline_sum().
|
inline |
Definition at line 115 of file intNDArray.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |