rhs#

AnsMath.rhs(dtype=<class 'numpy.float64'>, name=None, fname='file.full', asarray=False)#

Return the load vector from a FULL file.

Parameters:
dtypenumpy.dtype, optional

NumPy data type to store the vector as. The options are np.double, np.int32, and np.int64. The default is np.double.

namestr, optional

AnsMath vector name. The default is None, in which case a name is automatically generated.

fnamestr, 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.

Returns:
AnsVec or numpy.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