Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::math::LLM::Kernel Struct Reference

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...
 
Kerneloperator= (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...
 

Detailed Description

Internally used Kernel structure.

Constructor & Destructor Documentation

◆ Kernel() [1/3]

icl::math::LLM::Kernel::Kernel ( )

Empty base constructor.

◆ Kernel() [2/3]

icl::math::LLM::Kernel::Kernel ( unsigned int  inputDim,
unsigned int  outputDim 
)

Default constructur with given input an output dimension.

◆ Kernel() [3/3]

icl::math::LLM::Kernel::Kernel ( const Kernel k)

Copy constructor (deep copy)

◆ ~Kernel()

icl::math::LLM::Kernel::~Kernel ( )

Destructor.

Member Function Documentation

◆ operator=()

Kernel& icl::math::LLM::Kernel::operator= ( const Kernel k)

Assignment operator (deep copy)

◆ set()

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.

Parameters
w_ininput weight vector (needs to be of size inputDim)
w_outoutput weight vector (needs to be of size outputDim)
Aslope matrix (needs to be of size inputDim * outputDim) the data layout is rowmajor

◆ show()

void icl::math::LLM::Kernel::show ( unsigned int  idx = 0) const

shows a kernel to std::out

Member Data Documentation

◆ A

float* icl::math::LLM::Kernel::A

matrix for the linear map

◆ dw_in

float* icl::math::LLM::Kernel::dw_in

buffer for last input weight update

◆ inputDim

unsigned int icl::math::LLM::Kernel::inputDim

input dimension

◆ outputDim

unsigned int icl::math::LLM::Kernel::outputDim

output dimension

◆ var

float* icl::math::LLM::Kernel::var

variance-vector of the Gaussian kernel (trace(Cxx))

◆ w_in

float* icl::math::LLM::Kernel::w_in

input weight (prototype vector) of this kernel

◆ w_out

float* icl::math::LLM::Kernel::w_out

output weight of this kernel


The documentation for this struct was generated from the following file: