|
Rerun C++ SDK
|
Component: A multi-dimensional Tensor with optionally named arguments.
More...
#include <rerun/components/tensor_data.hpp>
Public Member Functions | |
| TensorData (rerun::Collection< rerun::datatypes::TensorDimension > shape, rerun::datatypes::TensorBuffer buffer) | |
| New tensor data from shape and tensor buffer. | |
| template<typename TElement > | |
| TensorData (Collection< datatypes::TensorDimension > shape, const TElement *data_) | |
| New tensor data from dimensions and pointer to tensor data. | |
| TensorData (rerun::datatypes::TensorData data_) | |
| TensorData & | operator= (rerun::datatypes::TensorData data_) |
| operator rerun::datatypes::TensorData () const | |
| Cast to the underlying TensorData datatype. | |
Public Attributes | |
| rerun::datatypes::TensorData | data |
Component: A multi-dimensional Tensor with optionally named arguments.
|
inline |
New tensor data from shape and tensor buffer.
| shape | Shape of the tensor. |
| buffer | The tensor buffer containing the tensor's data. |
|
inlineexplicit |
New tensor data from dimensions and pointer to tensor data.
Type must be one of the types supported by rerun::datatypes::TensorData.
| shape | Shape of the tensor. Determines the number of elements expected to be in data_. |
| data_ | Target of the pointer must outlive the archetype. |