26 #if ! defined (octave_PermMatrix_h)
27 #define octave_PermMatrix_h 1
29 #include "octave-config.h"
70 {
return perm_length (); }
81 int ndims (
void)
const {
return 2; }
114 void print_info (std::ostream& os,
const std::string& prefix)
const
OCTAVE_API PermMatrix operator*(const PermMatrix &a, const PermMatrix &b)
N Dimensional Array with copy-on-write semantics.
OCTARRAY_OVERRIDABLE_FUNC_API std::size_t byte_size(void) const
Size of the specified dimension.
OCTARRAY_OVERRIDABLE_FUNC_API octave_idx_type numel(void) const
Number of elements in the array.
Array< T, Alloc > & operator=(const Array< T, Alloc > &a)
OCTARRAY_API void print_info(std::ostream &os, const std::string &prefix) const
Size of the specified dimension.
octave_idx_type perm_length(void) const
const Array< octave_idx_type > & col_perm_vec(void) const
octave_idx_type dim2(void) const
std::size_t byte_size(void) const
bool is_row_perm(void) const
octave_idx_type cols(void) const
octave_idx_type columns(void) const
octave_idx_type dim1(void) const
octave_idx_type elem(octave_idx_type i, octave_idx_type j) const
void print_info(std::ostream &os, const std::string &prefix) const
~PermMatrix(void)=default
octave_idx_type rows(void) const
PermMatrix(const PermMatrix &m)=default
dim_vector dims(void) const
octave_idx_type length(void) const
octave_idx_type numel(void) const
bool is_col_perm(void) const
Vector representing the dimensions (size) of an Array.
octave::idx_vector idx_vector
class OCTAVE_API PermMatrix
T::size_type numel(const T &str)
static void transpose(octave_idx_type N, const octave_idx_type *ridx, const octave_idx_type *cidx, octave_idx_type *ridx2, octave_idx_type *cidx2)