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); }
114 {
return (typ == Upper || typ == Permuted_Upper); }
117 {
return (typ == Lower || typ == Permuted_Lower); }
120 {
return (typ == Banded || typ == Banded_Hermitian); }
123 {
return (typ == Tridiagonal || typ == Tridiagonal_Hermitian); }
127 return (typ == Banded_Hermitian || typ == Tridiagonal_Hermitian
128 || typ == Hermitian);
133 bool is_known (
void)
const {
return (typ != Unknown); }
137 void info (
void)
const;
154 { typ = Banded; upper_band = ku; lower_band = kl; }
164 void mark_as_symmetric (
void);
166 void mark_as_unsymmetric (
void);
170 void mark_as_unpermuted (
void);
void mark_as_lower_triangular(void)
void mark_as_diagonal(void)
bool is_unknown(void) const
bool is_lower_triangular(void) const
bool is_tridiagonal(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)
void mark_as_permuted_diagonal(void)
bool is_hermitian(void) const
bool is_dense(void) const
bool is_known(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 * triangular_perm(void) const
octave_idx_type lower_band
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)
void mark_as_rectangular(void)
void invalidate_type(void)
bool is_rectangular(void) const
void mark_as_not_dense(void)
void mark_as_tridiagonal(void)
bool is_diagonal(void) const
void mark_as_banded(const octave_idx_type ku, const octave_idx_type kl)
double band_density(void) const
bool is_upper_triangular(void) const
SparseComplexMatrix & operator=(const SparseComplexMatrix &a)