NEML2 2.0.0
Loading...
Searching...
No Matches
Scalar Class Reference

Public Member Functions

Scalar __add__ (self, float arg0)
 
Scalar __add__ (self, Scalar arg0)
 
Scalar __add__ (self, Scalar arg0)
 
Vec __add__ (self, Vec arg0)
 
Rot __add__ (self, Rot arg0)
 
WR2 __add__ (self, WR2 arg0)
 
R2 __add__ (self, R2 arg0)
 
Scalar __add__ (self, Scalar arg0)
 
SR2 __add__ (self, SR2 arg0)
 
R3 __add__ (self, R3 arg0)
 
SFR3 __add__ (self, SFR3 arg0)
 
R4 __add__ (self, R4 arg0)
 
SSR4 __add__ (self, SSR4 arg0)
 
SFFR4 __add__ (self, SFFR4 arg0)
 
SWR4 __add__ (self, SWR4 arg0)
 
WSR4 __add__ (self, WSR4 arg0)
 
WWR4 __add__ (self, WWR4 arg0)
 
R5 __add__ (self, R5 arg0)
 
SSFR5 __add__ (self, SSFR5 arg0)
 
Quaternion __add__ (self, Quaternion arg0)
 
MillerIndex __add__ (self, MillerIndex arg0)
 
SSSSR8 __add__ (self, SSSSR8 arg0)
 
R8 __add__ (self, R8 arg0)
 
Tensor __add__ (self, Tensor arg0)
 
None __init__ (self)
 
None __init__ (self, torch.Tensor arg0, int arg1)
 
None __init__ (self, Scalar arg0)
 
None __init__ (self, torch.Tensor arg0)
 
Scalar __mul__ (self, float arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
Vec __mul__ (self, Vec arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
Rot __mul__ (self, Rot arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
WR2 __mul__ (self, WR2 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
R2 __mul__ (self, R2 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
SR2 __mul__ (self, SR2 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
R3 __mul__ (self, R3 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
SFR3 __mul__ (self, SFR3 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
R4 __mul__ (self, R4 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
SSR4 __mul__ (self, SSR4 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
SFFR4 __mul__ (self, SFFR4 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
SWR4 __mul__ (self, SWR4 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
WSR4 __mul__ (self, WSR4 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
WWR4 __mul__ (self, WWR4 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
R5 __mul__ (self, R5 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
SSFR5 __mul__ (self, SSFR5 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
Quaternion __mul__ (self, Quaternion arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
MillerIndex __mul__ (self, MillerIndex arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
SSSSR8 __mul__ (self, SSSSR8 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
R8 __mul__ (self, R8 arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
Tensor __mul__ (self, Tensor arg0)
 
Scalar __mul__ (self, Scalar arg0)
 
Scalar __neg__ (self)
 
Scalar __pow__ (self, float arg0)
 
Scalar __pow__ (self, Scalar arg0)
 
Scalar __radd__ (self, float arg0)
 
str __repr__ (self)
 
Scalar __rmul__ (self, float arg0)
 
Tensor __rpow__ (self, float arg0)
 
Scalar __rsub__ (self, float arg0)
 
Scalar __rtruediv__ (self, float arg0)
 
str __str__ (self)
 
Scalar __sub__ (self, float arg0)
 
Scalar __sub__ (self, Scalar arg0)
 
Scalar __sub__ (self, Scalar arg0)
 
Vec __sub__ (self, Vec arg0)
 
Rot __sub__ (self, Rot arg0)
 
WR2 __sub__ (self, WR2 arg0)
 
R2 __sub__ (self, R2 arg0)
 
Scalar __sub__ (self, Scalar arg0)
 
SR2 __sub__ (self, SR2 arg0)
 
R3 __sub__ (self, R3 arg0)
 
SFR3 __sub__ (self, SFR3 arg0)
 
R4 __sub__ (self, R4 arg0)
 
SSR4 __sub__ (self, SSR4 arg0)
 
SFFR4 __sub__ (self, SFFR4 arg0)
 
SWR4 __sub__ (self, SWR4 arg0)
 
WSR4 __sub__ (self, WSR4 arg0)
 
WWR4 __sub__ (self, WWR4 arg0)
 
R5 __sub__ (self, R5 arg0)
 
SSFR5 __sub__ (self, SSFR5 arg0)
 
Quaternion __sub__ (self, Quaternion arg0)
 
MillerIndex __sub__ (self, MillerIndex arg0)
 
SSSSR8 __sub__ (self, SSSSR8 arg0)
 
R8 __sub__ (self, R8 arg0)
 
Tensor __sub__ (self, Tensor arg0)
 
Scalar __truediv__ (self, float arg0)
 
Scalar __truediv__ (self, Scalar arg0)
 
Scalar __truediv__ (self, Scalar arg0)
 
Vec __truediv__ (self, Vec arg0)
 
Rot __truediv__ (self, Rot arg0)
 
WR2 __truediv__ (self, WR2 arg0)
 
R2 __truediv__ (self, R2 arg0)
 
Scalar __truediv__ (self, Scalar arg0)
 
SR2 __truediv__ (self, SR2 arg0)
 
R3 __truediv__ (self, R3 arg0)
 
SFR3 __truediv__ (self, SFR3 arg0)
 
R4 __truediv__ (self, R4 arg0)
 
SSR4 __truediv__ (self, SSR4 arg0)
 
SFFR4 __truediv__ (self, SFFR4 arg0)
 
SWR4 __truediv__ (self, SWR4 arg0)
 
WSR4 __truediv__ (self, WSR4 arg0)
 
WWR4 __truediv__ (self, WWR4 arg0)
 
R5 __truediv__ (self, R5 arg0)
 
SSFR5 __truediv__ (self, SSFR5 arg0)
 
Quaternion __truediv__ (self, Quaternion arg0)
 
MillerIndex __truediv__ (self, MillerIndex arg0)
 
SSSSR8 __truediv__ (self, SSSSR8 arg0)
 
R8 __truediv__ (self, R8 arg0)
 
Tensor __truediv__ (self, Tensor arg0)
 
bool batched (self)
 
Scalar clone (self)
 
torch.Tensor copy_ (self, torch.Tensor arg0, bool arg1)
 
bool defined (self)
 
Scalar detach (self)
 
torch.Tensor detach_ (self)
 
int dim (self)
 
torch.Tensor requires_grad_ (self, bool arg0)
 
Tensor tensor (self)
 
Scalar to (self, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
torch.Tensor torch (self)
 
torch.Tensor torch (self)
 
torch.Tensor zero_ (self)
 
ScalarBaseView base (self)
 
ScalarBatchView batch (self)
 
torch.device device (self)
 
torch.dtype dtype (self)
 
torch.Tensor grad (self)
 
bool requires_grad (self)
 
tuple[int,...] shape (self)
 

Static Public Member Functions

Scalar empty (*torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar empty (tuple[int,...] batch_shape, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar empty_like (Scalar arg0)
 
Scalar full (float fill_value, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar full (tuple[int,...] batch_shape, float fill_value, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar full_like (Scalar arg0, float arg1)
 
Scalar identity_map (*torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar linspace (Scalar start, Scalar end, int nstep, int dim=0)
 
Scalar logspace (Scalar start, Scalar end, int nstep, int dim=0, float base=10.0)
 
Scalar ones (*torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar ones (tuple[int,...] batch_shape, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar ones_like (Scalar arg0)
 
Scalar zeros (*torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar zeros (tuple[int,...] batch_shape, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar zeros_like (Scalar arg0)
 

Constructor & Destructor Documentation

◆ __init__() [1/4]

None __init__ ( self)

◆ __init__() [2/4]

None __init__ ( self,
torch.Tensor arg0,
int arg1 )

◆ __init__() [3/4]

None __init__ ( self,
Scalar arg0 )

◆ __init__() [4/4]

None __init__ ( self,
torch.Tensor arg0 )

Member Function Documentation

◆ __add__() [1/24]

Scalar __add__ ( self,
float arg0 )

◆ __add__() [2/24]

MillerIndex __add__ ( self,
MillerIndex arg0 )

◆ __add__() [3/24]

Quaternion __add__ ( self,
Quaternion arg0 )

◆ __add__() [4/24]

R2 __add__ ( self,
R2 arg0 )

◆ __add__() [5/24]

R3 __add__ ( self,
R3 arg0 )

◆ __add__() [6/24]

R4 __add__ ( self,
R4 arg0 )

◆ __add__() [7/24]

R5 __add__ ( self,
R5 arg0 )

◆ __add__() [8/24]

R8 __add__ ( self,
R8 arg0 )

◆ __add__() [9/24]

Rot __add__ ( self,
Rot arg0 )

◆ __add__() [10/24]

Scalar __add__ ( self,
Scalar arg0 )

◆ __add__() [11/24]

Scalar __add__ ( self,
Scalar arg0 )

◆ __add__() [12/24]

Scalar __add__ ( self,
Scalar arg0 )

◆ __add__() [13/24]

SFFR4 __add__ ( self,
SFFR4 arg0 )

◆ __add__() [14/24]

SFR3 __add__ ( self,
SFR3 arg0 )

◆ __add__() [15/24]

SR2 __add__ ( self,
SR2 arg0 )

◆ __add__() [16/24]

SSFR5 __add__ ( self,
SSFR5 arg0 )

◆ __add__() [17/24]

SSR4 __add__ ( self,
SSR4 arg0 )

◆ __add__() [18/24]

SSSSR8 __add__ ( self,
SSSSR8 arg0 )

◆ __add__() [19/24]

SWR4 __add__ ( self,
SWR4 arg0 )

◆ __add__() [20/24]

Tensor __add__ ( self,
Tensor arg0 )

◆ __add__() [21/24]

Vec __add__ ( self,
Vec arg0 )

◆ __add__() [22/24]

WR2 __add__ ( self,
WR2 arg0 )

◆ __add__() [23/24]

WSR4 __add__ ( self,
WSR4 arg0 )

◆ __add__() [24/24]

WWR4 __add__ ( self,
WWR4 arg0 )

◆ __mul__() [1/44]

Scalar __mul__ ( self,
float arg0 )

◆ __mul__() [2/44]

MillerIndex __mul__ ( self,
MillerIndex arg0 )

◆ __mul__() [3/44]

Quaternion __mul__ ( self,
Quaternion arg0 )

◆ __mul__() [4/44]

R2 __mul__ ( self,
R2 arg0 )

◆ __mul__() [5/44]

R3 __mul__ ( self,
R3 arg0 )

◆ __mul__() [6/44]

R4 __mul__ ( self,
R4 arg0 )

◆ __mul__() [7/44]

R5 __mul__ ( self,
R5 arg0 )

◆ __mul__() [8/44]

R8 __mul__ ( self,
R8 arg0 )

◆ __mul__() [9/44]

Rot __mul__ ( self,
Rot arg0 )

◆ __mul__() [10/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [11/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [12/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [13/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [14/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [15/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [16/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [17/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [18/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [19/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [20/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [21/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [22/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [23/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [24/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [25/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [26/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [27/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [28/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [29/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [30/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [31/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [32/44]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [33/44]

SFFR4 __mul__ ( self,
SFFR4 arg0 )

◆ __mul__() [34/44]

SFR3 __mul__ ( self,
SFR3 arg0 )

◆ __mul__() [35/44]

SR2 __mul__ ( self,
SR2 arg0 )

◆ __mul__() [36/44]

SSFR5 __mul__ ( self,
SSFR5 arg0 )

◆ __mul__() [37/44]

SSR4 __mul__ ( self,
SSR4 arg0 )

◆ __mul__() [38/44]

SSSSR8 __mul__ ( self,
SSSSR8 arg0 )

◆ __mul__() [39/44]

SWR4 __mul__ ( self,
SWR4 arg0 )

◆ __mul__() [40/44]

Tensor __mul__ ( self,
Tensor arg0 )

◆ __mul__() [41/44]

Vec __mul__ ( self,
Vec arg0 )

◆ __mul__() [42/44]

WR2 __mul__ ( self,
WR2 arg0 )

◆ __mul__() [43/44]

WSR4 __mul__ ( self,
WSR4 arg0 )

◆ __mul__() [44/44]

WWR4 __mul__ ( self,
WWR4 arg0 )

◆ __neg__()

Scalar __neg__ ( self)

◆ __pow__() [1/2]

Scalar __pow__ ( self,
float arg0 )

◆ __pow__() [2/2]

Scalar __pow__ ( self,
Scalar arg0 )

◆ __radd__()

Scalar __radd__ ( self,
float arg0 )

◆ __repr__()

str __repr__ ( self)

◆ __rmul__()

Scalar __rmul__ ( self,
float arg0 )

◆ __rpow__()

Tensor __rpow__ ( self,
float arg0 )

◆ __rsub__()

Scalar __rsub__ ( self,
float arg0 )

◆ __rtruediv__()

Scalar __rtruediv__ ( self,
float arg0 )

◆ __str__()

str __str__ ( self)

◆ __sub__() [1/24]

Scalar __sub__ ( self,
float arg0 )

◆ __sub__() [2/24]

MillerIndex __sub__ ( self,
MillerIndex arg0 )

◆ __sub__() [3/24]

Quaternion __sub__ ( self,
Quaternion arg0 )

◆ __sub__() [4/24]

R2 __sub__ ( self,
R2 arg0 )

◆ __sub__() [5/24]

R3 __sub__ ( self,
R3 arg0 )

◆ __sub__() [6/24]

R4 __sub__ ( self,
R4 arg0 )

◆ __sub__() [7/24]

R5 __sub__ ( self,
R5 arg0 )

◆ __sub__() [8/24]

R8 __sub__ ( self,
R8 arg0 )

◆ __sub__() [9/24]

Rot __sub__ ( self,
Rot arg0 )

◆ __sub__() [10/24]

Scalar __sub__ ( self,
Scalar arg0 )

◆ __sub__() [11/24]

Scalar __sub__ ( self,
Scalar arg0 )

◆ __sub__() [12/24]

Scalar __sub__ ( self,
Scalar arg0 )

◆ __sub__() [13/24]

SFFR4 __sub__ ( self,
SFFR4 arg0 )

◆ __sub__() [14/24]

SFR3 __sub__ ( self,
SFR3 arg0 )

◆ __sub__() [15/24]

SR2 __sub__ ( self,
SR2 arg0 )

◆ __sub__() [16/24]

SSFR5 __sub__ ( self,
SSFR5 arg0 )

◆ __sub__() [17/24]

SSR4 __sub__ ( self,
SSR4 arg0 )

◆ __sub__() [18/24]

SSSSR8 __sub__ ( self,
SSSSR8 arg0 )

◆ __sub__() [19/24]

SWR4 __sub__ ( self,
SWR4 arg0 )

◆ __sub__() [20/24]

Tensor __sub__ ( self,
Tensor arg0 )

◆ __sub__() [21/24]

Vec __sub__ ( self,
Vec arg0 )

◆ __sub__() [22/24]

WR2 __sub__ ( self,
WR2 arg0 )

◆ __sub__() [23/24]

WSR4 __sub__ ( self,
WSR4 arg0 )

◆ __sub__() [24/24]

WWR4 __sub__ ( self,
WWR4 arg0 )

◆ __truediv__() [1/24]

Scalar __truediv__ ( self,
float arg0 )

◆ __truediv__() [2/24]

MillerIndex __truediv__ ( self,
MillerIndex arg0 )

◆ __truediv__() [3/24]

Quaternion __truediv__ ( self,
Quaternion arg0 )

◆ __truediv__() [4/24]

R2 __truediv__ ( self,
R2 arg0 )

◆ __truediv__() [5/24]

R3 __truediv__ ( self,
R3 arg0 )

◆ __truediv__() [6/24]

R4 __truediv__ ( self,
R4 arg0 )

◆ __truediv__() [7/24]

R5 __truediv__ ( self,
R5 arg0 )

◆ __truediv__() [8/24]

R8 __truediv__ ( self,
R8 arg0 )

◆ __truediv__() [9/24]

Rot __truediv__ ( self,
Rot arg0 )

◆ __truediv__() [10/24]

Scalar __truediv__ ( self,
Scalar arg0 )

◆ __truediv__() [11/24]

Scalar __truediv__ ( self,
Scalar arg0 )

◆ __truediv__() [12/24]

Scalar __truediv__ ( self,
Scalar arg0 )

◆ __truediv__() [13/24]

SFFR4 __truediv__ ( self,
SFFR4 arg0 )

◆ __truediv__() [14/24]

SFR3 __truediv__ ( self,
SFR3 arg0 )

◆ __truediv__() [15/24]

SR2 __truediv__ ( self,
SR2 arg0 )

◆ __truediv__() [16/24]

SSFR5 __truediv__ ( self,
SSFR5 arg0 )

◆ __truediv__() [17/24]

SSR4 __truediv__ ( self,
SSR4 arg0 )

◆ __truediv__() [18/24]

SSSSR8 __truediv__ ( self,
SSSSR8 arg0 )

◆ __truediv__() [19/24]

SWR4 __truediv__ ( self,
SWR4 arg0 )

◆ __truediv__() [20/24]

Tensor __truediv__ ( self,
Tensor arg0 )

◆ __truediv__() [21/24]

Vec __truediv__ ( self,
Vec arg0 )

◆ __truediv__() [22/24]

WR2 __truediv__ ( self,
WR2 arg0 )

◆ __truediv__() [23/24]

WSR4 __truediv__ ( self,
WSR4 arg0 )

◆ __truediv__() [24/24]

WWR4 __truediv__ ( self,
WWR4 arg0 )

◆ base()

ScalarBaseView base ( self)

◆ batch()

ScalarBatchView batch ( self)

◆ batched()

bool batched ( self)

◆ clone()

Scalar clone ( self)

◆ copy_()

torch.Tensor copy_ ( self,
torch.Tensor arg0,
bool arg1 )

◆ defined()

bool defined ( self)

◆ detach()

Scalar detach ( self)

◆ detach_()

torch.Tensor detach_ ( self)

◆ device()

torch.device device ( self)

◆ dim()

int dim ( self)

◆ dtype()

torch.dtype dtype ( self)

◆ empty() [1/2]

Scalar empty ( *torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ empty() [2/2]

Scalar empty ( tuple[int, ...] batch_shape,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ empty_like()

Scalar empty_like ( Scalar arg0)
static

◆ full() [1/2]

Scalar full ( float fill_value,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ full() [2/2]

Scalar full ( tuple[int, ...] batch_shape,
float fill_value,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ full_like()

Scalar full_like ( Scalar arg0,
float arg1 )
static

◆ grad()

torch.Tensor grad ( self)

◆ identity_map()

Scalar identity_map ( *torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ linspace()

Scalar linspace ( Scalar start,
Scalar end,
int nstep,
int dim = 0 )
static

◆ logspace()

Scalar logspace ( Scalar start,
Scalar end,
int nstep,
int dim = 0,
float base = 10.0 )
static

◆ ones() [1/2]

Scalar ones ( *torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ ones() [2/2]

Scalar ones ( tuple[int, ...] batch_shape,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ ones_like()

Scalar ones_like ( Scalar arg0)
static

◆ requires_grad()

bool requires_grad ( self)

◆ requires_grad_()

torch.Tensor requires_grad_ ( self,
bool arg0 )

◆ shape()

tuple[int, ...] shape ( self)

◆ tensor()

Tensor tensor ( self)

◆ to()

Scalar to ( self,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )

◆ torch() [1/2]

torch.Tensor torch ( self)

◆ torch() [2/2]

torch.Tensor torch ( self)

◆ zero_()

torch.Tensor zero_ ( self)

◆ zeros() [1/2]

Scalar zeros ( *torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ zeros() [2/2]

Scalar zeros ( tuple[int, ...] batch_shape,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ zeros_like()

Scalar zeros_like ( Scalar arg0)
static