Class JuliaTensorOperationsGeneratorContext

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class JuliaTensorOperationsGeneratorContext : public sequant::ExportContext

Context class for the JuliaTensorOperationsGenerator.

Subclassed by sequant::JuliaITensorGeneratorContext, sequant::JuliaTensorKitGeneratorContext

Public Types

using TagMap = std::map<IndexSpace, std::string>
using DimMap = std::map<IndexSpace, std::string>

Public Functions

JuliaTensorOperationsGeneratorContext() = default
~JuliaTensorOperationsGeneratorContext() = default
JuliaTensorOperationsGeneratorContext(TagMap index_tags, DimMap index_dims)
std::string get_tag(const IndexSpace &space) const
std::string get_dim(const IndexSpace &space) const
std::string get_tags(const Tensor &tensor) const
void set_tag(const IndexSpace &space, std::string tag)
void set_dim(const IndexSpace &space, std::string dim)

Protected Attributes

TagMap m_index_tags
DimMap m_index_dims