MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ infer_from_composite_array()

MAYAFLUX_API std::pair< std::vector< Kakshya::DataDimension >, Kakshya::DataModality > MayaFlux::Yantra::infer_from_composite_array ( const Kakshya::CompositeArray &  data)

Infer the element axis and modality of a CompositeArray.

Note
Field names and types remain in the array's CompositeLayout.

Definition at line 56 of file StructureIntrospection.cpp.

57{
58 std::vector<Kakshya::DataDimension> dimensions;
59 dimensions.emplace_back("elements", data.size(), 1, Kakshya::DataDimension::Role::CUSTOM);
60 return { std::move(dimensions), Kakshya::DataModality::TENSOR_ND };
61}
size_t size() const noexcept
Number of packed elements.

References MayaFlux::Kakshya::DataDimension::CUSTOM, MayaFlux::Kakshya::CompositeArray::size(), and MayaFlux::Kakshya::TENSOR_ND.

Referenced by infer_structure().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: