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

Public Member Functions

Quaternion __add__ (Quaternion self, Quaternion arg0)
 
Quaternion __add__ (Quaternion self, Scalar arg0)
 
Quaternion __add__ (Quaternion self, float arg0)
 
Quaternion __iadd__ (Quaternion self, float arg0)
 
Quaternion __imul__ (Quaternion 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)
 
Quaternion __isub__ (Quaternion self, float arg0)
 
Quaternion __itruediv__ (Quaternion self, float arg0)
 
Quaternion __mul__ (Quaternion self, Scalar arg0)
 
Quaternion __mul__ (Quaternion self, float arg0)
 
Quaternion __neg__ (Quaternion self)
 
Quaternion __pow__ (Quaternion self, float arg0)
 
Quaternion __radd__ (Quaternion self, Scalar arg0)
 
Quaternion __radd__ (Quaternion self, float arg0)
 
str __repr__ (Quaternion self)
 
Quaternion __rmul__ (Quaternion self, Scalar arg0)
 
Quaternion __rmul__ (Quaternion self, float arg0)
 
Quaternion __rsub__ (Quaternion self, Scalar arg0)
 
Quaternion __rsub__ (Quaternion self, float arg0)
 
Quaternion __rtruediv__ (Quaternion self, Scalar arg0)
 
Quaternion __rtruediv__ (Quaternion self, float arg0)
 
str __str__ (Quaternion self)
 
Quaternion __sub__ (Quaternion self, Quaternion arg0)
 
Quaternion __sub__ (Quaternion self, Scalar arg0)
 
Quaternion __sub__ (Quaternion self, float arg0)
 
Quaternion __truediv__ (Quaternion self, Scalar arg0)
 
Quaternion __truediv__ (Quaternion self, float arg0)
 
Quaternion clone (Quaternion self)
 
Quaternion contiguous (Quaternion self)
 
torch.Tensor copy_ (Quaternion self, torch.Tensor arg0, bool arg1)
 
bool defined (Quaternion self)
 
Quaternion detach (Quaternion self)
 
torch.Tensor detach_ (Quaternion self)
 
int dim (Quaternion self)
 
Number|torch.SymInt|torch.SymFloat|torch.SymBool item (Quaternion self)
 
Scalar norm (Quaternion self)
 
torch.Tensor requires_grad_ (Quaternion self, bool arg0)
 
Tensor tensor (Quaternion self)
 
Quaternion to (Quaternion self, *, torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
torch.Tensor torch (Quaternion self)
 
torch.Tensor zero_ (Quaternion self)
 
QuaternionBaseView base (self)
 
QuaternionBatchView batch (self)
 
torch.device device (self)
 
torch.dtype dtype (self)
 
QuaternionDynamicView dynamic (self)
 
torch.Tensor grad (self)
 
QuaternionIntmdView intmd (self)
 
bool requires_grad (self)
 
tuple[int,...] shape (self)
 
QuaternionStaticView static (self)
 

Static Public Member Functions

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

Quaternion __add__ ( Quaternion self,
float arg0 )

◆ __add__() [2/3]

Quaternion __add__ ( Quaternion self,
Quaternion arg0 )

◆ __add__() [3/3]

Quaternion __add__ ( Quaternion self,
Scalar arg0 )

◆ __iadd__()

Quaternion __iadd__ ( Quaternion self,
float arg0 )

◆ __imul__()

Quaternion __imul__ ( Quaternion self,
float arg0 )

◆ __isub__()

Quaternion __isub__ ( Quaternion self,
float arg0 )

◆ __itruediv__()

Quaternion __itruediv__ ( Quaternion self,
float arg0 )

◆ __mul__() [1/2]

Quaternion __mul__ ( Quaternion self,
float arg0 )

◆ __mul__() [2/2]

Quaternion __mul__ ( Quaternion self,
Scalar arg0 )

◆ __neg__()

Quaternion __neg__ ( Quaternion self)

◆ __pow__()

Quaternion __pow__ ( Quaternion self,
float arg0 )

◆ __radd__() [1/2]

Quaternion __radd__ ( Quaternion self,
float arg0 )

◆ __radd__() [2/2]

Quaternion __radd__ ( Quaternion self,
Scalar arg0 )

◆ __repr__()

str __repr__ ( Quaternion self)

◆ __rmul__() [1/2]

Quaternion __rmul__ ( Quaternion self,
float arg0 )

◆ __rmul__() [2/2]

Quaternion __rmul__ ( Quaternion self,
Scalar arg0 )

◆ __rsub__() [1/2]

Quaternion __rsub__ ( Quaternion self,
float arg0 )

◆ __rsub__() [2/2]

Quaternion __rsub__ ( Quaternion self,
Scalar arg0 )

◆ __rtruediv__() [1/2]

Quaternion __rtruediv__ ( Quaternion self,
float arg0 )

◆ __rtruediv__() [2/2]

Quaternion __rtruediv__ ( Quaternion self,
Scalar arg0 )

◆ __str__()

str __str__ ( Quaternion self)

◆ __sub__() [1/3]

Quaternion __sub__ ( Quaternion self,
float arg0 )

◆ __sub__() [2/3]

Quaternion __sub__ ( Quaternion self,
Quaternion arg0 )

◆ __sub__() [3/3]

Quaternion __sub__ ( Quaternion self,
Scalar arg0 )

◆ __truediv__() [1/2]

Quaternion __truediv__ ( Quaternion self,
float arg0 )

◆ __truediv__() [2/2]

Quaternion __truediv__ ( Quaternion self,
Scalar arg0 )

◆ base()

QuaternionBaseView base ( self)

◆ batch()

QuaternionBatchView batch ( self)

◆ clone()

Quaternion clone ( Quaternion self)

◆ contiguous()

Quaternion contiguous ( Quaternion self)

◆ copy_()

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

◆ defined()

bool defined ( Quaternion self)

◆ detach()

Quaternion detach ( Quaternion self)

◆ detach_()

torch.Tensor detach_ ( Quaternion self)

◆ device()

torch.device device ( self)

◆ dim()

int dim ( Quaternion self)

◆ dtype()

torch.dtype dtype ( self)

◆ dynamic()

QuaternionDynamicView dynamic ( self)

◆ dynamic_linspace()

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

◆ dynamic_logspace()

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

◆ empty() [1/2]

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

◆ empty() [2/2]

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

◆ empty_like()

Quaternion empty_like ( Quaternion arg0)
static

◆ full() [1/2]

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

◆ full() [2/2]

Quaternion 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()

Quaternion full_like ( Quaternion other,
float fill_value )
static

◆ grad()

torch.Tensor grad ( self)

◆ intmd()

QuaternionIntmdView intmd ( self)

◆ intmd_linspace()

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

◆ intmd_logspace()

Quaternion intmd_logspace ( Quaternion start,
Quaternion 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 ( Quaternion self)

◆ norm()

Scalar norm ( Quaternion self)

◆ ones() [1/2]

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

◆ ones() [2/2]

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

◆ ones_like()

Quaternion ones_like ( Quaternion arg0)
static

◆ rand() [1/2]

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

◆ rand() [2/2]

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

◆ rand_like()

Quaternion rand_like ( Quaternion arg0)
static

◆ requires_grad()

bool requires_grad ( self)

◆ requires_grad_()

torch.Tensor requires_grad_ ( Quaternion self,
bool arg0 )

◆ shape()

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

◆ static()

QuaternionStaticView static ( self)

◆ tensor()

Tensor tensor ( Quaternion self)

◆ to()

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

◆ torch()

torch.Tensor torch ( Quaternion self)

◆ zero_()

torch.Tensor zero_ ( Quaternion self)

◆ zeros() [1/2]

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

◆ zeros() [2/2]

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

◆ zeros_like()

Quaternion zeros_like ( Quaternion arg0)
static