AnsVec#
- class ansys.mapdl.core.math.AnsVec(id_, mapdl, dtype=<class 'numpy.float64'>, init=None)[source]#
APDLMath Vector Object
Methods
Returns vector as a numpy array
AnsVec.axpy
(op, val1, val2)Perform the matrix operation:
M2= v*M1 + w*M2
AnsVec.const
(value)Set all values of the vector to a constant
Return a copy of this vector
AnsVec.dot
(vec)Dot product with another APDLMath vector.
AnsVec.kron
(obj)Calculates the Kronecker product of two matrices/vectors
AnsVec.norm
([nrmtype])Matrix or vector norm.
Set all values of the vector to one
Set all values of the vector to a random number
Set all values of the vector to zero
Attributes
Number of items in this vector.