AnsVec#
- class ansys.math.core.math.AnsVec(id_, mapdl, dtype=<class 'numpy.float64'>, init=None)#
Provides the AnsMath vector objects.
Methods
AnsVec.asarray
([dtype])Return the vector as a NumPy array.
AnsVec.axpy
(obj, val1, val2)Perform the matrix operation:
self= val1*obj + val2*self
.AnsVec.const
(value)Set all values of the object to a constant.
Get a copy of the vector.
AnsVec.dot
(vec)Multiply the AnsMath vector by another AnsMath vector.
AnsVec.kron
(obj)Calculates the Kronecker product of two matrices/vectors
AnsVec.norm
([nrmtype])Return the norm of the AnsMath object.
Set all values of the object to one.
Set all values of the object to a random number.
Set all values of the object to zero.
Attributes
Number of items in this vector.