rhs#
- AnsMath.rhs(dtype=<class 'numpy.float64'>, name=None, fname='file.full', asarray=False)#
Return the load vector from a FULL file.
- Parameters:
- dtype
numpy.dtype
,optional
NumPy data type to store the vector as. The options are
np.double
,np.int32
, andnp.int64
. The default isnp.double
.- name
str
,optional
AnsMath vector name. The default is
None
, in which case a name is automatically generated.- fname
str
,optional
Name of the file to read the vector from. The default is
"file.full"
.- asarraybool,
optional
Whether to return a NumPy array rather than an AnsMath vector. The default is
False
.
- dtype
- Returns:
AnsVec
ornumpy.ndarray
AnsMath vector or NumPy array vector, depending on the value for the
asarray
parameter.
Examples
>>> rhs = mm.rhs(fname='PRSMEMB.full') AnsMath vector size 126