24 #if ! defined (octave_MatrixType_h) 25 #define octave_MatrixType_h 1 27 #include "octave-config.h" 76 MatrixType (
const matrix_type
t,
bool _full =
false);
88 int type (
bool quiet =
true);
104 int nupper (
void)
const {
return upper_band; }
106 int nlower (
void)
const {
return lower_band; }
111 {
return (typ == Diagonal || typ == Permuted_Diagonal); }
113 OCTAVE_DEPRECATED (4.4,
"use 'isdiag' instead")
115 {
return isdiag (); }
118 {
return (typ == Upper || typ == Permuted_Upper); }
120 OCTAVE_DEPRECATED (4.4,
"use 'istriu' instead")
121 bool is_upper_triangular (
void)
const 122 {
return istriu (); }
125 {
return (typ == Lower || typ == Permuted_Lower); }
127 OCTAVE_DEPRECATED (4.4,
"use 'istril' instead")
128 bool is_lower_triangular (
void)
const 129 {
return istril (); }
132 {
return (typ == Banded || typ == Banded_Hermitian); }
134 OCTAVE_DEPRECATED (4.4,
"use 'isbanded' instead")
136 {
return isbanded (); }
139 {
return (typ == Tridiagonal || typ == Tridiagonal_Hermitian); }
143 return (typ == Banded_Hermitian || typ == Tridiagonal_Hermitian
144 || typ == Hermitian);
147 OCTAVE_DEPRECATED (4.4,
"use 'ishermitian' instead")
153 bool is_known (
void)
const {
return (typ != Unknown); }
157 void info (
void)
const;
174 { typ = Banded; upper_band = ku; lower_band = kl; }
184 void mark_as_symmetric (
void);
186 void mark_as_unsymmetric (
void);
190 void mark_as_unpermuted (
void);
void mark_as_lower_triangular(void)
void mark_as_diagonal(void)
bool ishermitian(void) const
bool ishermitian(void) const
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)
octave_idx_type * triangular_perm(void) const
void mark_as_permuted_diagonal(void)
bool is_unknown(void) const
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function t
octave_idx_type lower_band
bool is_hermitian(void) const
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
octave_idx_type upper_band
void mark_as_upper_triangular(void)
bool is_rectangular(void) const
void mark_as_rectangular(void)
void invalidate_type(void)
bool is_dense(void) const
bool is_tridiagonal(void) const
bool isbanded(void) const
void mark_as_not_dense(void)
bool is_known(void) const
void mark_as_tridiagonal(void)
double band_density(void) const
void mark_as_banded(const octave_idx_type ku, const octave_idx_type kl)
SparseComplexMatrix & operator=(const SparseComplexMatrix &a)