:py:mod:`wolfhece.pythonfortran.tools` ====================================== .. py:module:: wolfhece.pythonfortran.tools Module Contents --------------- .. py:function:: make_nd_array(memory_address_ptr, shape, dtype=np.float64, order='F', own_data=False, readonly=False) Creating a Numpy object from a memory address (int) Using a function that creates a "buffer" structure from the memory address To complete the initialization, you also need to have the element arrangement "shape" and the memory size of an element "dtype" -- Création d'un objet Numpy depuis une adresse mémoire (int) Utilisation d'une fonction qui crée une structure "buffer" depuis l'adresse mémoire Pour terminer l'initialisation, il faut également disposer de la disposition des éléments "shape" et de la taille mémoire d'un élément "dtype" -- :param memory_address_ptr: memory address - position of the first buffer element :type memory_address_ptr: int :param shape: shape of the array :type shape: integer :param dtype: Defaults to np.float64. :type dtype: numpy type, optional :param order: 'C' row major order or 'F' column major order. Defaults to 'C'. :type order: str, optional :param own_data: If True, make a copy of the buffer. Defaults to True. :type own_data: bool, optional :param readonly: If True, activate the Numpy writeable flag. Defaults to False. :type readonly: bool, optional :returns: Numpy.ndarray