Logo Search packages:      
Sourcecode: octave2.1 version File versions  Download package

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

Matrix Class Reference

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

List of all members.

Public Types

typedef void(* solve_singularity_handler )(double rcond)

Public Member Functions

Matrix abs (void) const
boolMatrix all (int dim=-1) const
bool all_elements_are_int_or_inf_or_nan (void) const
bool all_integers (double &max_val, double &min_val) const
boolMatrix any (int dim=-1) const
bool any_element_is_inf_or_nan (void) const
bool any_element_is_negative (bool=false) const
Matrix append (const ColumnVector &a) const
Matrix append (const RowVector &a) const
Matrix append (const Matrix &a) const
Matrix append (const DiagMatrix &a) const
Matrixapply (d_d_Mapper f)
size_t byte_size (void) const
int capacity (void) const
double & checkelem (int n)
double & checkelem (int i, int j)
double & checkelem (int i, int j, int k)
double & checkelem (const Array< int > &ra_idx)
double checkelem (int n) const
double checkelem (int i, int j) const
double checkelem (int i, int j, int k) const
double checkelem (const Array< int > &ra_idx) const
void chop_trailing_singletons (void)
void clear_index (void)
int cols (void) const
ColumnVector column (int i) const
ColumnVector column (char *s) const
RowVector column_max (void) const
RowVector column_max (Array< int > &index) const
RowVector column_min (void) const
RowVector column_min (Array< int > &index) const
int columns (void) const
int compute_index (const Array< int > &ra_idx) const
Matrix cumprod (int dim=-1) const
Matrix cumsum (int dim=-1) const
const double * data (void) const
DET determinant (void) const
DET determinant (int &info) const
DET determinant (int &info, double &rcond, int calc_cond=1) const
ColumnVector diag (void) const
ColumnVector diag (int k) const
int dim1 (void) const
int dim2 (void) const
int dim3 (void) const
dim_vector dims (void) const
double & elem (int n)
double & elem (int i, int j)
double & elem (int i, int j, int k)
double & elem (const Array< int > &ra_idx)
double elem (int n) const
double elem (int i, int j) const
double elem (int i, int j, int k) const
double elem (const Array< int > &ra_idx) const
Matrix expm (void) const
Matrix extract (int r1, int c1, int r2, int c2) const
Matrix extract_n (int r1, int c1, int nr, int nc) const
Matrixfill (double val)
Matrixfill (double val, int r1, int c1, int r2, int c2)
void fill (const double &val)
const double * fortran_vec (void) const
double * fortran_vec (void)
ComplexMatrix fourier (void) const
ComplexMatrix fourier2d (void) const
idx_vectorget_idx (void) const
ComplexMatrix ifourier (void) const
ComplexMatrix ifourier2d (void) const
Array2< double > index (idx_vector &i, idx_vector &j, int resize_ok=0, const double &rfv=resize_fill_value(double())) const
Array< double > index (Array< idx_vector > &ra_idx, int resize_ok=0, const double &rfv=resize_fill_value(double())) const
Array2< double > index (idx_vector &i, int resize_ok=0, const double &rfv=resize_fill_value(double())) const
Array< double > index1 (idx_vector &i, int resize_ok=0, const double &rfv=resize_fill_value(double())) const
Array< double > index2 (idx_vector &i, int resize_ok=0, const double &rfv=resize_fill_value(double())) const
int index_count (void) const
Array< double > indexN (idx_vector &i, int resize_ok=0, const double &rfv=resize_fill_value(double())) const
Matrixinsert (const RowVector &a, int r, int c)
Matrixinsert (const ColumnVector &a, int r, int c)
Matrixinsert (const DiagMatrix &a, int r, int c)
Matrixinsert (const Matrix &a, int r, int c)
MArray2< double > & insert (const Array2< double > &a, int r, int c)
Array< double > & insert (const Array< double > &a, int r, int c)
Array< double > & insert (const Array< double > &a, const Array< int > &idx)
Array< double > & insert2 (const Array< double > &a, int r, int c)
Array< double > & insertN (const Array< double > &a, int r, int c)
Matrix inverse (int &info) const
Matrix inverse (void) const
Matrix inverse (int &info, double &rcond, int force=0, int calc_cond=1) const
Array< double > ipermute (const Array< int > &vec) const
bool is_empty (void) const
bool is_square (void) const
bool is_symmetric (void) const
int length (void) const
Matrix lssolve (const Matrix &b, int &info, int &rank) const
Matrix lssolve (const Matrix &b, int &info) const
ComplexMatrix lssolve (const ComplexMatrix &b) const
ComplexMatrix lssolve (const ComplexMatrix &b, int &info) const
ComplexMatrix lssolve (const ComplexMatrix &b, int &info, int &rank) const
ColumnVector lssolve (const ColumnVector &b) const
ColumnVector lssolve (const ColumnVector &b, int &info) const
ColumnVector lssolve (const ColumnVector &b, int &info, int &rank) const
ComplexColumnVector lssolve (const ComplexColumnVector &b) const
ComplexColumnVector lssolve (const ComplexColumnVector &b, int &info) const
ComplexColumnVector lssolve (const ComplexColumnVector &b, int &info, int &rank) const
Matrix lssolve (const Matrix &b) const
Matrix map (d_d_Mapper f) const
boolMatrix map (b_d_Mapper f) const
 Matrix (const DiagMatrix &a)
 Matrix (const Matrix &a)
 Matrix (int r, int c)
 Matrix (const boolMatrix &a)
 Matrix (const charMatrix &a)
 Matrix (const MArray2< double > &a)
 Matrix (const RowVector &rv)
 Matrix (const ColumnVector &cv)
 Matrix (int r, int c, double val)
void maybe_delete_dims (void)
void maybe_delete_elements (idx_vector &i)
void maybe_delete_elements (idx_vector &i, idx_vector &j)
void maybe_delete_elements (idx_vector &i, idx_vector &j, idx_vector &k)
void maybe_delete_elements (Array< idx_vector > &ra_idx, const double &rfv)
void maybe_delete_elements_1 (idx_vector &i)
void maybe_delete_elements_2 (idx_vector &i)
int ndims (void) const
int nelem (void) const
int numel (void) const
boolMatrix operator! (void) const
bool operator!= (const Matrix &a) const
double & operator() (int n)
double operator() (int i, int j) const
double operator() (int n) const
double operator() (int i, int j, int k) const
double operator() (const Array< int > &ra_idx) const
double & operator() (int i, int j, int k)
double & operator() (const Array< int > &ra_idx)
double & operator() (int i, int j)
Matrixoperator+= (const DiagMatrix &a)
Matrixoperator-= (const DiagMatrix &a)
Matrixoperator= (const Matrix &a)
bool operator== (const Matrix &a) const
int pages (void) const
Array< double > permute (const Array< int > &vec, bool inv=false) const
void print_info (std::ostream &os, const std::string &prefix) const
Matrix prod (int dim=-1) const
Matrix pseudo_inverse (double tol=0.0) const
Array< double > & qsort (int(*compare)(const void *, const void *))
double range_error (const char *fcn, int i, int j, int k) const
double range_error (const char *fcn, int i, int j) const
double & range_error (const char *fcn, int i, int j)
double range_error (const char *fcn, const Array< int > &ra_idx) const
double range_error (const char *fcn, int n) const
double & range_error (const char *fcn, int n)
double & range_error (const char *fcn, int i, int j, int k)
double & range_error (const char *fcn, const Array< int > &ra_idx)
Array< double > reshape (const dim_vector &new_dims) const
void resize (int n, const double &val)
void resize (int r, int c)
void resize (int r, int c, const double &val)
void resize (int n)
void resize (const dim_vector &dv, const double &val)
void resize (const dim_vector &dv)
void resize_and_fill (const dim_vector &dv, const double &val)
void resize_and_fill (int r, int c, const double &val)
void resize_and_fill (int r, int c, int p, const double &val)
void resize_and_fill (int n, const double &val)
void resize_no_fill (int r, int c)
void resize_no_fill (int n)
void resize_no_fill (const dim_vector &dv)
void resize_no_fill (int r, int c, int p)
RowVector row (int i) const
RowVector row (char *s) const
ColumnVector row_max (Array< int > &index) const
ColumnVector row_max (void) const
ColumnVector row_min (Array< int > &index) const
ColumnVector row_min (void) const
int rows (void) const
void set_index (const idx_vector &i)
ColumnVector solve (const ColumnVector &b) const
ComplexColumnVector solve (const ComplexColumnVector &b, int &info, double &rcond, solve_singularity_handler sing_handler) const
ColumnVector solve (const ColumnVector &b, int &info, double &rcond, solve_singularity_handler sing_handler) const
ComplexMatrix solve (const ComplexMatrix &b, int &info, double &rcond) const
ComplexColumnVector solve (const ComplexColumnVector &b, int &info, double &rcond) const
ComplexColumnVector solve (const ComplexColumnVector &b) const
ComplexColumnVector solve (const ComplexColumnVector &b, int &info) const
ComplexMatrix solve (const ComplexMatrix &b, int &info) const
Matrix solve (const Matrix &b, int &info, double &rcond) const
ColumnVector solve (const ColumnVector &b, int &info, double &rcond) const
Matrix solve (const Matrix &b, int &info, double &rcond, solve_singularity_handler sing_handler) const
ComplexMatrix solve (const ComplexMatrix &b) const
Matrix solve (const Matrix &b) const
ComplexMatrix solve (const ComplexMatrix &b, int &info, double &rcond, solve_singularity_handler sing_handler) const
Matrix solve (const Matrix &b, int &info) const
ColumnVector solve (const ColumnVector &b, int &info) const
Array< double > squeeze (void) const
Matrix stack (const DiagMatrix &a) const
Matrix stack (const Matrix &a) const
Matrix stack (const RowVector &a) const
Matrix stack (const ColumnVector &a) const
Matrix sum (int dim=-1) const
Matrix sumsq (int dim=-1) const
bool too_large_for_float (void) const
Matrix transpose (void) const
Array< double > value (void)
double xelem (int i, int j, int k) const
double & xelem (int i, int j)
double & xelem (int n)
double xelem (int n) const
double xelem (int i, int j) const
double & xelem (const Array< int > &ra_idx)
double & xelem (int i, int j, int k)
double xelem (const Array< int > &ra_idx) const

Static Public Member Functions

static int get_size (int r, int c, int p)
static int get_size (const dim_vector &dv)
static double resize_fill_value (void)

Public Attributes

dim_vector dimensions
Array< double >::ArrayRep * rep

Protected Member Functions

void make_unique (void)
void make_unique (const double &val)

Static Protected Member Functions

static int get_size (int r, int c)

Protected Attributes

idx_vectoridx
int idx_count

Private Member Functions

 Matrix (double *d, int r, int c)

Friends

Matrix imag (const ComplexMatrix &a)
Matrix operator* (const ColumnVector &a, const RowVector &b)
std::ostream & operator<< (std::ostream &os, const Matrix &a)
std::istream & operator>> (std::istream &is, Matrix &a)
Matrix real (const ComplexMatrix &a)

Detailed Description

Definition at line 37 of file dMatrix.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index