kron#
- AnsMat.kron(obj)#
Calculates the Kronecker product of two matrices/vectors
- Parameters:
- obj
AnsVec
orAnsMat
AnsMath object.
- obj
- Returns:
AnsMat
orAnsVec
Kronecker product between the two matrices/vectors.
Note
Requires at least MAPDL version 2023R2.
Examples
>>> import ansys.math.core.math as pymath >>> mm = pymath.AnsMath() >>> m1 = mm.rand(3, 3) >>> m2 = mm.rand(4,2) >>> res = m1.kron(m2)