6#include "../collection.hpp"
7#include "../components/tensor_data.hpp"
8#include "../data_cell.hpp"
9#include "../indicator_component.hpp"
10#include "../result.hpp"
57 static constexpr const char IndicatorComponentName[] =
"rerun.components.TensorIndicator";
76 template <
typename TElement>
104 template <
typename T>
109 struct AsComponents<archetypes::Tensor> {
111 static Result<std::vector<DataCell>> serialize(
const archetypes::Tensor& archetype);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:66
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: A generic n-dimensional Tensor.
Definition tensor.hpp:52
rerun::components::TensorData data
The tensor data.
Definition tensor.hpp:54
Tensor(Collection< datatypes::TensorDimension > shape, datatypes::TensorBuffer buffer)
New Tensor from dimensions and tensor buffer.
Definition tensor.hpp:66
Tensor with_dim_names(Collection< std::string > names) &&
Update the names of the contained TensorData dimensions.
Tensor(Collection< datatypes::TensorDimension > shape, const TElement *data_)
New tensor from dimensions and pointer to tensor data.
Definition tensor.hpp:77
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition tensor.hpp:95
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23
Component: A multi-dimensional Tensor with optionally named arguments.
Definition tensor_data.hpp:21
Datatype: The underlying storage for a Tensor.
Definition tensor_buffer.hpp:93
Datatype: A multi-dimensional Tensor of data.
Definition tensor_data.hpp:29