NEML2 1.4.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)
 
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)
 
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)
 
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)
 
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, int batch_dim=-1)
 
Scalar logspace (Scalar start, Scalar end, int nstep, int dim=0, int batch_dim=-1, 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/22]

Scalar __add__ ( self,
float arg0 )

◆ __add__() [2/22]

MillerIndex __add__ ( self,
MillerIndex arg0 )

◆ __add__() [3/22]

Quaternion __add__ ( self,
Quaternion arg0 )

◆ __add__() [4/22]

R2 __add__ ( self,
R2 arg0 )

◆ __add__() [5/22]

R3 __add__ ( self,
R3 arg0 )

◆ __add__() [6/22]

R4 __add__ ( self,
R4 arg0 )

◆ __add__() [7/22]

R5 __add__ ( self,
R5 arg0 )

◆ __add__() [8/22]

Rot __add__ ( self,
Rot arg0 )

◆ __add__() [9/22]

Scalar __add__ ( self,
Scalar arg0 )

◆ __add__() [10/22]

Scalar __add__ ( self,
Scalar arg0 )

◆ __add__() [11/22]

Scalar __add__ ( self,
Scalar arg0 )

◆ __add__() [12/22]

SFFR4 __add__ ( self,
SFFR4 arg0 )

◆ __add__() [13/22]

SFR3 __add__ ( self,
SFR3 arg0 )

◆ __add__() [14/22]

SR2 __add__ ( self,
SR2 arg0 )

◆ __add__() [15/22]

SSFR5 __add__ ( self,
SSFR5 arg0 )

◆ __add__() [16/22]

SSR4 __add__ ( self,
SSR4 arg0 )

◆ __add__() [17/22]

SWR4 __add__ ( self,
SWR4 arg0 )

◆ __add__() [18/22]

Tensor __add__ ( self,
Tensor arg0 )

◆ __add__() [19/22]

Vec __add__ ( self,
Vec arg0 )

◆ __add__() [20/22]

WR2 __add__ ( self,
WR2 arg0 )

◆ __add__() [21/22]

WSR4 __add__ ( self,
WSR4 arg0 )

◆ __add__() [22/22]

WWR4 __add__ ( self,
WWR4 arg0 )

◆ __mul__() [1/40]

Scalar __mul__ ( self,
float arg0 )

◆ __mul__() [2/40]

MillerIndex __mul__ ( self,
MillerIndex arg0 )

◆ __mul__() [3/40]

Quaternion __mul__ ( self,
Quaternion arg0 )

◆ __mul__() [4/40]

R2 __mul__ ( self,
R2 arg0 )

◆ __mul__() [5/40]

R3 __mul__ ( self,
R3 arg0 )

◆ __mul__() [6/40]

R4 __mul__ ( self,
R4 arg0 )

◆ __mul__() [7/40]

R5 __mul__ ( self,
R5 arg0 )

◆ __mul__() [8/40]

Rot __mul__ ( self,
Rot arg0 )

◆ __mul__() [9/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [10/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [11/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [12/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [13/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [14/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [15/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [16/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [17/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [18/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [19/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [20/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [21/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [22/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [23/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [24/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [25/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [26/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [27/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [28/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [29/40]

Scalar __mul__ ( self,
Scalar arg0 )

◆ __mul__() [30/40]

SFFR4 __mul__ ( self,
SFFR4 arg0 )

◆ __mul__() [31/40]

SFR3 __mul__ ( self,
SFR3 arg0 )

◆ __mul__() [32/40]

SR2 __mul__ ( self,
SR2 arg0 )

◆ __mul__() [33/40]

SSFR5 __mul__ ( self,
SSFR5 arg0 )

◆ __mul__() [34/40]

SSR4 __mul__ ( self,
SSR4 arg0 )

◆ __mul__() [35/40]

SWR4 __mul__ ( self,
SWR4 arg0 )

◆ __mul__() [36/40]

Tensor __mul__ ( self,
Tensor arg0 )

◆ __mul__() [37/40]

Vec __mul__ ( self,
Vec arg0 )

◆ __mul__() [38/40]

WR2 __mul__ ( self,
WR2 arg0 )

◆ __mul__() [39/40]

WSR4 __mul__ ( self,
WSR4 arg0 )

◆ __mul__() [40/40]

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/22]

Scalar __sub__ ( self,
float arg0 )

◆ __sub__() [2/22]

MillerIndex __sub__ ( self,
MillerIndex arg0 )

◆ __sub__() [3/22]

Quaternion __sub__ ( self,
Quaternion arg0 )

◆ __sub__() [4/22]

R2 __sub__ ( self,
R2 arg0 )

◆ __sub__() [5/22]

R3 __sub__ ( self,
R3 arg0 )

◆ __sub__() [6/22]

R4 __sub__ ( self,
R4 arg0 )

◆ __sub__() [7/22]

R5 __sub__ ( self,
R5 arg0 )

◆ __sub__() [8/22]

Rot __sub__ ( self,
Rot arg0 )

◆ __sub__() [9/22]

Scalar __sub__ ( self,
Scalar arg0 )

◆ __sub__() [10/22]

Scalar __sub__ ( self,
Scalar arg0 )

◆ __sub__() [11/22]

Scalar __sub__ ( self,
Scalar arg0 )

◆ __sub__() [12/22]

SFFR4 __sub__ ( self,
SFFR4 arg0 )

◆ __sub__() [13/22]

SFR3 __sub__ ( self,
SFR3 arg0 )

◆ __sub__() [14/22]

SR2 __sub__ ( self,
SR2 arg0 )

◆ __sub__() [15/22]

SSFR5 __sub__ ( self,
SSFR5 arg0 )

◆ __sub__() [16/22]

SSR4 __sub__ ( self,
SSR4 arg0 )

◆ __sub__() [17/22]

SWR4 __sub__ ( self,
SWR4 arg0 )

◆ __sub__() [18/22]

Tensor __sub__ ( self,
Tensor arg0 )

◆ __sub__() [19/22]

Vec __sub__ ( self,
Vec arg0 )

◆ __sub__() [20/22]

WR2 __sub__ ( self,
WR2 arg0 )

◆ __sub__() [21/22]

WSR4 __sub__ ( self,
WSR4 arg0 )

◆ __sub__() [22/22]

WWR4 __sub__ ( self,
WWR4 arg0 )

◆ __truediv__() [1/22]

Scalar __truediv__ ( self,
float arg0 )

◆ __truediv__() [2/22]

MillerIndex __truediv__ ( self,
MillerIndex arg0 )

◆ __truediv__() [3/22]

Quaternion __truediv__ ( self,
Quaternion arg0 )

◆ __truediv__() [4/22]

R2 __truediv__ ( self,
R2 arg0 )

◆ __truediv__() [5/22]

R3 __truediv__ ( self,
R3 arg0 )

◆ __truediv__() [6/22]

R4 __truediv__ ( self,
R4 arg0 )

◆ __truediv__() [7/22]

R5 __truediv__ ( self,
R5 arg0 )

◆ __truediv__() [8/22]

Rot __truediv__ ( self,
Rot arg0 )

◆ __truediv__() [9/22]

Scalar __truediv__ ( self,
Scalar arg0 )

◆ __truediv__() [10/22]

Scalar __truediv__ ( self,
Scalar arg0 )

◆ __truediv__() [11/22]

Scalar __truediv__ ( self,
Scalar arg0 )

◆ __truediv__() [12/22]

SFFR4 __truediv__ ( self,
SFFR4 arg0 )

◆ __truediv__() [13/22]

SFR3 __truediv__ ( self,
SFR3 arg0 )

◆ __truediv__() [14/22]

SR2 __truediv__ ( self,
SR2 arg0 )

◆ __truediv__() [15/22]

SSFR5 __truediv__ ( self,
SSFR5 arg0 )

◆ __truediv__() [16/22]

SSR4 __truediv__ ( self,
SSR4 arg0 )

◆ __truediv__() [17/22]

SWR4 __truediv__ ( self,
SWR4 arg0 )

◆ __truediv__() [18/22]

Tensor __truediv__ ( self,
Tensor arg0 )

◆ __truediv__() [19/22]

Vec __truediv__ ( self,
Vec arg0 )

◆ __truediv__() [20/22]

WR2 __truediv__ ( self,
WR2 arg0 )

◆ __truediv__() [21/22]

WSR4 __truediv__ ( self,
WSR4 arg0 )

◆ __truediv__() [22/22]

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,
int batch_dim = -1 )
static

◆ logspace()

Scalar logspace ( Scalar start,
Scalar end,
int nstep,
int dim = 0,
int batch_dim = -1,
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