Object3d#
- class orix.base.Object3d(data=None)[source]#
Bases:
object
Base class for 3d objects.
Note
This class is not meant to be used directly.
- Parameters:
- data
Object data.
Attributes
Return the object data.
Object3d.dim
Return the number of dimensions for this object.
Return the number of navigation dimensions of the instance.
Return the norm of the data.
Return the shape of the object.
Return the total number of entries in this object.
Return the unit object.
Methods
Return an empty object with the appropriate dimensions.
Return a new object with the same data in a single column.
Object3d.get_random_sample
([size, replace, ...])Return a random sample of a given size in a flattened instance.
Object3d.reshape
(*shape)Return a new object containing the same data with a new shape.
Return a new object with length one dimensions removed.
Object3d.stack
(sequence)Return a stacked object from the sequence.
Object3d.transpose
(*axes)Return a new object containing the same data transposed.
Object3d.unique
([return_index, return_inverse])Return a new object containing only this object's unique entries.