{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _sobol / get_poly_vinit

cython_function_or_method

scipy.stats._sobol:get_poly_vinit

Signature

def   get_poly_vinit ( kind dtype )

Summary

Initialize and cache the direction numbers.

Extended Summary

Uses a dictionary to store the arrays. kind allows to select which dictionary to pull. The key of each dictionary corresponds to the dtype. If the key is not present in any of the dictionary, both dictionaries are initialized with _initialize_direction_numbers, for the given dtype.

This is only used during the initialization step in _initialize_v.

Parameters

kind : {'poly', 'vinit'}

Select which dictionary to pull.

dtype : {np.uint32, np.uint64}

Which dtype to use.

Returns

poly_vinit : np.ndarray

Either poly or vinit matrix.

Aliases

  • scipy.stats._sobol.get_poly_vinit