#include "PermMatrix.h"
Definition at line 32 of file PermMatrix.h.
typedef bool(* Array< octave_idx_type >::compare_fcn_type)(typename ref_param< octave_idx_type >::type, typename ref_param< octave_idx_type >::type) [inherited] |
typedef ref_param<octave_idx_type >::type Array< octave_idx_type >::crefT [inherited] |
typedef octave_idx_type Array< octave_idx_type >::element_type [inherited] |
PermMatrix::PermMatrix | ( | void | ) | [inline] |
Definition at line 37 of file PermMatrix.h.
PermMatrix::PermMatrix | ( | octave_idx_type | n | ) |
Definition at line 66 of file PermMatrix.cc.
References Array< octave_idx_type >::xelem().
PermMatrix::PermMatrix | ( | const Array< octave_idx_type > & | p, | |
bool | colp = false , |
|||
bool | check = true | |||
) |
Definition at line 39 of file PermMatrix.cc.
References gripe_invalid_permutation(), Array< T >::length(), and Array< octave_idx_type >::operator=().
PermMatrix::PermMatrix | ( | const PermMatrix & | m | ) | [inline] |
Definition at line 44 of file PermMatrix.h.
PermMatrix::PermMatrix | ( | const idx_vector & | idx, | |
bool | colp = false , |
|||
octave_idx_type | n = 0 | |||
) |
Definition at line 52 of file PermMatrix.cc.
References gripe_invalid_permutation(), idx_vector::is_permutation(), idx_vector::length(), and Array< octave_idx_type >::operator=().
Array<octave_idx_type > Array< octave_idx_type >::as_column | ( | void | ) | const [inline, inherited] |
Array<octave_idx_type > Array< octave_idx_type >::as_matrix | ( | void | ) | const [inline, inherited] |
Array<octave_idx_type > Array< octave_idx_type >::as_row | ( | void | ) | const [inline, inherited] |
void Array< octave_idx_type >::assign | ( | const idx_vector & | i, | |
const Array< octave_idx_type > & | rhs, | |||
const octave_idx_type & | rfv = resize_fill_value () | |||
) | [inherited] |
void Array< octave_idx_type >::assign | ( | const idx_vector & | i, | |
const idx_vector & | j, | |||
const Array< octave_idx_type > & | rhs, | |||
const octave_idx_type & | rfv = resize_fill_value () | |||
) | [inherited] |
void Array< octave_idx_type >::assign | ( | const Array< idx_vector > & | ia, | |
const Array< octave_idx_type > & | rhs, | |||
const octave_idx_type & | rfv = resize_fill_value () | |||
) | [inherited] |
size_t PermMatrix::byte_size | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 66 of file PermMatrix.h.
Referenced by octave_perm_matrix::save_binary().
octave_idx_type Array< octave_idx_type >::capacity | ( | void | ) | const [inline, inherited] |
static Array<octave_idx_type > Array< octave_idx_type >::cat | ( | int | dim, | |
octave_idx_type | n, | |||
const Array< octave_idx_type > * | array_list | |||
) | [static, inherited] |
octave_idx_type PermMatrix::checkelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const |
Reimplemented from Array< octave_idx_type >.
Definition at line 73 of file PermMatrix.cc.
References elem(), and length().
Referenced by octave_perm_matrix::do_index_op().
octave_idx_type & Array< octave_idx_type >::checkelem | ( | octave_idx_type | n | ) | [inherited] |
octave_idx_type & Array< octave_idx_type >::checkelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | [inherited] |
octave_idx_type & Array< octave_idx_type >::checkelem | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | [inherited] |
octave_idx_type & Array< octave_idx_type >::checkelem | ( | const Array< octave_idx_type > & | ra_idx | ) | [inherited] |
crefT Array< octave_idx_type >::checkelem | ( | octave_idx_type | n | ) | const [inherited] |
crefT Array< octave_idx_type >::checkelem | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | const [inherited] |
crefT Array< octave_idx_type >::checkelem | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inherited] |
void Array< octave_idx_type >::chop_trailing_singletons | ( | void | ) | [inline, inherited] |
void Array< octave_idx_type >::clear | ( | void | ) | [inherited] |
void Array< octave_idx_type >::clear | ( | const dim_vector & | dv | ) | [inherited] |
void Array< octave_idx_type >::clear | ( | octave_idx_type | r, | |
octave_idx_type | c | |||
) | [inline, inherited] |
octave_idx_type PermMatrix::cols | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 55 of file PermMatrix.h.
References Array< T >::dim2().
Referenced by octave_perm_matrix::do_index_op(), find_nonzero_elem_idx(), octinternal_do_mul_pm_sm(), and octinternal_do_mul_sm_pm().
Array<octave_idx_type > Array< octave_idx_type >::column | ( | octave_idx_type | k | ) | const [inherited] |
octave_idx_type PermMatrix::columns | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 56 of file PermMatrix.h.
References Array< T >::dim2().
Referenced by octave_print_internal(), and operator*().
octave_idx_type Array< octave_idx_type >::compute_index | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inherited] |
octave_idx_type Array< octave_idx_type >::compute_index | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | const [inherited] |
octave_idx_type Array< octave_idx_type >::compute_index | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inherited] |
octave_idx_type Array< octave_idx_type >::compute_index_unchecked | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline, inherited] |
const octave_idx_type* PermMatrix::data | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 110 of file PermMatrix.h.
Referenced by determinant(), find_nonzero_elem_idx(), kron(), power(), and octave_perm_matrix::save_binary().
void Array< octave_idx_type >::delete_elements | ( | const idx_vector & | i | ) | [inherited] |
void Array< octave_idx_type >::delete_elements | ( | int | dim, | |
const idx_vector & | i | |||
) | [inherited] |
void Array< octave_idx_type >::delete_elements | ( | const Array< idx_vector > & | ia | ) | [inherited] |
octave_idx_type PermMatrix::determinant | ( | void | ) | const |
Definition at line 101 of file PermMatrix.cc.
References data(), OCTAVE_LOCAL_BUFFER, and perm_length().
Referenced by DEFUN_DLD().
Array<octave_idx_type > Array< octave_idx_type >::diag | ( | octave_idx_type | k = 0 |
) | const [inherited] |
octave_idx_type PermMatrix::dim1 | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 49 of file PermMatrix.h.
octave_idx_type PermMatrix::dim2 | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 51 of file PermMatrix.h.
octave_idx_type Array< octave_idx_type >::dim3 | ( | void | ) | const [inline, inherited] |
dim_vector PermMatrix::dims | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 69 of file PermMatrix.h.
crefT Array< octave_idx_type >::elem | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | const [inline, inherited] |
crefT Array< octave_idx_type >::elem | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline, inherited] |
octave_idx_type PermMatrix::elem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 75 of file PermMatrix.h.
Referenced by checkelem().
octave_idx_type & Array< octave_idx_type >::elem | ( | octave_idx_type | n | ) | [inline, inherited] |
octave_idx_type & Array< octave_idx_type >::elem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | [inline, inherited] |
octave_idx_type & Array< octave_idx_type >::elem | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | [inline, inherited] |
octave_idx_type & Array< octave_idx_type >::elem | ( | const Array< octave_idx_type > & | ra_idx | ) | [inline, inherited] |
crefT Array< octave_idx_type >::elem | ( | octave_idx_type | n | ) | const [inline, inherited] |
PermMatrix PermMatrix::eye | ( | octave_idx_type | n | ) | [static] |
void Array< octave_idx_type >::fill | ( | const octave_idx_type & | val | ) | [inherited] |
Array<octave_idx_type> Array< octave_idx_type >::find | ( | octave_idx_type | n = -1 , |
|
bool | backward = false | |||
) | const [inherited] |
const octave_idx_type* PermMatrix::fortran_vec | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 113 of file PermMatrix.h.
Referenced by kron().
octave_idx_type* PermMatrix::fortran_vec | ( | void | ) | [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 116 of file PermMatrix.h.
Array<octave_idx_type > Array< octave_idx_type >::hermitian | ( | octave_idx_type (*)(const octave_idx_type &) | fcn = 0 |
) | const [inherited] |
Reimplemented in MArray< octave_idx_type >.
Array<octave_idx_type > Array< octave_idx_type >::index | ( | const Array< idx_vector > & | ia, | |
bool | resize_ok, | |||
const octave_idx_type & | rfv = resize_fill_value () | |||
) | const [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::index | ( | const idx_vector & | i | ) | const [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::index | ( | const idx_vector & | i, | |
const idx_vector & | j | |||
) | const [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::index | ( | const Array< idx_vector > & | ia | ) | const [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::index | ( | const idx_vector & | i, | |
bool | resize_ok, | |||
const octave_idx_type & | rfv = resize_fill_value () | |||
) | const [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::index | ( | const idx_vector & | i, | |
const idx_vector & | j, | |||
bool | resize_ok, | |||
const octave_idx_type & | rfv = resize_fill_value () | |||
) | const [inherited] |
Array<octave_idx_type >& Array< octave_idx_type >::insert | ( | const Array< octave_idx_type > & | a, | |
const Array< octave_idx_type > & | idx | |||
) | [inherited] |
Array<octave_idx_type >& Array< octave_idx_type >::insert | ( | const Array< octave_idx_type > & | a, | |
octave_idx_type | r, | |||
octave_idx_type | c | |||
) | [inherited] |
PermMatrix PermMatrix::inverse | ( | void | ) | const |
Array<octave_idx_type > Array< octave_idx_type >::ipermute | ( | const Array< octave_idx_type > & | vec | ) | const [inline, inherited] |
Reimplemented in MArray< octave_idx_type >.
bool PermMatrix::is_col_perm | ( | void | ) | const [inline] |
Definition at line 105 of file PermMatrix.h.
Referenced by find_nonzero_elem_idx(), FloatMatrix::FloatMatrix(), kron(), Matrix::Matrix(), octave_print_internal(), octave_perm_matrix::save_ascii(), and octave_perm_matrix::save_binary().
bool Array< octave_idx_type >::is_empty | ( | void | ) | const [inline, inherited] |
bool PermMatrix::is_row_perm | ( | void | ) | const [inline] |
Definition at line 106 of file PermMatrix.h.
Referenced by octinternal_do_mul_pm_sm(), octinternal_do_mul_sm_pm(), and Sparse< T >::Sparse().
bool Array< octave_idx_type >::is_shared | ( | void | ) | [inline, inherited] |
sortmode Array< octave_idx_type >::is_sorted | ( | sortmode | mode = UNSORTED |
) | const [inherited] |
sortmode Array< octave_idx_type >::is_sorted_rows | ( | sortmode | mode = UNSORTED |
) | const [inherited] |
bool Array< octave_idx_type >::is_square | ( | void | ) | const [inline, inherited] |
bool Array< octave_idx_type >::is_vector | ( | void | ) | const [inline, inherited] |
octave_idx_type PermMatrix::length | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 61 of file PermMatrix.h.
Referenced by checkelem().
Array<octave_idx_type > Array< octave_idx_type >::linear_slice | ( | octave_idx_type | lo, | |
octave_idx_type | up | |||
) | const [inherited] |
Array<octave_idx_type> Array< octave_idx_type >::lookup | ( | const Array< octave_idx_type > & | values, | |
sortmode | mode = UNSORTED | |||
) | const [inherited] |
octave_idx_type Array< octave_idx_type >::lookup | ( | const octave_idx_type & | value, | |
sortmode | mode = UNSORTED | |||
) | const [inherited] |
void Array< octave_idx_type >::make_unique | ( | void | ) | [inline, inherited] |
Array<U> Array< octave_idx_type >::map | ( | F | fcn | ) | const [inline, inherited] |
Array<U> Array< octave_idx_type >::map | ( | U(&)(const octave_idx_type &) | fcn | ) | const [inline, inherited] |
Array<U> Array< octave_idx_type >::map | ( | U(&)(octave_idx_type ) | fcn | ) | const [inline, inherited] |
void Array< octave_idx_type >::maybe_economize | ( | void | ) | [inline, inherited] |
void* Array< octave_idx_type >::mex_get_data | ( | void | ) | const [inline, inherited] |
int Array< octave_idx_type >::ndims | ( | void | ) | const [inline, inherited] |
octave_idx_type PermMatrix::nelem | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 63 of file PermMatrix.h.
References Array< T >::dim1(), and Array< T >::dim2().
Referenced by octave_perm_matrix::try_narrowing_conversion().
octave_idx_type Array< octave_idx_type >::nnz | ( | void | ) | const [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::nth_element | ( | const idx_vector & | n, | |
int | dim = 0 | |||
) | const [inherited] |
octave_idx_type PermMatrix::numel | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 64 of file PermMatrix.h.
References Array< T >::nelem().
octave_idx_type PermMatrix::operator() | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 86 of file PermMatrix.h.
References Array< T >::checkelem(), and Array< T >::elem().
octave_idx_type & Array< octave_idx_type >::operator() | ( | octave_idx_type | n | ) | [inline, inherited] |
octave_idx_type & Array< octave_idx_type >::operator() | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | [inline, inherited] |
octave_idx_type & Array< octave_idx_type >::operator() | ( | const Array< octave_idx_type > & | ra_idx | ) | [inline, inherited] |
crefT Array< octave_idx_type >::operator() | ( | octave_idx_type | n | ) | const [inline, inherited] |
octave_idx_type & Array< octave_idx_type >::operator() | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | [inline, inherited] |
crefT Array< octave_idx_type >::operator() | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline, inherited] |
crefT Array< octave_idx_type >::operator() | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | const [inline, inherited] |
bool Array< octave_idx_type >::optimize_dimensions | ( | const dim_vector & | dv | ) | [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::page | ( | octave_idx_type | k | ) | const [inherited] |
octave_idx_type Array< octave_idx_type >::pages | ( | void | ) | const [inline, inherited] |
octave_idx_type PermMatrix::perm_length | ( | void | ) | const [inline] |
Definition at line 58 of file PermMatrix.h.
Referenced by determinant().
Array<octave_idx_type > Array< octave_idx_type >::permute | ( | const Array< octave_idx_type > & | vec, | |
bool | inv = false | |||
) | const [inherited] |
Reimplemented in MArray< octave_idx_type >.
PermMatrix PermMatrix::power | ( | octave_idx_type | n | ) | const |
Definition at line 135 of file PermMatrix.cc.
References _colp, data(), Array< T >::fortran_vec(), PermMatrix(), and rows().
Referenced by xpow().
void PermMatrix::print_info | ( | std::ostream & | os, | |
const std::string & | prefix | |||
) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 119 of file PermMatrix.h.
Referenced by octave_perm_matrix::print_info().
Array<octave_idx_type> PermMatrix::pvec | ( | void | ) | const [inline] |
Definition at line 71 of file PermMatrix.h.
Referenced by FloatMatrix::FloatMatrix(), Matrix::Matrix(), octave_print_internal(), octinternal_do_mul_pm_sm(), octinternal_do_mul_sm_pm(), operator*(), FloatQRP::Pvec(), FloatComplexQRP::Pvec(), QRP::Pvec(), ComplexQRP::Pvec(), octave_perm_matrix::save_ascii(), and Sparse< T >::Sparse().
Array<octave_idx_type > Array< octave_idx_type >::reshape | ( | const dim_vector & | new_dims | ) | const [inline, inherited] |
Reimplemented in MArray< octave_idx_type >.
Array<octave_idx_type > Array< octave_idx_type >::reshape | ( | octave_idx_type | nr, | |
octave_idx_type | nc | |||
) | const [inline, inherited] |
void Array< octave_idx_type >::resize | ( | octave_idx_type | n | ) | [inline, inherited] |
void Array< octave_idx_type >::resize | ( | octave_idx_type | nr, | |
octave_idx_type | nc, | |||
const octave_idx_type & | rfv = resize_fill_value () | |||
) | [inline, inherited] |
void Array< octave_idx_type >::resize | ( | const dim_vector & | dv, | |
const octave_idx_type & | rfv = resize_fill_value () | |||
) | [inherited] |
void Array< octave_idx_type >::resize1 | ( | octave_idx_type | n, | |
const octave_idx_type & | rfv = resize_fill_value () | |||
) | [inherited] |
static const octave_idx_type & Array< octave_idx_type >::resize_fill_value | ( | void | ) | [static, inherited] |
octave_idx_type PermMatrix::rows | ( | void | ) | const [inline] |
Reimplemented from Array< octave_idx_type >.
Definition at line 54 of file PermMatrix.h.
References Array< T >::dim1().
Referenced by octave_perm_matrix::do_index_op(), find_nonzero_elem_idx(), FloatMatrix::FloatMatrix(), kron(), Matrix::Matrix(), octave_print_internal(), octinternal_do_mul_pm_sm(), octinternal_do_mul_sm_pm(), operator*(), power(), octave_perm_matrix::save_ascii(), octave_perm_matrix::save_binary(), and Sparse< T >::Sparse().
Array<octave_idx_type > Array< octave_idx_type >::sort | ( | int | dim = 0 , |
|
sortmode | mode = ASCENDING | |||
) | const [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::sort | ( | Array< octave_idx_type > & | sidx, | |
int | dim = 0 , |
|||
sortmode | mode = ASCENDING | |||
) | const [inherited] |
Array<octave_idx_type> Array< octave_idx_type >::sort_rows_idx | ( | sortmode | mode = ASCENDING |
) | const [inherited] |
Array<octave_idx_type > Array< octave_idx_type >::squeeze | ( | void | ) | const [inherited] |
Reimplemented in MArray< octave_idx_type >.
bool Array< octave_idx_type >::test | ( | F | fcn | ) | const [inline, inherited] |
bool Array< octave_idx_type >::test_all | ( | F | fcn | ) | const [inline, inherited] |
bool Array< octave_idx_type >::test_all | ( | bool(&)(octave_idx_type ) | fcn | ) | const [inline, inherited] |
bool Array< octave_idx_type >::test_all | ( | bool(&)(const octave_idx_type &) | fcn | ) | const [inline, inherited] |
bool Array< octave_idx_type >::test_any | ( | F | fcn | ) | const [inline, inherited] |
bool Array< octave_idx_type >::test_any | ( | bool(&)(const octave_idx_type &) | fcn | ) | const [inline, inherited] |
bool Array< octave_idx_type >::test_any | ( | bool(&)(octave_idx_type ) | fcn | ) | const [inline, inherited] |
PermMatrix PermMatrix::transpose | ( | void | ) | const |
Reimplemented from Array< octave_idx_type >.
Definition at line 87 of file PermMatrix.cc.
References _colp.
Referenced by DEFUN_DLD(), and inverse().
octave_idx_type & Array< octave_idx_type >::xelem | ( | octave_idx_type | n | ) | [inline, inherited] |
Definition at line 327 of file Array.h.
Referenced by PermMatrix().
octave_idx_type & Array< octave_idx_type >::xelem | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | [inline, inherited] |
octave_idx_type & Array< octave_idx_type >::xelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | [inline, inherited] |
crefT Array< octave_idx_type >::xelem | ( | octave_idx_type | n | ) | const [inline, inherited] |
crefT Array< octave_idx_type >::xelem | ( | octave_idx_type | i, | |
octave_idx_type | j, | |||
octave_idx_type | k | |||
) | const [inline, inherited] |
octave_idx_type & Array< octave_idx_type >::xelem | ( | const Array< octave_idx_type > & | ra_idx | ) | [inline, inherited] |
crefT Array< octave_idx_type >::xelem | ( | const Array< octave_idx_type > & | ra_idx | ) | const [inline, inherited] |
crefT Array< octave_idx_type >::xelem | ( | octave_idx_type | i, | |
octave_idx_type | j | |||
) | const [inline, inherited] |
OCTAVE_API PermMatrix operator* | ( | const PermMatrix & | a, | |
const PermMatrix & | b | |||
) | [friend] |
Definition at line 192 of file PermMatrix.cc.
bool PermMatrix::_colp [private] |
Definition at line 125 of file PermMatrix.h.
Referenced by operator*(), power(), and transpose().
dim_vector Array< octave_idx_type >::dimensions [protected, inherited] |
Array<octave_idx_type >::ArrayRep* Array< octave_idx_type >::rep [protected, inherited] |
octave_idx_type * Array< octave_idx_type >::slice_data [protected, inherited] |
octave_idx_type Array< octave_idx_type >::slice_len [protected, inherited] |