16 #ifndef TMVA_DNN_ARCHITECTURES_CPU_CPUBUFFER 17 #define TMVA_DNN_ARCHITECTURES_CPU_CPUBUFFER 42 template<
typename AFloat>
66 operator AFloat * ()
const {
return (* fBuffer) +
fOffset;}
71 AFloat &
operator[](
size_t i) {
return (*fBuffer.get())[fOffset + i];}
72 AFloat
operator[](
size_t i)
const {
return (*fBuffer.get())[fOffset + i];}
void CopyTo(TCpuBuffer &)
Copy data to another buffer.
std::shared_ptr< AFloat * > fBuffer
void operator()(AFloat **pointer)
AFloat operator[](size_t i) const
AFloat & operator[](size_t i)
TCpuBuffer & operator=(const TCpuBuffer &)=default
Abstract ClassifierFactory template that handles arbitrary types.
void CopyFrom(TCpuBuffer &)
Copy data from another buffer.
TCpuBuffer GetSubBuffer(size_t offset, size_t start)
Return subbuffer of siez start starting at element offset.
struct TMVA::DNN::TCpuBuffer::TDestructor fDestructor