unitaria.Add

class unitaria.Add(A: Node, B: Node)[source]

Bases: ProxyNode

Node for computing the sum of two vectors or matrices.

Both summands must have matching Add.dimension_in and Add.dimension_out.

Parameters:
  • A – The first summand

  • B – The second summand

Raises:

ValueError – If the dimensions of the summands do not match.