add

MapdlMath.add(obj1, obj2)

Add two APDLMath vectors or matrices.

Parameters
obj1ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat

Ansys object.

obj2ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat

Ansys object.

Returns
AnsVec or AnsMat

Sum of the two input objects. Type of the output matches type of the input. Sum of the two vectors/matrices.

Examples

Comupute the sum between two vectors.

>>> v = mm.ones(10)
>>> w = mm.ones(10)
>>> x = mm.add(v, w)