Image Component Library (ICL)
|
Internally used Kernel structure. More...
#include <LLM.h>
Public Member Functions | |
Kernel () | |
Empty base constructor. More... | |
Kernel (unsigned int inputDim, unsigned int outputDim) | |
Default constructur with given input an output dimension. More... | |
Kernel (const Kernel &k) | |
Copy constructor (deep copy) More... | |
~Kernel () | |
Destructor. More... | |
Kernel & | operator= (const Kernel &k) |
Assignment operator (deep copy) More... | |
void | show (unsigned int idx=0) const |
shows a kernel to std::out More... | |
void | set (const float *w_in, const float *w_out, const float *A) |
updates the kernels internal values More... | |
Public Attributes | |
float * | w_in |
input weight (prototype vector) of this kernel More... | |
float * | w_out |
output weight of this kernel More... | |
float * | A |
matrix for the linear map More... | |
float * | dw_in |
buffer for last input weight update More... | |
float * | var |
variance-vector of the Gaussian kernel (trace(Cxx)) More... | |
unsigned int | inputDim |
input dimension More... | |
unsigned int | outputDim |
output dimension More... | |
Internally used Kernel structure.
icl::math::LLM::Kernel::Kernel | ( | ) |
Empty base constructor.
icl::math::LLM::Kernel::Kernel | ( | unsigned int | inputDim, |
unsigned int | outputDim | ||
) |
Default constructur with given input an output dimension.
icl::math::LLM::Kernel::Kernel | ( | const Kernel & | k | ) |
Copy constructor (deep copy)
icl::math::LLM::Kernel::~Kernel | ( | ) |
Destructor.
void icl::math::LLM::Kernel::set | ( | const float * | w_in, |
const float * | w_out, | ||
const float * | A | ||
) |
updates the kernels internal values
the given data is copied deeply into the kernel, i.e. the kernel's internal data pointers remain untouched. Only the given data is is copied to where the data pointers point.
w_in | input weight vector (needs to be of size inputDim) |
w_out | output weight vector (needs to be of size outputDim) |
A | slope matrix (needs to be of size inputDim * outputDim) the data layout is rowmajor |
void icl::math::LLM::Kernel::show | ( | unsigned int | idx = 0 | ) | const |
shows a kernel to std::out
float* icl::math::LLM::Kernel::A |
matrix for the linear map
float* icl::math::LLM::Kernel::dw_in |
buffer for last input weight update
unsigned int icl::math::LLM::Kernel::inputDim |
input dimension
unsigned int icl::math::LLM::Kernel::outputDim |
output dimension
float* icl::math::LLM::Kernel::var |
variance-vector of the Gaussian kernel (trace(Cxx))
float* icl::math::LLM::Kernel::w_in |
input weight (prototype vector) of this kernel
float* icl::math::LLM::Kernel::w_out |
output weight of this kernel