#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 | m_bandden |
bool | m_dense |
bool | m_full |
octave_idx_type | m_lower_band |
octave_idx_type | m_nperm |
octave_idx_type * | m_perm |
double | m_sp_bandden |
matrix_type | m_type |
octave_idx_type | m_upper_band |
Definition at line 35 of file MatrixType.h.
Enumerator | |
---|---|
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 66 of file MatrixType.cc.
MatrixType::MatrixType | ( | const MatrixType & | a | ) |
Definition at line 72 of file MatrixType.cc.
MatrixType::MatrixType | ( | const Matrix & | a | ) |
Definition at line 203 of file MatrixType.cc.
References m_type, and matrix_real_probe().
MatrixType::MatrixType | ( | const ComplexMatrix & | a | ) |
Definition at line 211 of file MatrixType.cc.
References m_type, and matrix_complex_probe().
MatrixType::MatrixType | ( | const FloatMatrix & | a | ) |
Definition at line 219 of file MatrixType.cc.
References m_type, and matrix_real_probe().
MatrixType::MatrixType | ( | const FloatComplexMatrix & | a | ) |
Definition at line 227 of file MatrixType.cc.
References m_type, and matrix_complex_probe().
OCTAVE_API MatrixType::MatrixType | ( | const MSparse< T > & | a | ) |
MatrixType::MatrixType | ( | const matrix_type | t, |
bool | _full = false |
||
) |
Definition at line 563 of file MatrixType.cc.
References Diagonal, Full, Lower, m_type, Permuted_Diagonal, Rectangular, Tridiagonal, Tridiagonal_Hermitian, Unknown, Upper, and warn_invalid().
MatrixType::MatrixType | ( | const matrix_type | t, |
const octave_idx_type | np, | ||
const octave_idx_type * | p, | ||
bool | _full = false |
||
) |
Definition at line 579 of file MatrixType.cc.
References m_nperm, m_perm, m_type, Permuted_Lower, Permuted_Upper, and warn_invalid().
MatrixType::MatrixType | ( | const matrix_type | t, |
const octave_idx_type | ku, | ||
const octave_idx_type | kl, | ||
bool | _full = false |
||
) |
Definition at line 599 of file MatrixType.cc.
References Banded, Banded_Hermitian, m_lower_band, m_type, m_upper_band, and warn_invalid().
MatrixType::~MatrixType | ( | void | ) |
Definition at line 616 of file MatrixType.cc.
MatrixType::MatrixType | ( | const MSparse< T > & | a | ) |
Definition at line 237 of file MatrixType.cc.
References Banded, Banded_Hermitian, Sparse< T, Alloc >::cidx(), Sparse< T, Alloc >::cols(), conj(), d, Sparse< T, Alloc >::data(), Diagonal, Full, Hermitian, imag(), Lower, m_bandden, m_dense, m_lower_band, m_nperm, m_perm, m_sp_bandden, m_type, m_upper_band, Sparse< T, Alloc >::nnz(), norm(), OCTAVE_LOCAL_BUFFER, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, real(), Rectangular, Sparse< T, Alloc >::ridx(), Sparse< T, Alloc >::rows(), Tridiagonal, Tridiagonal_Hermitian, Upper, and warn_calculating_sparse_type().
|
inline |
Definition at line 99 of file MatrixType.h.
void MatrixType::info | ( | void | ) | const |
Definition at line 846 of file MatrixType.cc.
References Banded, Banded_Hermitian, Diagonal, Full, Hermitian, Lower, m_bandden, m_lower_band, m_type, m_upper_band, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, Rectangular, Tridiagonal, Tridiagonal_Hermitian, Unknown, and Upper.
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), and SparseMatrix::utsolve().
|
inline |
Definition at line 138 of file MatrixType.h.
Referenced by octave_base_sparse< T >::assign(), and Fmatrix_type().
|
inline |
Definition at line 105 of file MatrixType.h.
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), SparseComplexMatrix::trisolve(), and SparseMatrix::trisolve().
|
inline |
Definition at line 130 of file MatrixType.h.
|
inline |
Definition at line 128 of file MatrixType.h.
|
inline |
Definition at line 119 of file MatrixType.h.
|
inline |
Definition at line 132 of file MatrixType.h.
Referenced by do_sqrtm(), and Fmatrix_type().
|
inline |
Definition at line 116 of file MatrixType.h.
|
inline |
Definition at line 107 of file MatrixType.h.
|
inline |
Definition at line 122 of file MatrixType.h.
Referenced by ComplexMatrix::inverse(), Matrix::inverse(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), FloatComplexMatrix::inverse(), and FloatMatrix::inverse().
|
inline |
Definition at line 113 of file MatrixType.h.
|
inline |
Definition at line 110 of file MatrixType.h.
|
inline |
Definition at line 150 of file MatrixType.h.
Referenced by Fmatrix_type().
|
inline |
Definition at line 157 of file MatrixType.h.
|
inline |
Definition at line 140 of file MatrixType.h.
Referenced by Fmatrix_type().
|
inline |
Definition at line 153 of file MatrixType.h.
Referenced by Fmatrix_type(), ComplexMatrix::fsolve(), and FloatComplexMatrix::fsolve().
|
inline |
Definition at line 146 of file MatrixType.h.
Referenced by Fmatrix_type().
|
inline |
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 934 of file MatrixType.cc.
References current_liboctave_error_handler, Diagonal, Lower, m_nperm, m_perm, m_type, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, and Upper.
Referenced by Fmatrix_type().
|
inline |
Definition at line 142 of file MatrixType.h.
Referenced by Fmatrix_type().
|
inline |
Definition at line 155 of file MatrixType.h.
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), ComplexMatrix::finverse(), Matrix::finverse(), FloatComplexMatrix::finverse(), FloatMatrix::finverse(), Fmatrix_type(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), FloatMatrix::fsolve(), Matrix::fsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), ComplexMatrix::rcond(), Matrix::rcond(), FloatComplexMatrix::rcond(), FloatMatrix::rcond(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), SparseComplexMatrix::utsolve(), and SparseMatrix::utsolve().
void MatrixType::mark_as_symmetric | ( | void | ) |
Definition at line 903 of file MatrixType.cc.
References Banded, Banded_Hermitian, current_liboctave_error_handler, Full, Hermitian, m_type, Tridiagonal, Tridiagonal_Hermitian, and Unknown.
Referenced by Fmatrix_type().
|
inline |
Definition at line 148 of file MatrixType.h.
Referenced by Fmatrix_type().
void MatrixType::mark_as_unpermuted | ( | void | ) |
Definition at line 955 of file MatrixType.cc.
References Diagonal, Lower, m_nperm, m_perm, m_type, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, and Upper.
void MatrixType::mark_as_unsymmetric | ( | void | ) |
Definition at line 920 of file MatrixType.cc.
References Banded, Banded_Hermitian, Full, Hermitian, m_type, Tridiagonal, Tridiagonal_Hermitian, and Unknown.
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), ComplexMatrix::determinant(), Matrix::determinant(), FloatComplexMatrix::determinant(), FloatMatrix::determinant(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), FloatMatrix::fsolve(), Matrix::fsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), ComplexMatrix::inverse(), Matrix::inverse(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), FloatComplexMatrix::inverse(), FloatMatrix::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(), ComplexMatrix::rcond(), Matrix::rcond(), FloatComplexMatrix::rcond(), FloatMatrix::rcond(), SparseComplexMatrix::trisolve(), and SparseMatrix::trisolve().
|
inline |
Definition at line 144 of file MatrixType.h.
Referenced by Fmatrix_type().
|
inline |
Definition at line 103 of file MatrixType.h.
Referenced by SparseComplexMatrix::bsolve(), and SparseMatrix::bsolve().
|
inline |
Definition at line 101 of file MatrixType.h.
Referenced by SparseComplexMatrix::bsolve(), and SparseMatrix::bsolve().
MatrixType & MatrixType::operator= | ( | const MatrixType & | a | ) |
Definition at line 625 of file MatrixType.cc.
References m_bandden, m_dense, m_full, m_lower_band, m_nperm, m_perm, m_sp_bandden, m_type, and m_upper_band.
MatrixType MatrixType::transpose | ( | void | ) | const |
Definition at line 973 of file MatrixType.cc.
References Banded, Lower, m_lower_band, m_type, m_upper_band, Permuted_Lower, Permuted_Upper, and Upper.
Referenced by SparseComplexMatrix::inverse(), SparseMatrix::inverse(), oct_unop_hermitian(), oct_unop_transpose(), and xdiv().
|
inline |
Definition at line 136 of file MatrixType.h.
Referenced by SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), SparseComplexMatrix::utsolve(), and SparseMatrix::utsolve().
int MatrixType::type | ( | bool | quiet = true | ) |
Definition at line 656 of file MatrixType.cc.
References m_full, m_sp_bandden, m_type, Unknown, and warn_cached().
Referenced by SparseComplexMatrix::bsolve(), SparseMatrix::bsolve(), ComplexMatrix::determinant(), Matrix::determinant(), FloatComplexMatrix::determinant(), FloatMatrix::determinant(), SparseComplexMatrix::dinverse(), SparseMatrix::dinverse(), do_sqrtm(), SparseComplexMatrix::dsolve(), SparseMatrix::dsolve(), Fmatrix_type(), ComplexMatrix::fsolve(), FloatComplexMatrix::fsolve(), FloatMatrix::fsolve(), Matrix::fsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::fsolve(), ComplexMatrix::inverse(), Matrix::inverse(), SparseComplexMatrix::inverse(), SparseMatrix::inverse(), FloatComplexMatrix::inverse(), FloatMatrix::inverse(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), FloatMatrix::ltsolve(), Matrix::ltsolve(), SparseComplexMatrix::ltsolve(), SparseMatrix::ltsolve(), ComplexMatrix::rcond(), Matrix::rcond(), FloatComplexMatrix::rcond(), FloatMatrix::rcond(), ComplexMatrix::solve(), FloatComplexMatrix::solve(), FloatMatrix::solve(), Matrix::solve(), SparseComplexMatrix::solve(), SparseMatrix::solve(), ComplexMatrix::tinverse(), Matrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::tinverse(), FloatComplexMatrix::tinverse(), FloatMatrix::tinverse(), SparseComplexMatrix::trisolve(), SparseMatrix::trisolve(), ComplexMatrix::utsolve(), FloatComplexMatrix::utsolve(), FloatMatrix::utsolve(), Matrix::utsolve(), SparseComplexMatrix::utsolve(), and SparseMatrix::utsolve().
int MatrixType::type | ( | const ComplexMatrix & | a | ) |
Definition at line 768 of file MatrixType.cc.
References m_full, m_nperm, m_perm, m_type, Unknown, and warn_cached().
int MatrixType::type | ( | const FloatComplexMatrix & | a | ) |
Definition at line 820 of file MatrixType.cc.
References m_full, m_nperm, m_perm, m_type, Unknown, and warn_cached().
int MatrixType::type | ( | const FloatMatrix & | a | ) |
Definition at line 794 of file MatrixType.cc.
References m_full, m_nperm, m_perm, m_type, Unknown, and warn_cached().
int MatrixType::type | ( | const Matrix & | a | ) |
Definition at line 742 of file MatrixType.cc.
References m_full, m_nperm, m_perm, m_type, Unknown, and warn_cached().
int MatrixType::type | ( | const SparseComplexMatrix & | a | ) |
Definition at line 710 of file MatrixType.cc.
References m_bandden, m_dense, m_full, m_lower_band, m_nperm, m_perm, m_sp_bandden, m_type, m_upper_band, Unknown, and warn_cached().
int MatrixType::type | ( | const SparseMatrix & | a | ) |
Definition at line 678 of file MatrixType.cc.
References m_bandden, m_dense, m_full, m_lower_band, m_nperm, m_perm, m_sp_bandden, m_type, m_upper_band, Unknown, and warn_cached().
|
inlineprivate |
Definition at line 172 of file MatrixType.h.
|
private |
Definition at line 176 of file MatrixType.h.
Referenced by MatrixType(), info(), 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 MatrixType(), info(), operator=(), transpose(), and type().
|
private |
Definition at line 181 of file MatrixType.h.
Referenced by MatrixType(), ~MatrixType(), mark_as_permuted(), mark_as_unpermuted(), operator=(), and type().
|
private |
Definition at line 182 of file MatrixType.h.
Referenced by MatrixType(), ~MatrixType(), mark_as_permuted(), mark_as_unpermuted(), operator=(), and type().
|
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 MatrixType(), info(), mark_as_permuted(), mark_as_symmetric(), mark_as_unpermuted(), mark_as_unsymmetric(), operator=(), transpose(), and type().
|
private |
Definition at line 177 of file MatrixType.h.
Referenced by MatrixType(), info(), operator=(), transpose(), and type().