NEML2 2.1.0
Loading...
Searching...
No Matches

Public Member Functions

neml2.Scalar __add__ (neml2.Scalar self, neml2.Scalar arg0)
neml2.Scalar __add__ (neml2.Scalar self, float arg0)
neml2.Scalar __iadd__ (neml2.Scalar self, float arg0)
neml2.Scalar __imul__ (neml2.Scalar self, float arg0)
None __init__ (self)
None __init__ (self, torch.Tensor tensor, int dynamic_dim, int intmd_dim)
None __init__ (self, neml2.Vec other)
None __init__ (self, neml2.Rot other)
None __init__ (self, neml2.WR2 other)
None __init__ (self, neml2.R2 other)
None __init__ (self, neml2.SR2 other)
None __init__ (self, neml2.R3 other)
None __init__ (self, neml2.SFR3 other)
None __init__ (self, neml2.R4 other)
None __init__ (self, neml2.SFFR4 other)
None __init__ (self, neml2.WFFR4 other)
None __init__ (self, neml2.SSR4 other)
None __init__ (self, neml2.SWR4 other)
None __init__ (self, neml2.WSR4 other)
None __init__ (self, neml2.WWR4 other)
None __init__ (self, neml2.Quaternion other)
None __init__ (self, neml2.MillerIndex other)
None __init__ (self, neml2.Tensor other)
None __init__ (self, neml2.Scalar other)
None __init__ (self, torch.Tensor tensor, int intmd_dim=0)
neml2.Scalar __isub__ (neml2.Scalar self, float arg0)
neml2.Scalar __itruediv__ (neml2.Scalar self, float arg0)
neml2.Scalar __mul__ (neml2.Scalar self, neml2.Scalar arg0)
neml2.Scalar __mul__ (neml2.Scalar self, float arg0)
neml2.Scalar __neg__ (neml2.Scalar self)
neml2.Scalar __pow__ (neml2.Scalar self, float arg0)
neml2.Scalar __radd__ (neml2.Scalar self, float arg0)
str __repr__ (neml2.Scalar self)
neml2.Scalar __rmul__ (neml2.Scalar self, float arg0)
neml2.Scalar __rpow__ (neml2.Scalar self, float arg0)
neml2.Scalar __rsub__ (neml2.Scalar self, float arg0)
neml2.Scalar __rtruediv__ (neml2.Scalar self, float arg0)
str __str__ (neml2.Scalar self)
neml2.Scalar __sub__ (neml2.Scalar self, neml2.Scalar arg0)
neml2.Scalar __sub__ (neml2.Scalar self, float arg0)
neml2.Scalar __truediv__ (neml2.Scalar self, neml2.Scalar arg0)
neml2.Scalar __truediv__ (neml2.Scalar self, float arg0)
neml2.Scalar clone (neml2.Scalar self)
neml2.Scalar contiguous (neml2.Scalar self)
torch.Tensor copy_ (neml2.Scalar self, torch.Tensor arg0, bool arg1)
bool defined (neml2.Scalar self)
neml2.Scalar detach (neml2.Scalar self)
torch.Tensor detach_ (neml2.Scalar self)
int dim (neml2.Scalar self)
Number|torch.SymInt|torch.SymFloat|torch.SymBool item (neml2.Scalar self)
neml2.Scalar norm (neml2.Scalar self)
torch.Tensor requires_grad_ (neml2.Scalar self, bool arg0)
neml2.Tensor tensor (neml2.Scalar self)
neml2.Scalar to (neml2.Scalar self, *, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
torch.Tensor torch (neml2.Scalar self)
torch.Tensor zero_ (neml2.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

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

◆ __init__() [4/21]

None __init__ ( self,
neml2.Rot other )

◆ __init__() [5/21]

None __init__ ( self,
neml2.WR2 other )

◆ __init__() [6/21]

None __init__ ( self,
neml2.R2 other )

◆ __init__() [7/21]

None __init__ ( self,
neml2.SR2 other )

◆ __init__() [8/21]

None __init__ ( self,
neml2.R3 other )

◆ __init__() [9/21]

None __init__ ( self,
neml2.SFR3 other )

◆ __init__() [10/21]

None __init__ ( self,
neml2.R4 other )

◆ __init__() [11/21]

None __init__ ( self,
neml2.SFFR4 other )

◆ __init__() [12/21]

None __init__ ( self,
neml2.WFFR4 other )

◆ __init__() [13/21]

None __init__ ( self,
neml2.SSR4 other )

◆ __init__() [14/21]

None __init__ ( self,
neml2.SWR4 other )

◆ __init__() [15/21]

None __init__ ( self,
neml2.WSR4 other )

◆ __init__() [16/21]

None __init__ ( self,
neml2.WWR4 other )

◆ __init__() [17/21]

None __init__ ( self,
neml2.Quaternion other )

◆ __init__() [18/21]

None __init__ ( self,
neml2.MillerIndex other )

◆ __init__() [19/21]

None __init__ ( self,
neml2.Tensor other )

◆ __init__() [20/21]

None __init__ ( self,
neml2.Scalar other )

◆ __init__() [21/21]

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

Member Function Documentation

◆ __add__() [1/2]

neml2.Scalar __add__ ( neml2.Scalar self,
float arg0 )

◆ __add__() [2/2]

neml2.Scalar __add__ ( neml2.Scalar self,
neml2.Scalar arg0 )

◆ __iadd__()

neml2.Scalar __iadd__ ( neml2.Scalar self,
float arg0 )

◆ __imul__()

neml2.Scalar __imul__ ( neml2.Scalar self,
float arg0 )

◆ __isub__()

neml2.Scalar __isub__ ( neml2.Scalar self,
float arg0 )

◆ __itruediv__()

neml2.Scalar __itruediv__ ( neml2.Scalar self,
float arg0 )

◆ __mul__() [1/2]

neml2.Scalar __mul__ ( neml2.Scalar self,
float arg0 )

◆ __mul__() [2/2]

neml2.Scalar __mul__ ( neml2.Scalar self,
neml2.Scalar arg0 )

◆ __neg__()

neml2.Scalar __neg__ ( neml2.Scalar self)

◆ __pow__()

neml2.Scalar __pow__ ( neml2.Scalar self,
float arg0 )

◆ __radd__()

neml2.Scalar __radd__ ( neml2.Scalar self,
float arg0 )

◆ __repr__()

str __repr__ ( neml2.Scalar self)

◆ __rmul__()

neml2.Scalar __rmul__ ( neml2.Scalar self,
float arg0 )

◆ __rpow__()

neml2.Scalar __rpow__ ( neml2.Scalar self,
float arg0 )

◆ __rsub__()

neml2.Scalar __rsub__ ( neml2.Scalar self,
float arg0 )

◆ __rtruediv__()

neml2.Scalar __rtruediv__ ( neml2.Scalar self,
float arg0 )

◆ __str__()

str __str__ ( neml2.Scalar self)

◆ __sub__() [1/2]

neml2.Scalar __sub__ ( neml2.Scalar self,
float arg0 )

◆ __sub__() [2/2]

neml2.Scalar __sub__ ( neml2.Scalar self,
neml2.Scalar arg0 )

◆ __truediv__() [1/2]

neml2.Scalar __truediv__ ( neml2.Scalar self,
float arg0 )

◆ __truediv__() [2/2]

neml2.Scalar __truediv__ ( neml2.Scalar self,
neml2.Scalar arg0 )

◆ base()

ScalarBaseView base ( self)

◆ batch()

ScalarBatchView batch ( self)

◆ clone()

neml2.Scalar clone ( neml2.Scalar self)

◆ contiguous()

neml2.Scalar contiguous ( neml2.Scalar self)

◆ copy_()

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

◆ defined()

bool defined ( neml2.Scalar self)

◆ detach()

neml2.Scalar detach ( neml2.Scalar self)

◆ detach_()

torch.Tensor detach_ ( neml2.Scalar self)

◆ device()

torch.device device ( self)

◆ dim()

int dim ( neml2.Scalar self)

◆ dtype()

torch.dtype dtype ( self)

◆ dynamic()

ScalarDynamicView dynamic ( self)

◆ dynamic_linspace()

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

◆ dynamic_logspace()

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

◆ empty() [1/2]

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

◆ empty() [2/2]

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

◆ empty_like()

neml2.Scalar empty_like ( neml2.Scalar arg0)
static

◆ full() [1/2]

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

◆ full() [2/2]

neml2.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()

neml2.Scalar full_like ( neml2.Scalar other,
float fill_value )
static

◆ grad()

torch.Tensor grad ( self)

◆ intmd()

ScalarIntmdView intmd ( self)

◆ intmd_linspace()

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

◆ intmd_logspace()

neml2.Scalar intmd_logspace ( neml2.Scalar start,
neml2.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 ( neml2.Scalar self)

◆ norm()

neml2.Scalar norm ( neml2.Scalar self)

◆ ones() [1/2]

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

◆ ones() [2/2]

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

◆ ones_like()

neml2.Scalar ones_like ( neml2.Scalar arg0)
static

◆ rand() [1/2]

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

◆ rand() [2/2]

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

◆ rand_like()

neml2.Scalar rand_like ( neml2.Scalar arg0)
static

◆ requires_grad()

bool requires_grad ( self)

◆ requires_grad_()

torch.Tensor requires_grad_ ( neml2.Scalar self,
bool arg0 )

◆ shape()

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

◆ static()

ScalarStaticView static ( self)

◆ tensor()

neml2.Tensor tensor ( neml2.Scalar self)

◆ to()

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

◆ torch()

torch.Tensor torch ( neml2.Scalar self)

◆ zero_()

torch.Tensor zero_ ( neml2.Scalar self)

◆ zeros() [1/2]

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

◆ zeros() [2/2]

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

◆ zeros_like()

neml2.Scalar zeros_like ( neml2.Scalar arg0)
static