GNU Octave
4.0.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.
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 64 of file MatrixType.cc.
MatrixType::MatrixType | ( | const MatrixType & | a | ) |
Definition at line 70 of file MatrixType.cc.
MatrixType::MatrixType | ( | const Matrix & | a | ) |
Definition at line 201 of file MatrixType.cc.
References matrix_real_probe(), and typ.
MatrixType::MatrixType | ( | const ComplexMatrix & | a | ) |
Definition at line 209 of file MatrixType.cc.
References matrix_complex_probe(), and typ.
MatrixType::MatrixType | ( | const FloatMatrix & | a | ) |
Definition at line 218 of file MatrixType.cc.
References matrix_real_probe(), and typ.
MatrixType::MatrixType | ( | const FloatComplexMatrix & | a | ) |
Definition at line 226 of file MatrixType.cc.
References matrix_complex_probe(), and typ.
MatrixType::MatrixType | ( | const SparseMatrix & | a | ) |
Definition at line 234 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, upper_band, and warn_calculating_sparse_type().
MatrixType::MatrixType | ( | const SparseComplexMatrix & | a | ) |
Definition at line 552 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, upper_band, and warn_calculating_sparse_type().
MatrixType::MatrixType | ( | const matrix_type | t, |
bool | _full = false |
||
) |
Definition at line 870 of file MatrixType.cc.
References Diagonal, Full, Lower, Permuted_Diagonal, Rectangular, Tridiagonal, Tridiagonal_Hermitian, typ, 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 886 of file MatrixType.cc.
References nperm, perm, Permuted_Lower, Permuted_Upper, typ, 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 906 of file MatrixType.cc.
References Banded, Banded_Hermitian, lower_band, typ, upper_band, and warn_invalid().
MatrixType::~MatrixType | ( | void | ) |
Definition at line 923 of file MatrixType.cc.
|
inline |
Definition at line 99 of file MatrixType.h.
void MatrixType::info | ( | void | ) | const |
Definition at line 1153 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(), SparseMatrix::dinverse(), SparseComplexMatrix::dinverse(), SparseMatrix::dsolve(), SparseComplexMatrix::dsolve(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), SparseMatrix::ltsolve(), SparseComplexMatrix::ltsolve(), SparseMatrix::tinverse(), SparseComplexMatrix::tinverse(), SparseMatrix::trisolve(), SparseComplexMatrix::trisolve(), SparseMatrix::utsolve(), and SparseComplexMatrix::utsolve().
|
inline |
Definition at line 138 of file MatrixType.h.
Referenced by Fmatrix_type().
|
inline |
Definition at line 116 of file MatrixType.h.
|
inline |
Definition at line 105 of file MatrixType.h.
Referenced by SparseMatrix::bsolve(), SparseComplexMatrix::bsolve(), SparseMatrix::trisolve(), and SparseComplexMatrix::trisolve().
|
inline |
Definition at line 107 of file MatrixType.h.
|
inline |
Definition at line 122 of file MatrixType.h.
Referenced by Matrix::inverse(), FloatMatrix::inverse(), SparseMatrix::inverse(), SparseComplexMatrix::inverse(), ComplexMatrix::inverse(), and FloatComplexMatrix::inverse().
|
inline |
Definition at line 130 of file MatrixType.h.
|
inline |
Definition at line 113 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 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().
|
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 1237 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().
|
inline |
Definition at line 142 of file MatrixType.h.
Referenced by Fmatrix_type().
|
inline |
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().
void MatrixType::mark_as_symmetric | ( | void | ) |
Definition at line 1208 of file MatrixType.cc.
References Banded, Banded_Hermitian, current_liboctave_error_handler, Full, Hermitian, Tridiagonal, Tridiagonal_Hermitian, typ, 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 1257 of file MatrixType.cc.
References Diagonal, Lower, nperm, perm, Permuted_Diagonal, Permuted_Lower, Permuted_Upper, typ, and Upper.
void MatrixType::mark_as_unsymmetric | ( | void | ) |
Definition at line 1224 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(), FloatMatrix::inverse(), SparseMatrix::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().
|
inline |
Definition at line 144 of file MatrixType.h.
Referenced by Fmatrix_type().
|
inline |
Definition at line 103 of file MatrixType.h.
Referenced by SparseMatrix::bsolve(), and SparseComplexMatrix::bsolve().
|
inline |
Definition at line 101 of file MatrixType.h.
Referenced by SparseMatrix::bsolve(), and SparseComplexMatrix::bsolve().
MatrixType & MatrixType::operator= | ( | const MatrixType & | a | ) |
Definition at line 932 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 1274 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 963 of file MatrixType.cc.
References full, octave_sparse_params::get_bandden(), octave_sparse_params::get_key(), sp_bandden, typ, Unknown, and warn_cached().
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(), FloatMatrix::inverse(), SparseMatrix::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 1049 of file MatrixType.cc.
References full, octave_sparse_params::get_key(), nperm, perm, typ, Unknown, and warn_cached().
int MatrixType::type | ( | const ComplexMatrix & | a | ) |
Definition at line 1075 of file MatrixType.cc.
References full, octave_sparse_params::get_key(), nperm, perm, typ, Unknown, and warn_cached().
int MatrixType::type | ( | const FloatMatrix & | a | ) |
Definition at line 1101 of file MatrixType.cc.
References full, octave_sparse_params::get_key(), nperm, perm, typ, Unknown, and warn_cached().
int MatrixType::type | ( | const FloatComplexMatrix & | a | ) |
Definition at line 1127 of file MatrixType.cc.
References full, octave_sparse_params::get_key(), nperm, perm, typ, Unknown, and warn_cached().
int MatrixType::type | ( | const SparseMatrix & | a | ) |
Definition at line 985 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, upper_band, and warn_cached().
int MatrixType::type | ( | const SparseComplexMatrix & | a | ) |
Definition at line 1017 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, upper_band, and warn_cached().
|
inlineprivate |
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().