54 NDArray(
const std::vector<int>&,
56 const std::vector<unsigned char>&,
76 void setData(
unsigned int,
const unsigned char*);
81 void setShape(
const std::vector<int>&);
85 void setType(
const std::string&);
103 template <
typename... _Args>
107 return std::make_shared<aron::data::NDArray>(args...);
virtual std::string getShortName() const override
get a short str representation of this variant
void setData(unsigned int, const unsigned char *)
static PointerType FromNDArrayDTO(const data::dto::NDArrayPtr &aron)
data::dto::NDArrayPtr toNDArrayDTO() const
virtual type::VariantPtr recalculateType() const override
recalculate the type of a data variant. Please not tha the mapping ist NOT bijective,...
static std::string DimensionsToString(const std::vector< int > &dimensions)
Return dimensions in a readable string such as "(2, 3, 4)".
virtual std::string getFullName() const override
get the full str representation of this variant
std::vector< unsigned char > getDataAsVector() const
std::string getType() const
unsigned char * getData() const
NDArray(const Path &path=Path())
virtual bool operator==(const NDArray &) const override
virtual bool fullfillsType(const type::VariantPtr &) const override
checks, if the current data variant fullfills the given type
std::vector< int > getShape() const
void setShape(const std::vector< int > &)
DictPtr getAsDict() const
static data::dto::NDArrayPtr ToNDArrayDTO(const PointerType &navigator)
void setType(const std::string &)
std::shared_ptr< NDArray > PointerType
AronDataType::PointerType aron
virtual PointerType clone() const
A convenience header to include all aron files (full include, not forward declared)
std::shared_ptr< Dict > DictPtr
std::shared_ptr< NDArray > NDArrayPtr
std::shared_ptr< Variant > VariantPtr
aron::data::NDArrayPtr make_ndarray(_Args &&... args)