parameters: (data)
docstring: Check if a numpy array is suitable for direct usage (contiguous, etc.)
  
      This function raises an exception if not.
docstring_summary: Check if a numpy array is suitable for direct usage (contiguous, etc.)
docstring_tokens: Check if a numpy array is suitable for direct usage ( contiguous etc . )
function: def checkArrayForLink(data):
      """Check if a numpy array is suitable for direct usage (contiguous, etc.)
  
      This function raises an exception if not.
      """
  
      if not isinstance(data, np.ndarray):
          raise ValueError("Numpy array should be numpy.ndarray")
      if data.dtype != np.float32:
          raise ValueError("Numpy array should be float32")
      if not (data.flags['C_CONTIGUOUS'] and data.flags['ALIGNED']):
          raise ValueError("Numpy array should be C_CONTIGUOUS and ALIGNED")
function_tokens: def checkArrayForLink ( data ) : if not isinstance ( data , np . ndarray ) : raise ValueError ( "Numpy array should be numpy.ndarray" ) if data . dtype != np . float32 : raise ValueError ( "Numpy array should be float32" ) if not ( data . flags [ 'C_CONTIGUOUS' ] and data . flags [ 'ALIGNED' ] ) : raise ValueError ( "Numpy array should be C_CONTIGUOUS and ALIGNED" )