Bases: BaseDifferential
Differentials in of points in 3D cartesian coordinates.
Quantity
or array
The x, y, and z coordinates of the differentials. If d_x
, d_y
, and d_z
have different shapes, they should be broadcastable. If not quantities, unit
should be set. If only d_x
is given, it is assumed that it contains an array with the 3 coordinates stored along xyz_axis
.
Unit
or str
If given, the differentials will be converted to this unit (or taken to be in this unit if not given.
int
, optional
The axis along which the coordinates are stored when a single array is provided instead of distinct d_x
, d_y
, and d_z
(default: 0).
If True
(default), arrays will be copied. If False
, arrays will be references, though possibly broadcast to ensure matching shapes.
Attributes Summary
Methods Summary
Attributes Documentation
Component ‘d_x’ of the Differential.
Return a vector array of the x, y, and z coordinates.
int
, optional
The axis in the final array along which the x, y, z components should be stored (default: 0).
Quantity
With dimension 3 along xyz_axis
. Note that, if possible, this will be a view.
Component ‘d_y’ of the Differential.
Component ‘d_z’ of the Differential.
Name of the representation or differential.
When a subclass is defined, by default, the name is the lower-cased name of the class with with any trailing ‘representation’ or ‘differential’ removed. (E.g., ‘spherical’ for SphericalRepresentation
or SphericalDifferential
.)
This can be customized when defining a subclass by setting the class attribute.
Methods Documentation
Convert the differential from 3D rectangular cartesian coordinates to the desired class.
The object to convert into this differential.
BaseRepresentation
The points for which the differentials are to be converted: each of the components is multiplied by its unit vectors and scale factors. Will be converted to cls.base_representation
if needed.
BaseDifferential
subclass instance
A new differential object that is this class’ type.
Return a vector array of the x, y, and z coordinates.
int
, optional
The axis in the final array along which the x, y, z components should be stored (default: 0).
Quantity
With dimension 3 along xyz_axis
. Note that, if possible, this will be a view.
Convert the differential to 3D rectangular cartesian coordinates.
self.base_representation
The points for which the differentials are to be converted: each of the components is multiplied by its unit vectors and scale factors.
CartesianDifferential
This object, converted.
Transform differentials using a 3x3 matrix in a Cartesian basis.
This returns a new differential and does not modify the original one.
A 3x3 (or stack thereof) matrix, such as a rotation matrix.
CartesianRepresentation
or None
, optional
Not used in the Cartesian transformation.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4