24 #if !defined (octave_MatrixType_h)
25 #define octave_MatrixType_h
73 MatrixType (
const matrix_type t,
bool _full =
false);
85 int type (
bool quiet =
true);
101 int nupper (
void)
const {
return upper_band; }
103 int nlower (
void)
const {
return lower_band; }
107 bool is_diagonal (
void)
const
108 {
return (typ == Diagonal || typ == Permuted_Diagonal); }
110 bool is_upper_triangular (
void)
const
111 {
return (typ == Upper || typ == Permuted_Upper); }
113 bool is_lower_triangular (
void)
const
114 {
return (typ == Lower || typ == Permuted_Lower); }
116 bool is_banded (
void)
117 {
return (typ == Banded || typ == Banded_Hermitian); }
119 bool is_tridiagonal (
void)
const
120 {
return (typ == Tridiagonal || typ == Tridiagonal_Hermitian); }
124 return (typ == Banded_Hermitian || typ == Tridiagonal_Hermitian ||
130 bool is_known (
void)
const {
return (typ != Unknown); }
134 void info (
void)
const;
151 { typ = Banded; upper_band = ku; lower_band = kl; }
161 void mark_as_symmetric (
void);
163 void mark_as_unsymmetric (
void);
167 void mark_as_unpermuted (
void);