AnsMathObj#

class ansys.math.core.math.AnsMathObj(id_, mapdl=None, dtype=ObjType.GEN)#

Provides the common class for AnsMath objects.

Methods

AnsMathObj.axpy(obj, val1, val2)

Perform the matrix operation: self= val1*obj + val2*self.

AnsMathObj.const(value)

Set all values of the object to a constant.

AnsMathObj.copy()

Get the name of the copy of this object.

AnsMathObj.kron(obj)

Calculates the Kronecker product of two matrices/vectors

AnsMathObj.norm([nrmtype])

Return the norm of the AnsMath object.

AnsMathObj.ones()

Set all values of the object to one.

AnsMathObj.rand()

Set all values of the object to a random number.

AnsMathObj.zeros()

Set all values of the object to zero.