diff liboctave/CmplxSVD.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 8a6f67c94de8
line wrap: on
line diff
--- a/liboctave/CmplxSVD.h	Thu Oct 05 01:44:18 1995 +0000
+++ b/liboctave/CmplxSVD.h	Thu Oct 05 01:45:30 1995 +0000
@@ -40,19 +40,40 @@
 
 public:
 
-  ComplexSVD (void) {}
+  ComplexSVD (void) { }
+
 
-  ComplexSVD (const ComplexMatrix& a, SVD::type svd_type = SVD::std);
-  ComplexSVD (const ComplexMatrix& a, int& info,
-	      SVD::type svd_type = SVD::std); 
+  ComplexSVD (const ComplexMatrix& a, SVD::type svd_type) 
+    {
+      init (a, svd_type);
+    }
+
+  ComplexSVD (const ComplexMatrix& a, int& info, SVD::type svd_type)
+    {
+      info = init (a, svd_type);
+    }
 
-  ComplexSVD (const ComplexSVD& a);
-
-  ComplexSVD& operator = (const ComplexSVD& a);
+  ComplexSVD (const ComplexSVD& a)
+    {
+      sigma = a.sigma;
+      left_sm = a.left_sm;
+      right_sm = a.right_sm;
+    }
 
-  DiagMatrix singular_values (void) const;
-  ComplexMatrix left_singular_matrix (void) const;
-  ComplexMatrix right_singular_matrix (void) const;
+  ComplexSVD& operator = (const ComplexSVD& a)
+    {
+      sigma = a.sigma;
+      left_sm = a.left_sm;
+      right_sm = a.right_sm;
+
+      return *this;
+    }
+
+  DiagMatrix singular_values (void) const { return sigma; }
+
+  ComplexMatrix left_singular_matrix (void) const { return left_sm; }
+
+  ComplexMatrix right_singular_matrix (void) const { return right_sm; }
 
   friend ostream&  operator << (ostream& os, const ComplexSVD& a);
 
@@ -65,49 +86,6 @@
   ComplexMatrix right_sm;
 };
 
-inline ComplexSVD::ComplexSVD (const ComplexMatrix& a, SVD::type svd_type) 
-{
-  init (a, svd_type);
-}
-
-inline ComplexSVD::ComplexSVD (const ComplexMatrix& a, int& info,
-			       SVD::type svd_type)
-{
-  info = init (a, svd_type);
-} 
-
-inline ComplexSVD::ComplexSVD (const ComplexSVD& a)
-{
-  sigma = a.sigma;
-  left_sm = a.left_sm;
-  right_sm = a.right_sm;
-}
-
-inline ComplexSVD&
-ComplexSVD::operator = (const ComplexSVD& a)
-{
-  sigma = a.sigma;
-  left_sm = a.left_sm;
-  right_sm = a.right_sm;
-
-  return *this;
-}
-
-inline DiagMatrix ComplexSVD::singular_values (void) const
-{
-  return sigma;
-}
-
-inline ComplexMatrix ComplexSVD::left_singular_matrix (void) const
-{
-  return left_sm;
-}
-
-inline ComplexMatrix ComplexSVD::right_singular_matrix (void) const
-{
-  return right_sm;
-}
-
 #endif
 
 /*