Mercurial > octave-nkf
diff liboctave/CMatrix.h @ 5275:23b37da9fd5b
[project @ 2005-04-08 16:07:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Apr 2005 16:07:37 +0000 |
parents | e35b034d3523 |
children | 4c8a2e4e0717 |
line wrap: on
line diff
--- a/liboctave/CMatrix.h Thu Apr 07 21:51:37 2005 +0000 +++ b/liboctave/CMatrix.h Fri Apr 08 16:07:37 2005 +0000 @@ -39,9 +39,9 @@ ComplexMatrix (void) : MArray2<Complex> () { } - ComplexMatrix (int r, int c) : MArray2<Complex> (r, c) { } + ComplexMatrix (octave_idx_type r, octave_idx_type c) : MArray2<Complex> (r, c) { } - ComplexMatrix (int r, int c, const Complex& val) + ComplexMatrix (octave_idx_type r, octave_idx_type c, const Complex& val) : MArray2<Complex> (r, c, val) { } ComplexMatrix (const ComplexMatrix& a) : MArray2<Complex> (a) { } @@ -79,20 +79,20 @@ // destructive insert/delete/reorder operations - ComplexMatrix& insert (const Matrix& a, int r, int c); - ComplexMatrix& insert (const RowVector& a, int r, int c); - ComplexMatrix& insert (const ColumnVector& a, int r, int c); - ComplexMatrix& insert (const DiagMatrix& a, int r, int c); + ComplexMatrix& insert (const Matrix& a, octave_idx_type r, octave_idx_type c); + ComplexMatrix& insert (const RowVector& a, octave_idx_type r, octave_idx_type c); + ComplexMatrix& insert (const ColumnVector& a, octave_idx_type r, octave_idx_type c); + ComplexMatrix& insert (const DiagMatrix& a, octave_idx_type r, octave_idx_type c); - ComplexMatrix& insert (const ComplexMatrix& a, int r, int c); - ComplexMatrix& insert (const ComplexRowVector& a, int r, int c); - ComplexMatrix& insert (const ComplexColumnVector& a, int r, int c); - ComplexMatrix& insert (const ComplexDiagMatrix& a, int r, int c); + ComplexMatrix& insert (const ComplexMatrix& a, octave_idx_type r, octave_idx_type c); + ComplexMatrix& insert (const ComplexRowVector& a, octave_idx_type r, octave_idx_type c); + ComplexMatrix& insert (const ComplexColumnVector& a, octave_idx_type r, octave_idx_type c); + ComplexMatrix& insert (const ComplexDiagMatrix& a, octave_idx_type r, octave_idx_type c); ComplexMatrix& fill (double val); ComplexMatrix& fill (const Complex& val); - ComplexMatrix& fill (double val, int r1, int c1, int r2, int c2); - ComplexMatrix& fill (const Complex& val, int r1, int c1, int r2, int c2); + ComplexMatrix& fill (double val, octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2); + ComplexMatrix& fill (const Complex& val, octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2); ComplexMatrix append (const Matrix& a) const; ComplexMatrix append (const RowVector& a) const; @@ -122,21 +122,21 @@ // resize is the destructive equivalent for this one - ComplexMatrix extract (int r1, int c1, int r2, int c2) const; + ComplexMatrix extract (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const; - ComplexMatrix extract_n (int r1, int c1, int nr, int nc) const; + ComplexMatrix extract_n (octave_idx_type r1, octave_idx_type c1, octave_idx_type nr, octave_idx_type nc) const; // extract row or column i. - ComplexRowVector row (int i) const; + ComplexRowVector row (octave_idx_type i) const; ComplexRowVector row (char *s) const; - ComplexColumnVector column (int i) const; + ComplexColumnVector column (octave_idx_type i) const; ComplexColumnVector column (char *s) const; ComplexMatrix inverse (void) const; - ComplexMatrix inverse (int& info) const; - ComplexMatrix inverse (int& info, double& rcond, int force = 0, + ComplexMatrix inverse (octave_idx_type& info) const; + ComplexMatrix inverse (octave_idx_type& info, double& rcond, int force = 0, int calc_cond = 1) const; ComplexMatrix pseudo_inverse (double tol = 0.0) const; @@ -148,54 +148,54 @@ ComplexMatrix ifourier2d (void) const; ComplexDET determinant (void) const; - ComplexDET determinant (int& info) const; - ComplexDET determinant (int& info, double& rcond, int calc_cond = 1) const; + ComplexDET determinant (octave_idx_type& info) const; + ComplexDET determinant (octave_idx_type& info, double& rcond, int calc_cond = 1) const; ComplexMatrix solve (const Matrix& b) const; - ComplexMatrix solve (const Matrix& b, int& info) const; - ComplexMatrix solve (const Matrix& b, int& info, double& rcond) const; - ComplexMatrix solve (const Matrix& b, int& info, double& rcond, + ComplexMatrix solve (const Matrix& b, octave_idx_type& info) const; + ComplexMatrix solve (const Matrix& b, octave_idx_type& info, double& rcond) const; + ComplexMatrix solve (const Matrix& b, octave_idx_type& info, double& rcond, solve_singularity_handler sing_handler) const; ComplexMatrix solve (const ComplexMatrix& b) const; - ComplexMatrix solve (const ComplexMatrix& b, int& info) const; - ComplexMatrix solve (const ComplexMatrix& b, int& info, double& rcond) const; - ComplexMatrix solve (const ComplexMatrix& b, int& info, double& rcond, + ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info) const; + ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info, double& rcond) const; + ComplexMatrix solve (const ComplexMatrix& b, octave_idx_type& info, double& rcond, solve_singularity_handler sing_handler) const; ComplexColumnVector solve (const ColumnVector& b) const; - ComplexColumnVector solve (const ColumnVector& b, int& info) const; - ComplexColumnVector solve (const ColumnVector& b, int& info, + ComplexColumnVector solve (const ColumnVector& b, octave_idx_type& info) const; + ComplexColumnVector solve (const ColumnVector& b, octave_idx_type& info, double& rcond) const; - ComplexColumnVector solve (const ColumnVector& b, int& info, double& rcond, + ComplexColumnVector solve (const ColumnVector& b, octave_idx_type& info, double& rcond, solve_singularity_handler sing_handler) const; ComplexColumnVector solve (const ComplexColumnVector& b) const; - ComplexColumnVector solve (const ComplexColumnVector& b, int& info) const; - ComplexColumnVector solve (const ComplexColumnVector& b, int& info, + ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info) const; + ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info, double& rcond) const; - ComplexColumnVector solve (const ComplexColumnVector& b, int& info, + ComplexColumnVector solve (const ComplexColumnVector& b, octave_idx_type& info, double& rcond, solve_singularity_handler sing_handler) const; ComplexMatrix lssolve (const Matrix& b) const; - ComplexMatrix lssolve (const Matrix& b, int& info) const; - ComplexMatrix lssolve (const Matrix& b, int& info, int& rank) const; + ComplexMatrix lssolve (const Matrix& b, octave_idx_type& info) const; + ComplexMatrix lssolve (const Matrix& b, octave_idx_type& info, octave_idx_type& rank) const; ComplexMatrix lssolve (const ComplexMatrix& b) const; - ComplexMatrix lssolve (const ComplexMatrix& b, int& info) const; - ComplexMatrix lssolve (const ComplexMatrix& b, int& info, - int& rank) const; + ComplexMatrix lssolve (const ComplexMatrix& b, octave_idx_type& info) const; + ComplexMatrix lssolve (const ComplexMatrix& b, octave_idx_type& info, + octave_idx_type& rank) const; ComplexColumnVector lssolve (const ColumnVector& b) const; - ComplexColumnVector lssolve (const ColumnVector& b, int& info) const; - ComplexColumnVector lssolve (const ColumnVector& b, int& info, - int& rank) const; + ComplexColumnVector lssolve (const ColumnVector& b, octave_idx_type& info) const; + ComplexColumnVector lssolve (const ColumnVector& b, octave_idx_type& info, + octave_idx_type& rank) const; ComplexColumnVector lssolve (const ComplexColumnVector& b) const; - ComplexColumnVector lssolve (const ComplexColumnVector& b, int& info) const; - ComplexColumnVector lssolve (const ComplexColumnVector& b, int& info, - int& rank) const; + ComplexColumnVector lssolve (const ComplexColumnVector& b, octave_idx_type& info) const; + ComplexColumnVector lssolve (const ComplexColumnVector& b, octave_idx_type& info, + octave_idx_type& rank) const; ComplexMatrix expm (void) const; @@ -251,22 +251,22 @@ Matrix abs (void) const; ComplexColumnVector diag (void) const; - ComplexColumnVector diag (int k) const; + ComplexColumnVector diag (octave_idx_type k) const; - bool row_is_real_only (int) const; - bool column_is_real_only (int) const; + bool row_is_real_only (octave_idx_type) const; + bool column_is_real_only (octave_idx_type) const; ComplexColumnVector row_min (void) const; ComplexColumnVector row_max (void) const; - ComplexColumnVector row_min (Array<int>& index) const; - ComplexColumnVector row_max (Array<int>& index) const; + ComplexColumnVector row_min (Array<octave_idx_type>& index) const; + ComplexColumnVector row_max (Array<octave_idx_type>& index) const; ComplexRowVector column_min (void) const; ComplexRowVector column_max (void) const; - ComplexRowVector column_min (Array<int>& index) const; - ComplexRowVector column_max (Array<int>& index) const; + ComplexRowVector column_min (Array<octave_idx_type>& index) const; + ComplexRowVector column_max (Array<octave_idx_type>& index) const; // i/o @@ -277,7 +277,7 @@ private: - ComplexMatrix (Complex *d, int r, int c) : MArray2<Complex> (d, r, c) { } + ComplexMatrix (Complex *d, octave_idx_type r, octave_idx_type c) : MArray2<Complex> (d, r, c) { } }; ComplexMatrix Givens (const Complex&, const Complex&);