Mercurial > hg > octave-lyh
diff liboctave/dbleAEPBAL.h @ 1528:dc527156c38c
[project @ 1995-10-05 01:44:18 by jwe]
author | jwe |
---|---|
date | Thu, 05 Oct 1995 01:45:30 +0000 |
parents | 611d403c7f3d |
children | a744f4d0ba59 |
line wrap: on
line diff
--- a/liboctave/dbleAEPBAL.h +++ b/liboctave/dbleAEPBAL.h @@ -38,15 +38,31 @@ public: - AEPBALANCE (void) {} + AEPBALANCE (void) { } - AEPBALANCE (const Matrix& a, const char *balance_job); + AEPBALANCE (const Matrix& a,const char * balance_job) + { + init (a, balance_job); + } + + AEPBALANCE (const AEPBALANCE& a) + { + balanced_mat = a.balanced_mat; + balancing_mat = a.balancing_mat; + } - AEPBALANCE (const AEPBALANCE& a); + AEPBALANCE& operator = (const AEPBALANCE& a) + { + balanced_mat = a.balanced_mat; + balancing_mat = a.balancing_mat; - AEPBALANCE& operator = (const AEPBALANCE& a); - Matrix balanced_matrix (void) const; - Matrix balancing_matrix (void) const; + return *this; + } + + Matrix balanced_matrix (void) const { return balanced_mat; } + + Matrix balancing_matrix (void) const { return balancing_mat; } + friend ostream& operator << (ostream& os, const AEPBALANCE& a); private: @@ -57,36 +73,6 @@ Matrix balancing_mat; }; -inline AEPBALANCE::AEPBALANCE (const Matrix& a,const char * balance_job) -{ - init (a, balance_job); -} - -inline AEPBALANCE::AEPBALANCE (const AEPBALANCE& a) -{ - balanced_mat = a.balanced_mat; - balancing_mat = a.balancing_mat; -} - -inline AEPBALANCE& -AEPBALANCE::operator = (const AEPBALANCE& a) -{ - balanced_mat = a.balanced_mat; - balancing_mat = a.balancing_mat; - - return *this; -} - -inline Matrix AEPBALANCE::balanced_matrix (void) const -{ - return balanced_mat; -} - -inline Matrix AEPBALANCE::balancing_matrix (void) const -{ - return balancing_mat; -} - #endif /*