dot#

AnsMat.dot(obj)#

Multiply the AnsMath object by another AnsMath object.

Parameters:
objAnsVec or AnsMat

AnsMath 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)