6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../components/tensor_data.hpp"
10#include "../components/value_range.hpp"
11#include "../indicator_component.hpp"
12#include "../result.hpp"
73 static constexpr const char IndicatorComponentName[] =
"rerun.components.TensorIndicator";
90 template <
typename TElement>
124 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
132 template <
typename T>
137 struct AsComponents<archetypes::Tensor> {
139 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::Tensor& archetype);
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:77
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: An N-dimensional array of numbers.
Definition tensor.hpp:55
rerun::components::TensorData data
The tensor data.
Definition tensor.hpp:57
Tensor(Collection< datatypes::TensorDimension > shape, datatypes::TensorBuffer buffer)
New Tensor from dimensions and tensor buffer.
Definition tensor.hpp:80
Tensor with_value_range(rerun::components::ValueRange _value_range) &&
The expected range of values.
Definition tensor.hpp:121
std::optional< rerun::components::ValueRange > value_range
The expected range of values.
Definition tensor.hpp:70
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:91
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: An N-dimensional array of numbers.
Definition tensor_data.hpp:23
Component: Range of expected or valid values, specifying a lower and upper bound.
Definition value_range.hpp:16
Datatype: The underlying storage for archetypes::Tensor.
Definition tensor_buffer.hpp:99
Datatype: An N-dimensional array of numbers.
Definition tensor_data.hpp:30