SHOGUN  6.0.0
DenseExactLogJob.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2013 Soumyajit De
8  */
9 
10 #ifndef DENSE_EXACT_LOG_JOB_H_
11 #define DENSE_EXACT_LOG_JOB_H_
12 
13 #include <shogun/lib/config.h>
14 
16 
17 namespace shogun
18 {
19 template<class T> class SGVector;
20 template<class T> class CDenseMatrixOperator;
21 
26 {
27 public:
30 
39  CDenseMatrixOperator<float64_t>* log_operator,
40  SGVector<float64_t> vector);
41 
43  virtual ~CDenseExactLogJob();
44 
46  virtual void compute();
47 
50 
53 
55  virtual const char* get_name() const
56  {
57  return "DenseExactLogJob";
58  }
59 
60 private:
62  CDenseMatrixOperator<float64_t>* m_log_operator;
63 
65  SGVector<float64_t> m_vector;
66 
68  void init();
69 };
70 
71 }
72 
73 #endif // DENSE_EXACT_LOG_JOB_H_
Class that represents the job of applying the log of a CDenseMatrixOperator on a real vector...
virtual const char * get_name() const
CDenseMatrixOperator< float64_t > * get_operator() const
Abstract base class that provides an interface for computing an aggeregation of the job results of in...
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
Abstract base for general computation jobs to be registered in CIndependentComputationEngine. compute method produces a job result and submits it to the internal JobResultAggregator. Each set of jobs that form a result will share the same job result aggregator.
SGVector< float64_t > get_vector() const

SHOGUN Machine Learning Toolbox - Documentation