bundles / scipy latest / scipy / io / _fast_matrix_market / _apply_field
function
scipy.io._fast_matrix_market:_apply_field
Signature
def _apply_field ( data , field , no_pattern = False ) Summary
Ensure that data.dtype is compatible with the specified MatrixMarket field type.
Parameters
data: ndarrayInput array.
field: strMatrix Market field, such as 'real', 'complex', 'integer', 'pattern'.
no_pattern: bool, optionalWhether an empty array may be returned for a 'pattern' field.
Returns
data: ndarrayInput data if no conversion necessary, or a converted version
Aliases
-
scipy.io._fast_matrix_market._apply_field