Mercurial > hg > octave-nkf
diff liboctave/dSparse.h @ 6108:143b556ce725
[project @ 2006-10-27 01:45:54 by jwe]
author | jwe |
---|---|
date | Fri, 27 Oct 2006 01:45:56 +0000 |
parents | 6b9cec830d72 |
children | 0ce71beb1cf3 |
line wrap: on
line diff
--- a/liboctave/dSparse.h +++ b/liboctave/dSparse.h @@ -39,6 +39,7 @@ class SparseBoolMatrix; class +OCTAVE_API SparseMatrix : public MSparse<double> { public: @@ -101,12 +102,12 @@ SparseComplexMatrix concat (const SparseComplexMatrix& rb, const Array<octave_idx_type>& ra_idx); - friend SparseMatrix real (const SparseComplexMatrix& a); - friend SparseMatrix imag (const SparseComplexMatrix& a); + friend OCTAVE_API SparseMatrix real (const SparseComplexMatrix& a); + friend OCTAVE_API SparseMatrix imag (const SparseComplexMatrix& a); - friend SparseMatrix atan2 (const double& x, const SparseMatrix& y); - friend SparseMatrix atan2 (const SparseMatrix& x, const double& y); - friend SparseMatrix atan2 (const SparseMatrix& x, const SparseMatrix& y); + friend OCTAVE_API SparseMatrix atan2 (const double& x, const SparseMatrix& y); + friend OCTAVE_API SparseMatrix atan2 (const SparseMatrix& x, const double& y); + friend OCTAVE_API SparseMatrix atan2 (const SparseMatrix& x, const SparseMatrix& y); SparseMatrix transpose (void) const { @@ -406,31 +407,31 @@ // i/o - friend std::ostream& operator << (std::ostream& os, const SparseMatrix& a); - friend std::istream& operator >> (std::istream& is, SparseMatrix& a); + friend OCTAVE_API std::ostream& operator << (std::ostream& os, const SparseMatrix& a); + friend OCTAVE_API std::istream& operator >> (std::istream& is, SparseMatrix& a); }; // Publish externally used friend functions. -extern SparseMatrix real (const SparseComplexMatrix& a); -extern SparseMatrix imag (const SparseComplexMatrix& a); +extern OCTAVE_API SparseMatrix real (const SparseComplexMatrix& a); +extern OCTAVE_API SparseMatrix imag (const SparseComplexMatrix& a); // Other operators. -extern SparseMatrix operator * (const SparseMatrix& a, +extern OCTAVE_API SparseMatrix operator * (const SparseMatrix& a, const SparseMatrix& b); -extern Matrix operator * (const Matrix& a, +extern OCTAVE_API Matrix operator * (const Matrix& a, const SparseMatrix& b); -extern Matrix operator * (const SparseMatrix& a, +extern OCTAVE_API Matrix operator * (const SparseMatrix& a, const Matrix& b); -extern SparseMatrix min (double d, const SparseMatrix& m); -extern SparseMatrix min (const SparseMatrix& m, double d); -extern SparseMatrix min (const SparseMatrix& a, const SparseMatrix& b); +extern OCTAVE_API SparseMatrix min (double d, const SparseMatrix& m); +extern OCTAVE_API SparseMatrix min (const SparseMatrix& m, double d); +extern OCTAVE_API SparseMatrix min (const SparseMatrix& a, const SparseMatrix& b); -extern SparseMatrix max (double d, const SparseMatrix& m); -extern SparseMatrix max (const SparseMatrix& m, double d); -extern SparseMatrix max (const SparseMatrix& a, const SparseMatrix& b); +extern OCTAVE_API SparseMatrix max (double d, const SparseMatrix& m); +extern OCTAVE_API SparseMatrix max (const SparseMatrix& m, double d); +extern OCTAVE_API SparseMatrix max (const SparseMatrix& a, const SparseMatrix& b); SPARSE_SMS_CMP_OP_DECLS (SparseMatrix, double) SPARSE_SMS_BOOL_OP_DECLS (SparseMatrix, double)