NEML2 1.4.0
|
A helper class to hold static data of type torch::Tensor. More...
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 ConstantTensors & | get () |
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 () |
ConstantTensors | ( | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |