Cortenn
Public Member Functions | Public Attributes | List of all members
MockTensor Struct Referencefinal

#include <common.hpp>

Inheritance diagram for MockTensor:
Inheritance graph
[legend]
Collaboration diagram for MockTensor:
Collaboration graph
[legend]

Public Member Functions

 MockTensor (void)=default
 
 MockTensor (ade::Shape shape)
 
const ade::Shape & shape (void) const override
 
std::string to_string (void) const override
 
void * data (void) override
 
const void * data (void) const override
 
size_t type_code (void) const override
 
 MockTensor (void)=default
 
 MockTensor (ade::Shape shape)
 
const ade::Shape & shape (void) const override
 
std::string to_string (void) const override
 
void * data (void) override
 
const void * data (void) const override
 
size_t type_code (void) const override
 

Public Attributes

double val_
 
ade::Shape shape_
 

Constructor & Destructor Documentation

◆ MockTensor() [1/4]

MockTensor::MockTensor ( void  )
default

◆ MockTensor() [2/4]

MockTensor::MockTensor ( ade::Shape  shape)
inline

◆ MockTensor() [3/4]

MockTensor::MockTensor ( void  )
default

◆ MockTensor() [4/4]

MockTensor::MockTensor ( ade::Shape  shape)
inline

Member Function Documentation

◆ data() [1/4]

void* MockTensor::data ( void  )
inlineoverride

◆ data() [2/4]

const void* MockTensor::data ( void  ) const
inlineoverride

◆ data() [3/4]

void* MockTensor::data ( void  )
inlineoverride

◆ data() [4/4]

const void* MockTensor::data ( void  ) const
inlineoverride

◆ shape() [1/2]

const ade::Shape& MockTensor::shape ( void  ) const
inlineoverride

◆ shape() [2/2]

const ade::Shape& MockTensor::shape ( void  ) const
inlineoverride

◆ to_string() [1/2]

std::string MockTensor::to_string ( void  ) const
inlineoverride

◆ to_string() [2/2]

std::string MockTensor::to_string ( void  ) const
inlineoverride

◆ type_code() [1/2]

size_t MockTensor::type_code ( void  ) const
inlineoverride

◆ type_code() [2/2]

size_t MockTensor::type_code ( void  ) const
inlineoverride

Member Data Documentation

◆ shape_

ade::Shape MockTensor::shape_

◆ val_

double MockTensor::val_

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