asvectorarray#

atompy.asvectorarray(input)[source]#

Convert VectorArray-like input to a VectorArray.

Parameters:
inputVectorArrayLike

Either array_like [with shape (3, N)], Vector, sequence of Vector, or VectorArray.

Returns:
vector_arrayVectorArray

See also

asvector

Examples

>>> ap.asvectorarray(((1, 2, 3), (4, 5, 6)))
VectorArray([[1. 2. 3.]
            [4. 5. 6.]])
>>> ap.asvectorarray(((1, 2, 3), (4, 5, 6)))
VectorArray([[1. 2. 3.]
            [4. 5. 6.]])