#include "boolMatrix.h"
Public Types | |
typedef bool(* | compare_fcn_type) (typename ref_param< bool >::type, typename ref_param< bool >::type) |
typedef ref_param< bool >::type | crefT |
typedef bool | element_type |
typedef boolMatrix | matrix_type |
typedef octave_idx_type | size_type |
Used for operator(), and returned by numel() and size() (beware: signed integer) More... | |
typedef bool | value_type |
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< bool, Alloc >::ArrayRep * | m_rep |
bool * | m_slice_data |
octave_idx_type | m_slice_len |
Private Member Functions | |
OCTINTERP_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
OCTAVE_CLASS_TEMPLATE_INSTANTIATION_API void | instantiation_guard () |
Static Private Member Functions | |
static OCTARRAY_API Array< bool, Alloc >::ArrayRep * | nil_rep (void) |
Third dimension | |
OCTARRAY_API Array< bool, Alloc > & | insert (const Array< bool, Alloc > &a, const Array< octave_idx_type > &idx) |
Insert an array into another at a specified position. More... | |
OCTARRAY_API Array< bool, Alloc > & | insert (const Array< bool, Alloc > &a, octave_idx_type r, octave_idx_type c) |
This is just a special case for idx = [r c 0 ...]. 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 | 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_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 bool & | 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 bool & | 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 bool & | 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 bool & | 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 bool & | checkelem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_API bool & | checkelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_API bool & | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_API bool & | 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 bool & | elem (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool & | elem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool & | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool & | 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 bool & | operator() (octave_idx_type n) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool & | operator() (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool & | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API bool & | 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< bool, Alloc > | column (octave_idx_type k) const |
Extract column: A(:,k+1). More... | |
OCTARRAY_API Array< bool, Alloc > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). More... | |
OCTARRAY_API Array< bool, 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 Array< bool, Alloc > | reshape (octave_idx_type nr, octave_idx_type nc) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< bool, Alloc > | reshape (const dim_vector &new_dims) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< bool, Alloc > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< bool, Alloc > | ipermute (const Array< octave_idx_type > &vec) const |
Size of the specified dimension. 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_API Array< bool, Alloc > | hermitian (bool(*fcn)(const bool &)=nullptr) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API const bool * | data (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API bool * | 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< bool, Alloc > | index (const octave::idx_vector &i) const |
Indexing without resizing. More... | |
OCTARRAY_API Array< bool, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< bool, Alloc > | index (const Array< octave::idx_vector > &ia) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< bool, Alloc > | index (const octave::idx_vector &i, bool resize_ok, const bool &rfv) const |
Indexing with possible resizing and fill. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< bool, Alloc > | index (const octave::idx_vector &i, bool resize_ok) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< bool, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok, const bool &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< bool, 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< bool, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok, const bool &rfv) const |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API Array< bool, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok) const |
Size of the specified dimension. More... | |
virtual OCTARRAY_API bool | resize_fill_value (void) const |
Size of the specified dimension. More... | |
OCTARRAY_API void | resize2 (octave_idx_type nr, octave_idx_type nc, const bool &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 bool &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 bool &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< bool, Alloc > &rhs, const bool &rfv) |
Indexed assignment (always with resize & fill). More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const octave::idx_vector &i, const Array< bool, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< bool, Alloc > &rhs, const bool &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< bool, Alloc > &rhs) |
Size of the specified dimension. More... | |
OCTARRAY_API void | assign (const Array< octave::idx_vector > &ia, const Array< bool, Alloc > &rhs, const bool &rfv) |
Size of the specified dimension. More... | |
OCTARRAY_OVERRIDABLE_FUNC_API void | assign (const Array< octave::idx_vector > &ia, const Array< bool, 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_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< bool, Alloc > | sort (int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. More... | |
OCTARRAY_API Array< bool, 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 bool &value, sortmode mode=UNSORTED) const |
Do a binary lookup in a sorted array. More... | |
OCTARRAY_API Array< octave_idx_type > | lookup (const Array< bool, 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< bool, 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)(bool)) const |
Overloads for function references. More... | |
Array< U, A > | map (U(&fcn)(const bool &)) 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)(bool)) const |
Overloads for function references. More... | |
bool | test_any (bool(&fcn)(const bool &)) const |
Size of the specified dimension. More... | |
bool | test_all (F fcn) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(bool)) const |
Size of the specified dimension. More... | |
bool | test_all (bool(&fcn)(const bool &)) 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< bool, Alloc > | cat (int dim, octave_idx_type n, const Array< bool, Alloc > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
static OCTARRAY_API void | instantiation_guard () |
Size of the specified dimension. More... | |
Definition at line 36 of file boolMatrix.h.
|
inherited |
|
inherited |
Definition at line 42 of file boolNDArray.h.
|
inherited |
|
inherited |
|
default |
|
default |
|
default |
|
inline |
Definition at line 50 of file boolMatrix.h.
|
inline |
Definition at line 53 of file boolMatrix.h.
|
inline |
Definition at line 56 of file boolMatrix.h.
|
inline |
Definition at line 58 of file boolMatrix.h.
|
inline |
Definition at line 61 of file boolMatrix.h.
|
inherited |
Definition at line 61 of file boolNDArray.cc.
References mx_inline_all().
Referenced by do_minmax_red_op< boolNDArray >(), Fprod(), and octave_base_matrix< MT >::is_true().
|
inherited |
Definition at line 67 of file boolNDArray.cc.
References mx_inline_any().
Referenced by do_minmax_red_op< boolNDArray >(), and Fsum().
|
inlineinherited |
Definition at line 67 of file boolNDArray.h.
|
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.
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 |
|
staticinherited |
Definition at line 104 of file boolNDArray.cc.
References compute_index(), and ra_idx.
|
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 |
Definition at line 73 of file boolNDArray.cc.
References boolNDArray::insert(), Array< T, Alloc >::numel(), and ra_idx.
|
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.
boolMatrix boolMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 83 of file boolMatrix.cc.
References Array< T, Alloc >::diag().
|
inherited |
Definition at line 117 of file boolNDArray.cc.
References Array< T, Alloc >::diag(), m, and n.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
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.
|
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.
|
staticinherited |
Definition at line 96 of file boolNDArray.cc.
References ra_idx.
|
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.
boolMatrix & boolMatrix::insert | ( | const boolMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 57 of file boolMatrix.cc.
References Array< T, Alloc >::insert(), and r.
|
inherited |
Definition at line 89 of file boolNDArray.cc.
References Array< T, Alloc >::insert(), and ra_idx.
|
inherited |
Definition at line 82 of file boolNDArray.cc.
References Array< T, Alloc >::insert(), and r.
Referenced by boolNDArray::concat().
|
privateinherited |
Definition at line 53 of file Array-tc.cc.
|
privateinherited |
Definition at line 98 of file Array-C.cc.
|
privateinherited |
Definition at line 169 of file Array-f.cc.
|
privateinherited |
Definition at line 98 of file Array-fC.cc.
|
privateinherited |
Definition at line 55 of file Array-i.cc.
|
privateinherited |
Definition at line 58 of file Array-i.cc.
|
privateinherited |
Definition at line 71 of file Array-i.cc.
|
privateinherited |
Definition at line 72 of file Array-i.cc.
|
privateinherited |
Definition at line 73 of file Array-i.cc.
|
privateinherited |
Definition at line 74 of file Array-i.cc.
|
privateinherited |
Definition at line 84 of file Array-i.cc.
|
privateinherited |
Definition at line 85 of file Array-i.cc.
|
privateinherited |
Definition at line 86 of file Array-i.cc.
|
privateinherited |
Definition at line 87 of file Array-i.cc.
|
privateinherited |
Definition at line 94 of file Array-i.cc.
|
privateinherited |
Definition at line 95 of file Array-i.cc.
|
privateinherited |
Definition at line 96 of file Array-i.cc.
|
privateinherited |
Definition at line 97 of file Array-i.cc.
|
privateinherited |
Definition at line 45 of file Array-idx-vec.cc.
|
privateinherited |
Definition at line 48 of file Array-s.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 955 of file Array-base.cc.
|
inherited |
Definition at line 48 of file boolNDArray.cc.
References Array< bool >::is_shared(), and mx_inline_not2().
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.
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 |
boolMatrix boolMatrix::operator! | ( | void | ) | const |
Definition at line 66 of file boolMatrix.cc.
References Array< bool >::cols(), Array< bool >::elem(), Array< T, Alloc >::elem(), and Array< bool >::rows().
bool boolMatrix::operator!= | ( | const boolMatrix & | a | ) | const |
Definition at line 51 of file boolMatrix.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
default |
bool boolMatrix::operator== | ( | const boolMatrix & | a | ) | const |
Definition at line 42 of file boolMatrix.cc.
References Array< T, Alloc >::cols(), Array< bool >::cols(), Array< bool >::data(), Array< T, Alloc >::data(), mx_inline_equal(), Array< bool >::numel(), Array< T, Alloc >::rows(), and Array< bool >::rows().
|
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 |
|
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 643 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 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 89 of file boolMatrix.h.
References Array< T, Alloc >::resize().
|
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.
|
inlineinherited |
Definition at line 82 of file boolNDArray.h.
References Array< T, Alloc >::squeeze().
|
inline |
Definition at line 66 of file boolMatrix.h.
References Array< T, Alloc >::transpose().
Referenced by oct_unop_transpose().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |