nifty8.re.tree_math.vector module#
- class Vector(tree)[source]#
Bases:
object
Value storage for arbitrary objects with added numerics.
- __init__(tree)[source]#
Instantiates a vector.
- Parameters:
tree (object) – Arbitrary, flatten-able objects.
- conj()#
- conjugate()#
- dot(b, *, precision=None)#
Returns the dot product of the two vectors.
- Parameters:
a (object) – Arbitrary, flatten-able objects.
b (object) – Arbitrary, flatten-able objects.
- Returns:
out – Dot product of vectors.
- Return type:
float
- property imag#
- property real#
- property shape#
- property size#
- property tree#
Retrieves a view of the vector’s values.