Ignore:
Timestamp:
Dec 22, 2006, 9:42:39 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/SVD.h

    r703 r715  
    9797    /// is undefined.
    9898    ///
    99     inline const utility::vector& s(void) const { return s_; }
     99    const utility::vector& s(void) const;
    100100
    101101    ///
     
    108108    /// @return Whatever GSL returns.
    109109    ///
    110     inline int solve(utility::vector b, utility::vector x)
    111       { return gsl_linalg_SV_solve(U_.gsl_matrix_p(), V_.gsl_matrix_p(),
    112                                    s_.gsl_vector_p(), b.gsl_vector_p(),
    113                                    x.gsl_vector_p()); }
     110    int solve(const utility::vector& b, utility::vector x);
    114111
    115112    ///
     
    121118    /// is undefined.
    122119    ///
    123     inline const utility::matrix& U(void) const { return U_; }
     120    const utility::matrix& U(void) const;
    124121
    125122    ///
     
    131128    /// is undefined.
    132129    ///
    133     inline const utility::matrix& V(void) const { return V_; }
     130    const utility::matrix& V(void) const;
    134131
    135132  private:
    136     inline int jacobi(void)
    137       { return gsl_linalg_SV_decomp_jacobi(U_.gsl_matrix_p(), V_.gsl_matrix_p(),
    138                                            s_.gsl_vector_p()); }
     133    int jacobi(void);
    139134    int golub_reinsch(void);
    140135    int modified_golub_reinsch(void);
Note: See TracChangeset for help on using the changeset viewer.