# Changeset 353

Ignore:
Timestamp:
Jun 9, 2005, 1:28:35 AM (17 years ago)
Message:

removed function returning the whole matrix. It is not needed anymore and should not be there for simplistic reasons.

Location:
trunk/lib/svm
Files:
5 edited

Unmodified
Removed
• ## trunk/lib/svm/GaussianKernelFunction.cc

 r295 const theplu::gslapi::matrix& GaussianKernelFunction::operator()(theplu::gslapi::matrix& k, const theplu::gslapi::matrix& data) const { theplu::gslapi::matrix data_transposed(data); data_transposed.transpose(); k = data_transposed*data; // Working with the linear linear kernel in order to avoid copying // row vectors from data matrix (many times) and calculate the // kernel element in a more transparent way. for (size_t i=0; i
• ## trunk/lib/svm/GaussianKernelFunction.h

 r345 const gslapi::vector& w2) const; /// /// @return kernel matrix /// const gslapi::matrix& operator()(theplu::gslapi::matrix& kernel, const theplu::gslapi::matrix& data) const; private: double sigma_;
• ## trunk/lib/svm/KernelFunction.h

 r295 const gslapi::vector&) const = 0; /// /// @return kernel matrix /// virtual const theplu::gslapi::matrix& operator() (theplu::gslapi::matrix& k, const gslapi::matrix& data) const = 0; }; // class KernelFunction
• ## trunk/lib/svm/PolynomialKernelFunction.cc

 r345 } const theplu::gslapi::matrix& PolynomialKernelFunction::operator()(theplu::gslapi::matrix& kernel, const theplu::gslapi::matrix& data) const { gslapi::matrix data_transposed(data.transpose()); kernel = data_transposed*data; if (order_>1) for (size_t i=0; i
• ## trunk/lib/svm/PolynomialKernelFunction.h

 r345 const gslapi::vector&, const gslapi::vector&) const; /// /// @return kernel matrix /// const gslapi::matrix& operator()(theplu::gslapi::matrix& kernel, const theplu::gslapi::matrix& data) const; private: int order_;
Note: See TracChangeset for help on using the changeset viewer.