Type Definition Scalar
diffgeom::tensors
type Scalar<T> = Tensor<T, ()>;
A scalar type, which is a tensor with rank 0.
This is de facto just a number, so it implements Deref and DerefMut into f64.
Deref
DerefMut
f64
impl<T: CoordinateSystem> DerefMut for Scalar<T>
fn deref_mut(&mut self) -> &mut f64
Mutably dereferences the value.
impl<T: CoordinateSystem> Deref for Scalar<T>
type Target = f64
The resulting type after dereferencing.
fn deref(&self) -> &f64
Dereferences the value.