dot#

AnsMat.dot(obj)[source]#

Perform the matrix multiplication by another vector or matrix.

Parameters:
objansys.mapdl.math.AnsVec or ansys.mapdl.math.AnsMat

Ansys object.

Returns:
AnsVec or 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)