Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes | Friends

PermMatrix Class Reference

#include "PermMatrix.h"

Inheritance diagram for PermMatrix:
Inheritance graph
[legend]
Collaboration diagram for PermMatrix:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PermMatrix (void)
 PermMatrix (octave_idx_type n)
 PermMatrix (const PermMatrix &m)
 PermMatrix (const idx_vector &idx, bool colp=false, octave_idx_type n=0)
 PermMatrix (const Array< octave_idx_type > &p, bool colp=false, bool check=true)
size_t byte_size (void) const
octave_idx_type checkelem (octave_idx_type i, octave_idx_type j) const
octave_idx_type cols (void) const
octave_idx_type columns (void) const
const octave_idx_typedata (void) const
octave_idx_type determinant (void) const
octave_idx_type dim1 (void) const
octave_idx_type dim2 (void) const
dim_vector dims (void) const
octave_idx_type elem (octave_idx_type i, octave_idx_type j) const
octave_idx_typefortran_vec (void)
const octave_idx_typefortran_vec (void) const
PermMatrix inverse (void) const
bool is_col_perm (void) const
bool is_row_perm (void) const
octave_idx_type length (void) const
octave_idx_type nelem (void) const
octave_idx_type numel (void) const
octave_idx_type operator() (octave_idx_type i, octave_idx_type j) const
octave_idx_type perm_length (void) const
PermMatrix power (octave_idx_type n) const
void print_info (std::ostream &os, const std::string &prefix) const
Array< octave_idx_typepvec (void) const
octave_idx_type rows (void) const
PermMatrix transpose (void) const

Static Public Member Functions

static PermMatrix eye (octave_idx_type n)

Protected Types

typedef bool(* compare_fcn_type )(typename ref_param< octave_idx_type >::type, typename ref_param< octave_idx_type >::type)
typedef ref_param
< octave_idx_type >::type 
crefT
typedef octave_idx_type element_type

Protected Member Functions

Array< octave_idx_typeas_column (void) const
Array< octave_idx_typeas_matrix (void) const
Array< octave_idx_typeas_row (void) const
void assign (const idx_vector &i, const Array< octave_idx_type > &rhs, const octave_idx_type &rfv=resize_fill_value())
void assign (const idx_vector &i, const idx_vector &j, const Array< octave_idx_type > &rhs, const octave_idx_type &rfv=resize_fill_value())
void assign (const Array< idx_vector > &ia, const Array< octave_idx_type > &rhs, const octave_idx_type &rfv=resize_fill_value())
octave_idx_type capacity (void) const
crefT checkelem (const Array< octave_idx_type > &ra_idx) const
octave_idx_typecheckelem (octave_idx_type n)
octave_idx_typecheckelem (octave_idx_type i, octave_idx_type j)
octave_idx_typecheckelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
octave_idx_typecheckelem (const Array< octave_idx_type > &ra_idx)
crefT checkelem (octave_idx_type n) const
crefT checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
void chop_trailing_singletons (void) GCC_ATTR_DEPRECATED
void clear (const dim_vector &dv)
void clear (octave_idx_type r, octave_idx_type c)
void clear (void)
Array< octave_idx_typecolumn (octave_idx_type k) const
octave_idx_type compute_index (const Array< octave_idx_type > &ra_idx) const
octave_idx_type compute_index (octave_idx_type i, octave_idx_type j) const
octave_idx_type compute_index (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
octave_idx_type compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const
void delete_elements (const idx_vector &i)
void delete_elements (int dim, const idx_vector &i)
void delete_elements (const Array< idx_vector > &ia)
Array< octave_idx_typediag (octave_idx_type k=0) const
octave_idx_type dim3 (void) const
octave_idx_typeelem (octave_idx_type n)
octave_idx_typeelem (octave_idx_type i, octave_idx_type j)
octave_idx_typeelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
octave_idx_typeelem (const Array< octave_idx_type > &ra_idx)
crefT elem (octave_idx_type n) const
crefT elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
crefT elem (const Array< octave_idx_type > &ra_idx) const
void fill (const octave_idx_type &val)
Array< octave_idx_typefind (octave_idx_type n=-1, bool backward=false) const
Array< octave_idx_typehermitian (octave_idx_type(*fcn)(const octave_idx_type &)=0) const
Array< octave_idx_typeindex (const idx_vector &i, const idx_vector &j, bool resize_ok, const octave_idx_type &rfv=resize_fill_value()) const
Array< octave_idx_typeindex (const Array< idx_vector > &ia, bool resize_ok, const octave_idx_type &rfv=resize_fill_value()) const
Array< octave_idx_typeindex (const idx_vector &i) const
Array< octave_idx_typeindex (const idx_vector &i, const idx_vector &j) const
Array< octave_idx_typeindex (const Array< idx_vector > &ia) const
Array< octave_idx_typeindex (const idx_vector &i, bool resize_ok, const octave_idx_type &rfv=resize_fill_value()) const
Array< octave_idx_type > & insert (const Array< octave_idx_type > &a, const Array< octave_idx_type > &idx)
Array< octave_idx_type > & insert (const Array< octave_idx_type > &a, octave_idx_type r, octave_idx_type c)
Array< octave_idx_typeipermute (const Array< octave_idx_type > &vec) const
bool is_empty (void) const
bool is_shared (void)
sortmode is_sorted (sortmode mode=UNSORTED) const
sortmode is_sorted_rows (sortmode mode=UNSORTED) const
bool is_square (void) const
bool is_vector (void) const
Array< octave_idx_typelinear_slice (octave_idx_type lo, octave_idx_type up) const
octave_idx_type lookup (const octave_idx_type &value, sortmode mode=UNSORTED) const
Array< octave_idx_typelookup (const Array< octave_idx_type > &values, sortmode mode=UNSORTED) const
void make_unique (void)
Array< U > map (U(&fcn)(octave_idx_type)) const
Array< U > map (U(&fcn)(const octave_idx_type &)) const
Array< U > map (F fcn) const
void maybe_economize (void)
void * mex_get_data (void) const
int ndims (void) const
octave_idx_type nnz (void) const
Array< octave_idx_typenth_element (const idx_vector &n, int dim=0) const
octave_idx_typeoperator() (octave_idx_type n)
octave_idx_typeoperator() (octave_idx_type i, octave_idx_type j)
crefT operator() (octave_idx_type n) const
octave_idx_typeoperator() (const Array< octave_idx_type > &ra_idx)
crefT operator() (const Array< octave_idx_type > &ra_idx) const
crefT operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
octave_idx_typeoperator() (octave_idx_type i, octave_idx_type j, octave_idx_type k)
bool optimize_dimensions (const dim_vector &dv)
Array< octave_idx_typepage (octave_idx_type k) const
octave_idx_type pages (void) const
Array< octave_idx_typepermute (const Array< octave_idx_type > &vec, bool inv=false) const
Array< octave_idx_typereshape (octave_idx_type nr, octave_idx_type nc) const
Array< octave_idx_typereshape (const dim_vector &new_dims) const
void resize (const dim_vector &dv, const octave_idx_type &rfv=resize_fill_value())
void resize (octave_idx_type n) GCC_ATTR_DEPRECATED
void resize (octave_idx_type nr, octave_idx_type nc, const octave_idx_type &rfv=resize_fill_value()) GCC_ATTR_DEPRECATED
void resize1 (octave_idx_type n, const octave_idx_type &rfv=resize_fill_value())
Array< octave_idx_typesort (int dim=0, sortmode mode=ASCENDING) const
Array< octave_idx_typesort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const
Array< octave_idx_typesort_rows_idx (sortmode mode=ASCENDING) const
Array< octave_idx_typesqueeze (void) const
bool test (F fcn) const
bool test_all (bool(&fcn)(octave_idx_type)) const
bool test_all (F fcn) const
bool test_all (bool(&fcn)(const octave_idx_type &)) const
bool test_any (F fcn) const
bool test_any (bool(&fcn)(octave_idx_type)) const
bool test_any (bool(&fcn)(const octave_idx_type &)) const
crefT xelem (const Array< octave_idx_type > &ra_idx) const
crefT xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const
crefT xelem (octave_idx_type i, octave_idx_type j) const
octave_idx_typexelem (octave_idx_type i, octave_idx_type j, octave_idx_type k)
octave_idx_typexelem (const Array< octave_idx_type > &ra_idx)
octave_idx_typexelem (octave_idx_type n)
octave_idx_typexelem (octave_idx_type i, octave_idx_type j)
crefT xelem (octave_idx_type n) const

Static Protected Member Functions

static Array< octave_idx_typecat (int dim, octave_idx_type n, const Array< octave_idx_type > *array_list)
static const octave_idx_typeresize_fill_value ()

Protected Attributes

dim_vector dimensions
Array< octave_idx_type >
::ArrayRep * 
rep
octave_idx_typeslice_data
octave_idx_type slice_len

Private Attributes

bool _colp

Friends

OCTAVE_API PermMatrix operator* (const PermMatrix &a, const PermMatrix &b)

Detailed Description

Definition at line 32 of file PermMatrix.h.


Member Typedef Documentation

typedef bool(* Array< octave_idx_type >::compare_fcn_type)(typename ref_param< octave_idx_type >::type, typename ref_param< octave_idx_type >::type) [inherited]

Definition at line 127 of file Array.h.

typedef ref_param<octave_idx_type >::type Array< octave_idx_type >::crefT [inherited]

Definition at line 125 of file Array.h.

Definition at line 123 of file Array.h.


Constructor & Destructor Documentation

PermMatrix::PermMatrix ( void   )  [inline]

Definition at line 37 of file PermMatrix.h.

Referenced by eye(), and power().

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 
)
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 
)

Member Function Documentation

Array<octave_idx_type > Array< octave_idx_type >::as_column ( void   )  const [inline, inherited]

Definition at line 274 of file Array.h.

Array<octave_idx_type > Array< octave_idx_type >::as_matrix ( void   )  const [inline, inherited]

Definition at line 294 of file Array.h.

Array<octave_idx_type > Array< octave_idx_type >::as_row ( void   )  const [inline, inherited]

Definition at line 284 of file Array.h.

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]

Definition at line 264 of file Array.h.

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]

Definition at line 315 of file Array.h.

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]

Definition at line 261 of file Array.h.

octave_idx_type PermMatrix::cols ( void   )  const [inline]
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]

Definition at line 322 of file Array.h.

const octave_idx_type* PermMatrix::data ( void   )  const [inline]
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]

Definition at line 271 of file Array.h.

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]

Definition at line 387 of file Array.h.

crefT Array< octave_idx_type >::elem ( const Array< octave_idx_type > &  ra_idx  )  const [inline, inherited]

Definition at line 389 of file Array.h.

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]

Definition at line 353 of file Array.h.

octave_idx_type & Array< octave_idx_type >::elem ( octave_idx_type  i,
octave_idx_type  j 
) [inline, inherited]

Definition at line 359 of file Array.h.

octave_idx_type & Array< octave_idx_type >::elem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) [inline, inherited]

Definition at line 361 of file Array.h.

octave_idx_type & Array< octave_idx_type >::elem ( const Array< octave_idx_type > &  ra_idx  )  [inline, inherited]

Definition at line 363 of file Array.h.

crefT Array< octave_idx_type >::elem ( octave_idx_type  n  )  const [inline, inherited]

Definition at line 383 of file Array.h.

PermMatrix PermMatrix::eye ( octave_idx_type  n  )  [static]

Definition at line 182 of file PermMatrix.cc.

References PermMatrix().

Referenced by DEFUN_DLD().

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

Definition at line 95 of file PermMatrix.cc.

References transpose().

Referenced by DEFUN_DLD().

Array<octave_idx_type > Array< octave_idx_type >::ipermute ( const Array< octave_idx_type > &  vec  )  const [inline, inherited]

Reimplemented in MArray< octave_idx_type >.

Definition at line 423 of file Array.h.

bool PermMatrix::is_col_perm ( void   )  const [inline]
bool Array< octave_idx_type >::is_empty ( void   )  const [inline, inherited]

Definition at line 428 of file Array.h.

bool PermMatrix::is_row_perm ( void   )  const [inline]
bool Array< octave_idx_type >::is_shared ( void   )  [inline, inherited]

Definition at line 441 of file Array.h.

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]

Definition at line 426 of file Array.h.

bool Array< octave_idx_type >::is_vector ( void   )  const [inline, inherited]

Definition at line 430 of file Array.h.

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]

Definition at line 109 of file Array.h.

Array<U> Array< octave_idx_type >::map ( fcn  )  const [inline, inherited]

Definition at line 573 of file Array.h.

Array<U> Array< octave_idx_type >::map ( U(&)(const octave_idx_type &)  fcn  )  const [inline, inherited]

Definition at line 609 of file Array.h.

Array<U> Array< octave_idx_type >::map ( U(&)(octave_idx_type fcn  )  const [inline, inherited]

Definition at line 604 of file Array.h.

void Array< octave_idx_type >::maybe_economize ( void   )  [inline, inherited]

Definition at line 514 of file Array.h.

void* Array< octave_idx_type >::mex_get_data ( void   )  const [inline, inherited]

Definition at line 529 of file Array.h.

int Array< octave_idx_type >::ndims ( void   )  const [inline, inherited]

Definition at line 443 of file Array.h.

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]

Definition at line 372 of file Array.h.

octave_idx_type & Array< octave_idx_type >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) [inline, inherited]

Definition at line 374 of file Array.h.

octave_idx_type & Array< octave_idx_type >::operator() ( const Array< octave_idx_type > &  ra_idx  )  [inline, inherited]

Definition at line 375 of file Array.h.

crefT Array< octave_idx_type >::operator() ( octave_idx_type  n  )  const [inline, inherited]

Definition at line 398 of file Array.h.

octave_idx_type & Array< octave_idx_type >::operator() ( octave_idx_type  i,
octave_idx_type  j 
) [inline, inherited]

Definition at line 373 of file Array.h.

crefT Array< octave_idx_type >::operator() ( const Array< octave_idx_type > &  ra_idx  )  const [inline, inherited]

Definition at line 401 of file Array.h.

crefT Array< octave_idx_type >::operator() ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const [inline, inherited]

Definition at line 400 of file Array.h.

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]

Definition at line 306 of file Array.h.

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]
Array<octave_idx_type > Array< octave_idx_type >::reshape ( const dim_vector new_dims  )  const [inline, inherited]

Reimplemented in MArray< octave_idx_type >.

Definition at line 419 of file Array.h.

Array<octave_idx_type > Array< octave_idx_type >::reshape ( octave_idx_type  nr,
octave_idx_type  nc 
) const [inline, inherited]

Definition at line 416 of file Array.h.

void Array< octave_idx_type >::resize ( octave_idx_type  n  )  [inline, inherited]

Definition at line 459 of file Array.h.

void Array< octave_idx_type >::resize ( octave_idx_type  nr,
octave_idx_type  nc,
const octave_idx_type rfv = resize_fill_value () 
) [inline, inherited]

Definition at line 462 of file Array.h.

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]
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 ( fcn  )  const [inline, inherited]

Definition at line 614 of file Array.h.

bool Array< octave_idx_type >::test_all ( fcn  )  const [inline, inherited]

Definition at line 648 of file Array.h.

bool Array< octave_idx_type >::test_all ( bool(&)(octave_idx_type fcn  )  const [inline, inherited]

Definition at line 658 of file Array.h.

bool Array< octave_idx_type >::test_all ( bool(&)(const octave_idx_type &)  fcn  )  const [inline, inherited]

Definition at line 661 of file Array.h.

bool Array< octave_idx_type >::test_any ( fcn  )  const [inline, inherited]

Definition at line 644 of file Array.h.

bool Array< octave_idx_type >::test_any ( bool(&)(const octave_idx_type &)  fcn  )  const [inline, inherited]

Definition at line 655 of file Array.h.

bool Array< octave_idx_type >::test_any ( bool(&)(octave_idx_type fcn  )  const [inline, inherited]

Definition at line 652 of file Array.h.

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]

Definition at line 333 of file Array.h.

octave_idx_type & Array< octave_idx_type >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) [inline, inherited]

Definition at line 330 of file Array.h.

crefT Array< octave_idx_type >::xelem ( octave_idx_type  n  )  const [inline, inherited]

Definition at line 328 of file Array.h.

crefT Array< octave_idx_type >::xelem ( octave_idx_type  i,
octave_idx_type  j,
octave_idx_type  k 
) const [inline, inherited]

Definition at line 335 of file Array.h.

octave_idx_type & Array< octave_idx_type >::xelem ( const Array< octave_idx_type > &  ra_idx  )  [inline, inherited]

Definition at line 338 of file Array.h.

crefT Array< octave_idx_type >::xelem ( const Array< octave_idx_type > &  ra_idx  )  const [inline, inherited]

Definition at line 341 of file Array.h.

crefT Array< octave_idx_type >::xelem ( octave_idx_type  i,
octave_idx_type  j 
) const [inline, inherited]

Definition at line 331 of file Array.h.


Friends And Related Function Documentation

OCTAVE_API PermMatrix operator* ( const PermMatrix a,
const PermMatrix b 
) [friend]

Definition at line 192 of file PermMatrix.cc.


Member Data Documentation

Definition at line 125 of file PermMatrix.h.

Referenced by operator*(), power(), and transpose().

dim_vector Array< octave_idx_type >::dimensions [protected, inherited]

Definition at line 132 of file Array.h.

Array<octave_idx_type >::ArrayRep* Array< octave_idx_type >::rep [protected, inherited]

Definition at line 134 of file Array.h.

octave_idx_type * Array< octave_idx_type >::slice_data [protected, inherited]

Definition at line 143 of file Array.h.

octave_idx_type Array< octave_idx_type >::slice_len [protected, inherited]

Definition at line 144 of file Array.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines