HMLP: High-performance Machine Learning Primitives
hmlp::pack_pbxib< NB, T, TPACK > Struct Template Referenceabstract

#include <packing.hpp>

Inheritance diagram for hmlp::pack_pbxib< NB, T, TPACK >:
hmlp::pack2D_pbxib< NB, T, TPACK >

Public Member Functions

virtual void operator() (size_t k, size_t pc, size_t pb, size_t m, size_t ic, size_t ib, T *X, TPACK *packX)=0
 

Detailed Description

template<size_t NB, typename T, typename TPACK>
struct hmlp::pack_pbxib< NB, T, TPACK >

arbitrary packing routine

Member Function Documentation

template<size_t NB, typename T , typename TPACK >
virtual void hmlp::pack_pbxib< NB, T, TPACK >::operator() ( size_t  k,
size_t  pc,
size_t  pb,
size_t  m,
size_t  ic,
size_t  ib,
T *  X,
TPACK *  packX 
)
inlinepure virtual

structure closure, e.g. ldx Loop over ib * pb of X to fill packX. Type cast from T to TPACK if necessary.

Parameters
kk is the number cols, pc is the col offset, pb is the packed size
mm is the number rows, ic is the row offset, ib is the packed size
Xinput data in type T
packXpacked data in type TPACK

Implemented in hmlp::pack2D_pbxib< NB, T, TPACK >.


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