AnsMat#
- class ansys.mapdl.core.math.AnsMat(id_, mapdl, type_=ObjType.DMAT)[source]#
APDLMath Matrix Object
Methods
AnsMat.asarray
([dtype])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
Returns the name of the copy of this object
AnsMat.dot
(obj)Perform the matrix multiplication by another vector or matrix.
AnsMat.kron
(obj)Calculates the Kronecker product of two matrices/vectors
AnsMat.norm
([nrmtype])Matrix or vector norm.
Set all values of the vector to one
Set all values of the vector to a random number
Return if matrix is symmetric.
Set all values of the vector to zero
Attributes
Returns the transpose of a MAPDL matrix.
Number of rows in this matrix.
Number of columns in this matrix.
Returns a numpy-like shape.
Number of items in this matrix.