|
An
Atom Vector (AV) can be printed although the output
would not be very interesting. In the following
example, a new AV is created for five atoms and
three dimensions and the AV is filled with numbers
from the Uniform distribution. The AV (named
A)
is then printed.
>>> from Yup.Taro.AtomVect import * >>> A = AtomVector( numatom=5, sample='UNIFORM' ) >>> A AtomVector[5:3] { -0.0277413 0.648549 0.382733 -0.0690634 -0.89526 0.656545 -0.404462 0.547166 0.0104678 0.750603 0.832209 0.22074 0.44554 0.263894 -0.966918 }
>>>
|
The
output is indicated by the label
AtomVector
with the number of atoms and number of dimensions
within brackets. The contents of the AV is then
printed, enclosed by a pair of braces, one atom per
line.
An
Extracted
AV can be printed in the same way. This is more
useful because extracts are smaller and more
focused.
|