NEML2 1.4.0
Loading...
Searching...
No Matches
ConstantTensors Struct Reference

A helper class to hold static data of type torch::Tensor. More...

Detailed Description

A helper class to hold static data of type torch::Tensor.

This class exists because torch::Tensor cannot be declared as constexpr nor as static data in the global scope. The former is obvious. The latter is because at the time static variables are initialized, some torch data structures have not been properly initialized yet.

#include <math.h>

Public Member Functions

 ConstantTensors ()
 

Static Public Member Functions

static ConstantTensorsget ()
 
static const torch::Tensor & full_to_mandel_map ()
 
static const torch::Tensor & mandel_to_full_map ()
 
static const torch::Tensor & full_to_mandel_factor ()
 
static const torch::Tensor & mandel_to_full_factor ()
 
static const torch::Tensor & full_to_skew_map ()
 
static const torch::Tensor & skew_to_full_map ()
 
static const torch::Tensor & full_to_skew_factor ()
 
static const torch::Tensor & skew_to_full_factor ()
 

Constructor & Destructor Documentation

◆ ConstantTensors()

Member Function Documentation

◆ full_to_mandel_factor()

const torch::Tensor & full_to_mandel_factor ( )
static

◆ full_to_mandel_map()

const torch::Tensor & full_to_mandel_map ( )
static

◆ full_to_skew_factor()

const torch::Tensor & full_to_skew_factor ( )
static

◆ full_to_skew_map()

const torch::Tensor & full_to_skew_map ( )
static

◆ get()

ConstantTensors & get ( )
static

◆ mandel_to_full_factor()

const torch::Tensor & mandel_to_full_factor ( )
static

◆ mandel_to_full_map()

const torch::Tensor & mandel_to_full_map ( )
static

◆ skew_to_full_factor()

const torch::Tensor & skew_to_full_factor ( )
static

◆ skew_to_full_map()

const torch::Tensor & skew_to_full_map ( )
static