dot

AnsMat.dot(obj)

Perform the matrix multiplication by another vector or matrix.

Parameters

obj (ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat) – Ansys object.

Returns

dot_product (ansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat) – Matrix multiplication result.

Examples

Multiplication of a matrix and vector

>>> m1 = mm.rand(10, 10)
>>> v1 = mm.rand(10)
>>> v2 = m1.dot(v1)
>>> assert np.allclose(m1.asarray() @ v1.asarray(), v2)