KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
PROJECT_NS::DimenHelper Struct Reference

DimenHelper is a struct control dimensional utils on the orginal/einsum index for a given tensor. More...

#include <Einsum.h>

Collaboration diagram for PROJECT_NS::DimenHelper:
Collaboration graph

Public Member Functions

 DimenHelper ()
 
 DimenHelper (const std::string &esshape, std::vector< EinsumIdx > &idx_vec)
 

Public Attributes

std::size_t esshape_rank
 the rank of the tensor
 
std::size_t total_esidx
 size if the EinsumIdx System
 
std::vector< std::size_t > dims
 leading dimensions of the tensor
 
std::vector< std::size_t > ldims
 leading dimensions of the tensor
 
std::vector< std::size_t > es_ldims
 leading dimensions of the tensor represented in einsum indexes
 
std::vector< std::size_t > mapldims
 utils for sum of several leading dimensions as the shift step
 

Detailed Description

DimenHelper is a struct control dimensional utils on the orginal/einsum index for a given tensor.

Definition at line 156 of file Einsum.h.

Constructor & Destructor Documentation

◆ DimenHelper() [1/2]

PROJECT_NS::DimenHelper::DimenHelper ( )
inline

Definition at line 166 of file Einsum.h.

◆ DimenHelper() [2/2]

PROJECT_NS::DimenHelper::DimenHelper ( const std::string & esshape,
std::vector< EinsumIdx > & idx_vec )
Parameters
[in]esshapeliterals describing the rule of a tensor like i.e. "abc" represents a rank-3 tensor
[in]idx_vecEinsumIdx System (std::vector<EinsumIdx>&)

Definition at line 8 of file Einsum.cpp.

References dims, es_ldims, esshape_rank, ldims, mapldims, and total_esidx.

Member Data Documentation

◆ dims

std::vector<std::size_t> PROJECT_NS::DimenHelper::dims

leading dimensions of the tensor

Definition at line 161 of file Einsum.h.

Referenced by DimenHelper().

◆ es_ldims

std::vector<std::size_t> PROJECT_NS::DimenHelper::es_ldims

leading dimensions of the tensor represented in einsum indexes

Definition at line 163 of file Einsum.h.

Referenced by DimenHelper().

◆ esshape_rank

std::size_t PROJECT_NS::DimenHelper::esshape_rank

the rank of the tensor

Definition at line 158 of file Einsum.h.

Referenced by DimenHelper().

◆ ldims

std::vector<std::size_t> PROJECT_NS::DimenHelper::ldims

leading dimensions of the tensor

Definition at line 162 of file Einsum.h.

Referenced by DimenHelper().

◆ mapldims

std::vector<std::size_t> PROJECT_NS::DimenHelper::mapldims

utils for sum of several leading dimensions as the shift step

Definition at line 164 of file Einsum.h.

Referenced by DimenHelper(), PROJECT_NS::einsum(), and PROJECT_NS::einsum_fun().

◆ total_esidx

std::size_t PROJECT_NS::DimenHelper::total_esidx

size if the EinsumIdx System

Definition at line 159 of file Einsum.h.

Referenced by DimenHelper().


The documentation for this struct was generated from the following files: