Class TextGeneratorContext

Inheritance Relationships

Base Type

Class Documentation

class TextGeneratorContext : public sequant::ExportContext

Context for the TextGenerator.

Public Functions

inline virtual void set_batch_indices(std::span<const Index> indices, std::optional<std::size_t> id = {}) override

Sets the batch indices for the given expression

Parameters:
  • indices – The batch indices

  • id – ID of the target expression

inline virtual std::span<const Index> batch_indices(std::optional<std::size_t> id = {}) const override
Parameters:

id – The ID of the relevant expression

Returns:

The set of indices that the given expression should be batched over