ansys.mapdl.core.math.AnsMat

class ansys.mapdl.core.math.AnsMat(id_, mapdl, type_=<ObjType.DMAT: 3>)

APDLMath Matrix Object

Methods

AnsMat.asarray()

Returns vector as a numpy array

AnsMat.axpy(op, val1, val2)

Perform the matrix operation: M2= v*M1 + w*M2

AnsMat.const(value)

Set all values of the vector to a constant

AnsMat.copy()

Returns the name of the copy of this object

AnsMat.dot(obj)

Perform the matrix multiplication by another vector or matrix.

AnsMat.norm([nrmtype])

Matrix or vector norm.

AnsMat.ones()

Set all values of the vector to one

AnsMat.rand()

Set all values of the vector to a random number

AnsMat.sym()

AnsMat.zeros()

Set all values of the vector to zero

Attributes

AnsMat.ncol

AnsMat.nrow

AnsMat.shape

Returns a numpy-like shape.

AnsMat.size