Go to the documentation of this file.
35 #include "../detail/ComplexVariant.h"
38 #include "../container/Dict.h"
41 #include "../../../type/variant/ndarray/All.h"
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...);
std::shared_ptr< Variant > VariantPtr
std::vector< unsigned char > getDataAsVector() const
virtual std::string getFullName() const override
get the full str representation of this variant
void setType(const std::string &)
std::string getType() const
virtual std::string getShortName() const override
get a short str representation of this variant
virtual type::VariantPtr recalculateType() const override
recalculate the type of a data variant. Please not tha the mapping ist NOT bijective,...
std::shared_ptr< NDArray > NDArrayPtr
static data::dto::NDArrayPtr ToNDArrayDTO(const PointerType &navigator)
std::vector< int > getShape() const
static std::string DimensionsToString(const std::vector< int > &dimensions)
Return dimensions in a readable string such as "(2, 3, 4)".
virtual PointerType clone() const
void setShape(const std::vector< int > &)
virtual bool operator==(const NDArray &) const override
A convenience header to include all aron files (full include, not forward declared)
std::shared_ptr< Dict > DictPtr
static PointerType FromNDArrayDTO(const data::dto::NDArrayPtr &aron)
DictPtr getAsDict() const
std::filesystem::path Path
data::dto::NDArrayPtr toNDArrayDTO() const
void setData(unsigned int, const unsigned char *)
NDArray(const Path &path=Path())
unsigned char * getData() const
aron::data::NDArrayPtr make_ndarray(_Args &&... args)
AronDataType::PointerType aron
virtual bool fullfillsType(const type::VariantPtr &) const override
checks, if the current data variant fullfills the given type