23 #if ! defined (octave_CMatrix_h) 24 #define octave_CMatrix_h 1 26 #include "octave-config.h" 114 OCTAVE_DEPRECATED (4.4,
"use 'ishermitian' instead")
195 double& rcon,
bool force,
bool calc_cond)
const;
198 double& rcon,
bool force,
bool calc_cond)
const;
204 bool force =
false,
bool calc_cond =
true)
const;
209 double& rcon,
bool force =
false,
210 bool calc_cond =
true)
const;
223 bool calc_cond =
true)
const;
225 double& rcon,
bool calc_cond =
true)
const;
227 double rcond (
void)
const;
235 bool calc_cond =
false,
242 bool calc_cond =
false,
249 bool calc_cond =
false)
const;
261 bool singular_fallback =
true,
272 bool singular_fallback =
true,
413 friend OCTAVE_API std::ostream&
operator << (std::ostream&
os,
415 friend OCTAVE_API std::istream&
operator >> (std::istream&
is,
ComplexMatrix complex_matrix_type
ComplexMatrix extract_n(octave_idx_type r1, octave_idx_type c1, octave_idx_type nr, octave_idx_type nc) const
ComplexMatrix lssolve(const Matrix &b) const
ComplexRowVector row_vector_type
ComplexDiagMatrix complex_diag_matrix_type
ComplexMatrix sumsq(int dim=-1) const
OCTAVE_EXPORT octave_value_list column
Template for N-dimensional array classes with like-type math operators.
ComplexRowVector column_min(void) const
ColumnVector real_column_vector_type
bool operator!=(const dim_vector &a, const dim_vector &b)
bool column_is_real_only(octave_idx_type) const
ComplexDET determinant(void) const
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
void(* solve_singularity_handler)(double rcon)
MArray< T > hermitian(T(*fcn)(const T &)=nullptr) const
ComplexMatrix fourier(void) const
identity matrix If supplied two scalar respectively For allows like xample val
OCTAVE_API ComplexMatrix linspace(const ComplexColumnVector &x1, const ComplexColumnVector &x2, octave_idx_type n)
bool ishermitian(void) const
bool row_is_real_only(octave_idx_type) const
ComplexMatrix(const dim_vector &dv, const Complex &val)
ComplexMatrix(octave_idx_type r, octave_idx_type c)
ComplexMatrix cumsum(int dim=-1) const
ComplexMatrix stack(const Matrix &a) const
DiagMatrix real_diag_matrix_type
ComplexMatrix fourier2d(void) const
the second is matched to the second specifier and placed in the second column and so forth If there are more words than specifiers then the process is repeated until all words have been processed or the limit imposed by any(non-whitespace) text in the format that is not one of these specifiers is considered a literal. If there is a literal between two format specifiers then that same literal must appear in the input stream between the matching words. The following specifiers are valid
#define SM_CMP_OP_DECLS(S, M, API)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
MArray< T > transpose(void) const
Array< Complex > as_matrix(void) const
Return the array as a matrix.
ComplexMatrix transpose(void) const
OCTAVE_API ComplexMatrix Sylvester(const ComplexMatrix &, const ComplexMatrix &, const ComplexMatrix &)
ComplexMatrix operator-=(ComplexMatrix &x, const Complex &y)
#define MARRAY_FORWARD_DEFS(B, R, T)
ComplexMatrix cumprod(int dim=-1) const
OCTAVE_API ComplexMatrix xgemm(const ComplexMatrix &a, const ComplexMatrix &b, blas_trans_type transa=blas_no_trans, blas_trans_type transb=blas_no_trans)
ComplexMatrix inverse(void) const
ComplexMatrix fsolve(MatrixType &mattype, const ComplexMatrix &b, octave_idx_type &info, double &rcon, solve_singularity_handler sing_handler, bool calc_cond=false) const
bool is_hermitian(void) const
ComplexMatrix ifourier2d(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
boolMatrix all(int dim=-1) const
ComplexColumnVector row_min(void) const
ComplexMatrix tinverse(MatrixType &mattype, octave_idx_type &info, double &rcon, bool force, bool calc_cond) const
Array< Complex > index(const idx_vector &i) const
Indexing without resizing.
ComplexMatrix diag(octave_idx_type k=0) const
ComplexMatrix(const dim_vector &dv)
#define SM_BOOL_OP_DECLS(S, M, API)
ComplexMatrix(const MArray< U > &a)
#define MM_CMP_OP_DECLS(M1, M2, API)
#define MM_BOOL_OP_DECLS(M1, M2, API)
void resize(const dim_vector &dv, const T &rfv)
Resizing (with fill).
static M ltsolve(const SM &L, const ColumnVector &Q, const M &m)
ComplexMatrix solve(MatrixType &mattype, const Matrix &b) const
ComplexMatrix finverse(MatrixType &mattype, octave_idx_type &info, double &rcon, bool force, bool calc_cond) const
OCTAVE_API ComplexMatrix Givens(const Complex &, const Complex &)
OCTAVE_API ComplexMatrix min(const Complex &c, const ComplexMatrix &m)
ComplexMatrix & insert(const Matrix &a, octave_idx_type r, octave_idx_type c)
bool operator==(const dim_vector &a, const dim_vector &b)
ComplexColumnVector row_max(void) const
#define MS_CMP_OP_DECLS(M, S, API)
ComplexMatrix(const ComplexMatrix &a)
N Dimensional Array with copy-on-write semantics.
ComplexMatrix extract(octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const
void resize(octave_idx_type nr, octave_idx_type nc, const Complex &rfv=Complex(0))
OCTAVE_API ComplexMatrix operator*(const ColumnVector &a, const ComplexRowVector &b)
ComplexMatrix ifourier(void) const
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< bool > &)
ComplexColumnVector column_vector_type
ComplexMatrix pseudo_inverse(double tol=0.0) const
RowVector real_row_vector_type
OCTAVE_API ComplexMatrix conj(const ComplexMatrix &a)
ComplexMatrix(octave_idx_type r, octave_idx_type c, const Complex &val)
#define MS_BOOL_OP_DECLS(M, S, API)
static M utsolve(const SM &U, const ColumnVector &Q, const M &m)
ComplexMatrix & fill(double val)
OCTAVE_API ComplexMatrix max(const Complex &c, const ComplexMatrix &m)
ComplexMatrix(const Array< U > &a)
ComplexMatrix prod(int dim=-1) const
std::complex< double > Complex
ComplexMatrix sum(int dim=-1) const
write the output to stdout if nargout is
Vector representing the dimensions (size) of an Array.
ComplexRowVector column_max(void) const
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every row
ComplexMatrix hermitian(void) const
ComplexMatrix operator+=(ComplexMatrix &x, const Complex &y)