GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "MatrixType.h"
Public Types | |
enum | matrix_type { Unknown = 0, Full, Diagonal, Permuted_Diagonal, Upper, Lower, Permuted_Upper, Permuted_Lower, Banded, Hermitian, Banded_Hermitian, Tridiagonal, Tridiagonal_Hermitian, Rectangular } |
Private Member Functions | |
void | type (int new_typ) |
Private Attributes | |
double | bandden |
bool | dense |
bool | full |
octave_idx_type | lower_band |
octave_idx_type | nperm |
octave_idx_type * | perm |
double | sp_bandden |
matrix_type | typ |
octave_idx_type | upper_band |
Definition at line 34 of file MatrixType.h.
Unknown | |
Full | |
Diagonal | |
Permuted_Diagonal | |
Upper | |
Lower | |
Permuted_Upper | |
Permuted_Lower | |
Banded | |
Hermitian | |
Banded_Hermitian | |
Tridiagonal | |
Tridiagonal_Hermitian | |
Rectangular |
Definition at line 39 of file MatrixType.h.
MatrixType::MatrixType | ( | void | ) |
Definition at line 41 of file MatrixType.cc.
MatrixType::MatrixType | ( | const MatrixType & | a | ) |
Definition at line 47 of file MatrixType.cc.
MatrixType::MatrixType | ( | const Matrix & | a | ) |
Definition at line 176 of file MatrixType.cc.
References matrix_real_probe(), and typ.
MatrixType::MatrixType | ( | const ComplexMatrix & | a | ) |
Definition at line 184 of file MatrixType.cc.
References matrix_complex_probe(), and typ.
MatrixType::MatrixType | ( | const FloatMatrix & | a | ) |
Definition at line 193 of file MatrixType.cc.
References matrix_real_probe(), and typ.
MatrixType::MatrixType | ( | const FloatComplexMatrix & | a | ) |
Definition at line 201 of file MatrixType.cc.
References matrix_complex_probe(), and typ.
MatrixType::MatrixType | ( | const SparseMatrix & | a | ) |
Definition at line 209 of file MatrixType.cc.
References bandden, Banded, Banded_Hermitian, Sparse< T >::cidx(), Sparse< T >::cols(), d, Sparse< T >::data(), dense, Diagonal, Full, octave_sparse_params::get_bandden(), octave_sparse_params::get_key(), Hermitian, Lower, lower_band, Sparse< T >::nnz(), nperm, OCTAVE_LOCAL_BUFFER, perm, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, Rectangular, Sparse< T >::ridx(), Sparse< T >::rows(), sp_bandden, Tridiagonal, Tridiagonal_Hermitian, typ, Upper, and upper_band.
MatrixType::MatrixType | ( | const SparseComplexMatrix & | a | ) |
Definition at line 528 of file MatrixType.cc.
References bandden, Banded, Banded_Hermitian, Sparse< T >::cidx(), Sparse< T >::cols(), conj(), d, Sparse< T >::data(), dense, Diagonal, Full, octave_sparse_params::get_bandden(), octave_sparse_params::get_key(), Hermitian, Lower, lower_band, Sparse< T >::nnz(), norm(), nperm, OCTAVE_LOCAL_BUFFER, perm, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, ColumnVector::real, Rectangular, Sparse< T >::ridx(), Sparse< T >::rows(), sp_bandden, Tridiagonal, Tridiagonal_Hermitian, typ, Upper, and upper_band.
MatrixType::MatrixType | ( | const matrix_type | t, |
bool | _full = false |
||
) |
Definition at line 847 of file MatrixType.cc.
References current_liboctave_warning_handler, Diagonal, Full, Lower, Permuted_Diagonal, Rectangular, Tridiagonal, Tridiagonal_Hermitian, typ, Unknown, and Upper.
MatrixType::MatrixType | ( | const matrix_type | t, |
const octave_idx_type | np, | ||
const octave_idx_type * | p, | ||
bool | _full = false |
||
) |
Definition at line 863 of file MatrixType.cc.
References current_liboctave_warning_handler, nperm, perm, Permuted_Lower, Permuted_Upper, and typ.
MatrixType::MatrixType | ( | const matrix_type | t, |
const octave_idx_type | ku, | ||
const octave_idx_type | kl, | ||
bool | _full = false |
||
) |
Definition at line 883 of file MatrixType.cc.
References Banded, Banded_Hermitian, current_liboctave_warning_handler, lower_band, typ, and upper_band.
MatrixType::~MatrixType | ( | void | ) |
Definition at line 900 of file MatrixType.cc.
Definition at line 99 of file MatrixType.h.
Definition at line 1138 of file MatrixType.cc.
References bandden, Banded, Banded_Hermitian, Diagonal, Full, octave_sparse_params::get_key(), Hermitian, Lower, lower_band, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, Rectangular, Tridiagonal, Tridiagonal_Hermitian, typ, Unknown, Upper, and upper_band.
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), ddaslv(), ddaspk(), ddasrt(), ddassl(), dheqr(), SparseMatrix::dinverse(), SparseComplexMatrix::dinverse(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), dspigm(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), setgmn(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), and xerbla().
Definition at line 138 of file MatrixType.h.
Referenced by Fmatrix_type().
Definition at line 116 of file MatrixType.h.
Definition at line 105 of file MatrixType.h.
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseMatrix::trisolve(), and SparseComplexMatrix::trisolve().
Definition at line 107 of file MatrixType.h.
Definition at line 122 of file MatrixType.h.
Referenced by Matrix::inverse(), SparseMatrix::inverse(), FloatMatrix::inverse(), SparseComplexMatrix::inverse(), ComplexMatrix::inverse(), and FloatComplexMatrix::inverse().
Definition at line 130 of file MatrixType.h.
Definition at line 113 of file MatrixType.h.
Definition at line 128 of file MatrixType.h.
Definition at line 119 of file MatrixType.h.
Definition at line 132 of file MatrixType.h.
Referenced by do_sqrtm(), and Fmatrix_type().
Definition at line 110 of file MatrixType.h.
|
inline |
Definition at line 150 of file MatrixType.h.
Referenced by Fmatrix_type().
Definition at line 157 of file MatrixType.h.
Definition at line 140 of file MatrixType.h.
Referenced by Fmatrix_type().
Definition at line 153 of file MatrixType.h.
Referenced by Fmatrix_type().
Definition at line 146 of file MatrixType.h.
Referenced by Fmatrix_type().
Definition at line 159 of file MatrixType.h.
void MatrixType::mark_as_permuted | ( | const octave_idx_type | np, |
const octave_idx_type * | p | ||
) |
Definition at line 1221 of file MatrixType.cc.
References current_liboctave_error_handler, Diagonal, Lower, nperm, perm, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, typ, and Upper.
Referenced by Fmatrix_type().
Definition at line 142 of file MatrixType.h.
Referenced by Fmatrix_type().
Definition at line 155 of file MatrixType.h.
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Matrix::finverse(), FloatMatrix::finverse(), ComplexMatrix::finverse(), FloatComplexMatrix::finverse(), Fmatrix_type(), Matrix::fsolve(), FloatMatrix::fsolve(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), Matrix::rcond(), FloatMatrix::rcond(), ComplexMatrix::rcond(), FloatComplexMatrix::rcond(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), and SparseComplexMatrix::utsolve().
Definition at line 1190 of file MatrixType.cc.
References Banded, Banded_Hermitian, current_liboctave_error_handler, Full, Hermitian, Tridiagonal, Tridiagonal_Hermitian, typ, and Unknown.
Referenced by Fmatrix_type().
Definition at line 148 of file MatrixType.h.
Referenced by Fmatrix_type().
Definition at line 1241 of file MatrixType.cc.
References Diagonal, Lower, nperm, perm, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, typ, and Upper.
Definition at line 1207 of file MatrixType.cc.
References Banded, Banded_Hermitian, Full, Hermitian, Tridiagonal, Tridiagonal_Hermitian, typ, and Unknown.
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), Matrix::determinant(), FloatMatrix::determinant(), ComplexMatrix::determinant(), FloatComplexMatrix::determinant(), Matrix::fsolve(), FloatMatrix::fsolve(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Matrix::inverse(), SparseMatrix::inverse(), FloatMatrix::inverse(), SparseComplexMatrix::inverse(), ComplexMatrix::inverse(), FloatComplexMatrix::inverse(), oct_binop_mul_cdm_scm(), oct_binop_mul_cdm_sm(), oct_binop_mul_dm_scm(), oct_binop_mul_dm_sm(), oct_binop_mul_scm_cdm(), oct_binop_mul_scm_dm(), oct_binop_mul_sm_cdm(), oct_binop_mul_sm_dm(), Matrix::rcond(), FloatMatrix::rcond(), ComplexMatrix::rcond(), FloatComplexMatrix::rcond(), SparseMatrix::trisolve(), and SparseComplexMatrix::trisolve().
Definition at line 144 of file MatrixType.h.
Referenced by Fmatrix_type().
Definition at line 103 of file MatrixType.h.
Referenced by SparseMatrix::bsolve(), and SparseComplexMatrix::bsolve().
Definition at line 101 of file MatrixType.h.
Referenced by SparseMatrix::bsolve(), and SparseComplexMatrix::bsolve().
MatrixType & MatrixType::operator= | ( | const MatrixType & | a | ) |
Definition at line 909 of file MatrixType.cc.
References bandden, dense, full, lower_band, nperm, perm, sp_bandden, typ, and upper_band.
MatrixType MatrixType::transpose | ( | void | ) | const |
Definition at line 1258 of file MatrixType.cc.
References Banded, Lower, lower_band, Permuted_Lower, Permuted_Upper, typ, Upper, and upper_band.
Referenced by SparseMatrix::inverse(), SparseComplexMatrix::inverse(), and xdiv().
|
inline |
Definition at line 136 of file MatrixType.h.
Referenced by SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::utsolve(), and SparseComplexMatrix::utsolve().
Definition at line 940 of file MatrixType.cc.
References full, octave_sparse_params::get_bandden(), octave_sparse_params::get_key(), sp_bandden, typ, and Unknown.
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), chol2inv(), Matrix::determinant(), FloatMatrix::determinant(), ComplexMatrix::determinant(), FloatComplexMatrix::determinant(), SparseMatrix::dinverse(), SparseComplexMatrix::dinverse(), do_sqrtm(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), Fmatrix_type(), Matrix::fsolve(), FloatMatrix::fsolve(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), Matrix::inverse(), SparseMatrix::inverse(), FloatMatrix::inverse(), SparseComplexMatrix::inverse(), ComplexMatrix::inverse(), FloatComplexMatrix::inverse(), Matrix::ltsolve(), FloatMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), Matrix::rcond(), FloatMatrix::rcond(), ComplexMatrix::rcond(), FloatComplexMatrix::rcond(), Matrix::solve(), FloatMatrix::solve(), ComplexMatrix::solve(), FloatComplexMatrix::solve(), SparseMatrix::solve(), SparseComplexMatrix::solve(), Matrix::tinverse(), FloatMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), ComplexMatrix::tinverse(), FloatComplexMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), Matrix::utsolve(), FloatMatrix::utsolve(), SparseMatrix::utsolve(), SparseComplexMatrix::utsolve(), ComplexMatrix::utsolve(), and FloatComplexMatrix::utsolve().
Definition at line 1030 of file MatrixType.cc.
References full, octave_sparse_params::get_key(), nperm, perm, typ, and Unknown.
int MatrixType::type | ( | const ComplexMatrix & | a | ) |
Definition at line 1057 of file MatrixType.cc.
References full, octave_sparse_params::get_key(), nperm, perm, typ, and Unknown.
int MatrixType::type | ( | const FloatMatrix & | a | ) |
Definition at line 1084 of file MatrixType.cc.
References full, octave_sparse_params::get_key(), nperm, perm, typ, and Unknown.
int MatrixType::type | ( | const FloatComplexMatrix & | a | ) |
Definition at line 1111 of file MatrixType.cc.
References full, octave_sparse_params::get_key(), nperm, perm, typ, and Unknown.
int MatrixType::type | ( | const SparseMatrix & | a | ) |
Definition at line 964 of file MatrixType.cc.
References bandden, dense, full, octave_sparse_params::get_bandden(), octave_sparse_params::get_key(), lower_band, nperm, perm, sp_bandden, typ, Unknown, and upper_band.
int MatrixType::type | ( | const SparseComplexMatrix & | a | ) |
Definition at line 997 of file MatrixType.cc.
References bandden, dense, full, octave_sparse_params::get_bandden(), octave_sparse_params::get_key(), lower_band, nperm, perm, sp_bandden, typ, Unknown, and upper_band.
Definition at line 172 of file MatrixType.h.
|
private |
Definition at line 176 of file MatrixType.h.
Referenced by info(), MatrixType(), operator=(), and type().
|
private |
Definition at line 179 of file MatrixType.h.
Referenced by MatrixType(), operator=(), and type().
|
private |
Definition at line 180 of file MatrixType.h.
Referenced by operator=(), and type().
|
private |
Definition at line 178 of file MatrixType.h.
Referenced by info(), MatrixType(), operator=(), transpose(), and type().
|
private |
Definition at line 181 of file MatrixType.h.
Referenced by mark_as_permuted(), mark_as_unpermuted(), MatrixType(), operator=(), type(), and ~MatrixType().
|
private |
Definition at line 182 of file MatrixType.h.
Referenced by mark_as_permuted(), mark_as_unpermuted(), MatrixType(), operator=(), type(), and ~MatrixType().
|
private |
Definition at line 175 of file MatrixType.h.
Referenced by MatrixType(), operator=(), and type().
|
private |
Definition at line 174 of file MatrixType.h.
Referenced by info(), mark_as_permuted(), mark_as_symmetric(), mark_as_unpermuted(), mark_as_unsymmetric(), MatrixType(), operator=(), transpose(), and type().
|
private |
Definition at line 177 of file MatrixType.h.
Referenced by info(), MatrixType(), operator=(), transpose(), and type().