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()#
copy()[source]#
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#
max()[source]#
min()[source]#
ravel()[source]#
property real#
property shape#
property size#
sum()[source]#
property tree#

Retrieves a view of the vector’s values.

tree_flatten()[source]#
classmethod tree_unflatten(_, children)[source]#