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

Public Member Functions

Scalar __add__ (Scalar self, Scalar arg0)
 
Scalar __add__ (Scalar self, float arg0)
 
Scalar __iadd__ (Scalar self, float arg0)
 
Scalar __imul__ (Scalar self, float arg0)
 
None __init__ (self)
 
None __init__ (self, torch.Tensor tensor, int dynamic_dim, int intmd_dim)
 
None __init__ (self, Vec other)
 
None __init__ (self, Rot other)
 
None __init__ (self, WR2 other)
 
None __init__ (self, R2 other)
 
None __init__ (self, SR2 other)
 
None __init__ (self, R3 other)
 
None __init__ (self, SFR3 other)
 
None __init__ (self, R4 other)
 
None __init__ (self, SFFR4 other)
 
None __init__ (self, WFFR4 other)
 
None __init__ (self, SSR4 other)
 
None __init__ (self, SWR4 other)
 
None __init__ (self, WSR4 other)
 
None __init__ (self, WWR4 other)
 
None __init__ (self, Quaternion other)
 
None __init__ (self, MillerIndex other)
 
None __init__ (self, Tensor other)
 
None __init__ (self, Scalar other)
 
None __init__ (self, torch.Tensor tensor, int intmd_dim=0)
 
Scalar __isub__ (Scalar self, float arg0)
 
Scalar __itruediv__ (Scalar self, float arg0)
 
Scalar __mul__ (Scalar self, Scalar arg0)
 
Scalar __mul__ (Scalar self, float arg0)
 
Scalar __neg__ (Scalar self)
 
Scalar __pow__ (Scalar self, float arg0)
 
Scalar __radd__ (Scalar self, float arg0)
 
str __repr__ (Scalar self)
 
Scalar __rmul__ (Scalar self, float arg0)
 
Scalar __rpow__ (Scalar self, float arg0)
 
Scalar __rsub__ (Scalar self, float arg0)
 
Scalar __rtruediv__ (Scalar self, float arg0)
 
str __str__ (Scalar self)
 
Scalar __sub__ (Scalar self, Scalar arg0)
 
Scalar __sub__ (Scalar self, float arg0)
 
Scalar __truediv__ (Scalar self, Scalar arg0)
 
Scalar __truediv__ (Scalar self, float arg0)
 
Scalar clone (Scalar self)
 
Scalar contiguous (Scalar self)
 
torch.Tensor copy_ (Scalar self, torch.Tensor arg0, bool arg1)
 
bool defined (Scalar self)
 
Scalar detach (Scalar self)
 
torch.Tensor detach_ (Scalar self)
 
int dim (Scalar self)
 
Number|torch.SymInt|torch.SymFloat|torch.SymBool item (Scalar self)
 
Scalar norm (Scalar self)
 
torch.Tensor requires_grad_ (Scalar self, bool arg0)
 
Tensor tensor (Scalar self)
 
Scalar to (Scalar self, *, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
torch.Tensor torch (Scalar self)
 
torch.Tensor zero_ (Scalar self)
 
ScalarBaseView base (self)
 
ScalarBatchView batch (self)
 
torch.device device (self)
 
torch.dtype dtype (self)
 
ScalarDynamicView dynamic (self)
 
torch.Tensor grad (self)
 
ScalarIntmdView intmd (self)
 
bool requires_grad (self)
 
tuple[int,...] shape (self)
 
ScalarStaticView static (self)
 

Static Public Member Functions

Scalar dynamic_linspace (Scalar start, Scalar end, int step, int dim=0)
 
Scalar dynamic_logspace (Scalar start, Scalar end, int step, int dim=0, Number|torch.SymInt|torch.SymFloat|torch.SymBool base=10.0)
 
Scalar empty (*, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar empty (tuple[int,...] dynamic_sizes, tuple[int,...] intmd_sizes=(), *, 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,...] dynamic_sizes, tuple[int,...] intmd_sizes, float fill_value, *, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar full_like (Scalar other, float fill_value)
 
Scalar intmd_linspace (Scalar start, Scalar end, int step, int dim=0)
 
Scalar intmd_logspace (Scalar start, Scalar end, int step, int dim=0, Number|torch.SymInt|torch.SymFloat|torch.SymBool base=10.0)
 
Scalar ones (*, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar ones (tuple[int,...] dynamic_sizes, tuple[int,...] intmd_sizes=(), *, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar ones_like (Scalar arg0)
 
Scalar rand (*, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar rand (tuple[int,...] dynamic_sizes, tuple[int,...] intmd_sizes, *, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar rand_like (Scalar arg0)
 
Scalar zeros (*, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar zeros (tuple[int,...] dynamic_sizes, tuple[int,...] intmd_sizes=(), *, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
Scalar zeros_like (Scalar arg0)
 

Constructor & Destructor Documentation

◆ __init__() [1/21]

None __init__ ( self)

◆ __init__() [2/21]

None __init__ ( self,
torch.Tensor tensor,
int dynamic_dim,
int intmd_dim )

◆ __init__() [3/21]

None __init__ ( self,
Vec other )

◆ __init__() [4/21]

None __init__ ( self,
Rot other )

◆ __init__() [5/21]

None __init__ ( self,
WR2 other )

◆ __init__() [6/21]

None __init__ ( self,
R2 other )

◆ __init__() [7/21]

None __init__ ( self,
SR2 other )

◆ __init__() [8/21]

None __init__ ( self,
R3 other )

◆ __init__() [9/21]

None __init__ ( self,
SFR3 other )

◆ __init__() [10/21]

None __init__ ( self,
R4 other )

◆ __init__() [11/21]

None __init__ ( self,
SFFR4 other )

◆ __init__() [12/21]

None __init__ ( self,
WFFR4 other )

◆ __init__() [13/21]

None __init__ ( self,
SSR4 other )

◆ __init__() [14/21]

None __init__ ( self,
SWR4 other )

◆ __init__() [15/21]

None __init__ ( self,
WSR4 other )

◆ __init__() [16/21]

None __init__ ( self,
WWR4 other )

◆ __init__() [17/21]

None __init__ ( self,
Quaternion other )

◆ __init__() [18/21]

None __init__ ( self,
MillerIndex other )

◆ __init__() [19/21]

None __init__ ( self,
Tensor other )

◆ __init__() [20/21]

None __init__ ( self,
Scalar other )

◆ __init__() [21/21]

None __init__ ( self,
torch.Tensor tensor,
int intmd_dim = 0 )

Member Function Documentation

◆ __add__() [1/2]

Scalar __add__ ( Scalar self,
float arg0 )

◆ __add__() [2/2]

Scalar __add__ ( Scalar self,
Scalar arg0 )

◆ __iadd__()

Scalar __iadd__ ( Scalar self,
float arg0 )

◆ __imul__()

Scalar __imul__ ( Scalar self,
float arg0 )

◆ __isub__()

Scalar __isub__ ( Scalar self,
float arg0 )

◆ __itruediv__()

Scalar __itruediv__ ( Scalar self,
float arg0 )

◆ __mul__() [1/2]

Scalar __mul__ ( Scalar self,
float arg0 )

◆ __mul__() [2/2]

Scalar __mul__ ( Scalar self,
Scalar arg0 )

◆ __neg__()

Scalar __neg__ ( Scalar self)

◆ __pow__()

Scalar __pow__ ( Scalar self,
float arg0 )

◆ __radd__()

Scalar __radd__ ( Scalar self,
float arg0 )

◆ __repr__()

str __repr__ ( Scalar self)

◆ __rmul__()

Scalar __rmul__ ( Scalar self,
float arg0 )

◆ __rpow__()

Scalar __rpow__ ( Scalar self,
float arg0 )

◆ __rsub__()

Scalar __rsub__ ( Scalar self,
float arg0 )

◆ __rtruediv__()

Scalar __rtruediv__ ( Scalar self,
float arg0 )

◆ __str__()

str __str__ ( Scalar self)

◆ __sub__() [1/2]

Scalar __sub__ ( Scalar self,
float arg0 )

◆ __sub__() [2/2]

Scalar __sub__ ( Scalar self,
Scalar arg0 )

◆ __truediv__() [1/2]

Scalar __truediv__ ( Scalar self,
float arg0 )

◆ __truediv__() [2/2]

Scalar __truediv__ ( Scalar self,
Scalar arg0 )

◆ base()

ScalarBaseView base ( self)

◆ batch()

ScalarBatchView batch ( self)

◆ clone()

Scalar clone ( Scalar self)

◆ contiguous()

Scalar contiguous ( Scalar self)

◆ copy_()

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

◆ defined()

bool defined ( Scalar self)

◆ detach()

Scalar detach ( Scalar self)

◆ detach_()

torch.Tensor detach_ ( Scalar self)

◆ device()

torch.device device ( self)

◆ dim()

int dim ( Scalar self)

◆ dtype()

torch.dtype dtype ( self)

◆ dynamic()

ScalarDynamicView dynamic ( self)

◆ dynamic_linspace()

Scalar dynamic_linspace ( Scalar start,
Scalar end,
int step,
int dim = 0 )
static

◆ dynamic_logspace()

Scalar dynamic_logspace ( Scalar start,
Scalar end,
int step,
int dim = 0,
Number | torch.SymInt | torch.SymFloat | torch.SymBool base = 10.0 )
static

◆ empty() [1/2]

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

◆ empty() [2/2]

Scalar empty ( tuple[int, ...] dynamic_sizes,
tuple[int, ...] intmd_sizes = (),
* ,
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, ...] dynamic_sizes,
tuple[int, ...] intmd_sizes,
float fill_value,
* ,
torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ full_like()

Scalar full_like ( Scalar other,
float fill_value )
static

◆ grad()

torch.Tensor grad ( self)

◆ intmd()

ScalarIntmdView intmd ( self)

◆ intmd_linspace()

Scalar intmd_linspace ( Scalar start,
Scalar end,
int step,
int dim = 0 )
static

◆ intmd_logspace()

Scalar intmd_logspace ( Scalar start,
Scalar end,
int step,
int dim = 0,
Number | torch.SymInt | torch.SymFloat | torch.SymBool base = 10.0 )
static

◆ item()

Number | torch.SymInt | torch.SymFloat | torch.SymBool item ( Scalar self)

◆ norm()

Scalar norm ( Scalar self)

◆ ones() [1/2]

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

◆ ones() [2/2]

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

◆ ones_like()

Scalar ones_like ( Scalar arg0)
static

◆ rand() [1/2]

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

◆ rand() [2/2]

Scalar rand ( tuple[int, ...] dynamic_sizes,
tuple[int, ...] intmd_sizes,
* ,
torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ rand_like()

Scalar rand_like ( Scalar arg0)
static

◆ requires_grad()

bool requires_grad ( self)

◆ requires_grad_()

torch.Tensor requires_grad_ ( Scalar self,
bool arg0 )

◆ shape()

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

◆ static()

ScalarStaticView static ( self)

◆ tensor()

Tensor tensor ( Scalar self)

◆ to()

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

◆ torch()

torch.Tensor torch ( Scalar self)

◆ zero_()

torch.Tensor zero_ ( Scalar self)

◆ zeros() [1/2]

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

◆ zeros() [2/2]

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

◆ zeros_like()

Scalar zeros_like ( Scalar arg0)
static