doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
numpy.chararray.isalnum method chararray.isalnum()[source] Returns true for each element if all characters in the string are alphanumeric and there is at least one character, false otherwise. See also char.isalnum
numpy.reference.generated.numpy.chararray.isalnum
numpy.chararray.isalpha method chararray.isalpha()[source] Returns true for each element if all characters in the string are alphabetic and there is at least one character, false otherwise. See also char.isalpha
numpy.reference.generated.numpy.chararray.isalpha
numpy.chararray.isdecimal method chararray.isdecimal()[source] For each element in self, return True if there are only decimal characters in the element. See also char.isdecimal
numpy.reference.generated.numpy.chararray.isdecimal
numpy.chararray.isdigit method chararray.isdigit()[source] Returns true for each element if all characters in the string are digits and there is at least one character, false otherwise. See also char.isdigit
numpy.reference.generated.numpy.chararray.isdigit
numpy.chararray.islower method chararray.islower()[source] Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise. See also char.islower
numpy.reference.generated.numpy.chararray.islower
numpy.chararray.isnumeric method chararray.isnumeric()[source] For each element in self, return True if there are only numeric characters in the element. See also char.isnumeric
numpy.reference.generated.numpy.chararray.isnumeric
numpy.chararray.isspace method chararray.isspace()[source] Returns true for each element if there are only whitespace characters in the string and there is at least one character, false otherwise. See also char.isspace
numpy.reference.generated.numpy.chararray.isspace
numpy.chararray.istitle method chararray.istitle()[source] Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. See also char.istitle
numpy.reference.generated.numpy.chararray.istitle
numpy.chararray.isupper method chararray.isupper()[source] Returns true for each element if all cased characters in the string are uppercase and there is at least one character, false otherwise. See also char.isupper
numpy.reference.generated.numpy.chararray.isupper
numpy.chararray.item method chararray.item(*args) Copy an element of an array to a standard Python scalar and return it. Parameters *argsArguments (variable number and type) none: in this case, the method only works for arrays with one element (a.size == 1), which element is copied into a standard Python sca...
numpy.reference.generated.numpy.chararray.item
numpy.chararray.itemsize attribute chararray.itemsize Length of one array element in bytes. Examples >>> x = np.array([1,2,3], dtype=np.float64) >>> x.itemsize 8 >>> x = np.array([1,2,3], dtype=np.complex128) >>> x.itemsize 16
numpy.reference.generated.numpy.chararray.itemsize
numpy.chararray.join method chararray.join(seq)[source] Return a string which is the concatenation of the strings in the sequence seq. See also char.join
numpy.reference.generated.numpy.chararray.join
numpy.chararray.ljust method chararray.ljust(width, fillchar=' ')[source] Return an array with the elements of self left-justified in a string of length width. See also char.ljust
numpy.reference.generated.numpy.chararray.ljust
numpy.chararray.lower method chararray.lower()[source] Return an array with the elements of self converted to lowercase. See also char.lower
numpy.reference.generated.numpy.chararray.lower
numpy.chararray.lstrip method chararray.lstrip(chars=None)[source] For each element in self, return a copy with the leading characters removed. See also char.lstrip
numpy.reference.generated.numpy.chararray.lstrip
numpy.chararray.nbytes attribute chararray.nbytes Total bytes consumed by the elements of the array. Notes Does not include memory consumed by non-element attributes of the array object. Examples >>> x = np.zeros((3,5,2), dtype=np.complex128) >>> x.nbytes 480 >>> np.prod(x.shape) * x.itemsize 480
numpy.reference.generated.numpy.chararray.nbytes
numpy.chararray.ndim attribute chararray.ndim Number of array dimensions. Examples >>> x = np.array([1, 2, 3]) >>> x.ndim 1 >>> y = np.zeros((2, 3, 4)) >>> y.ndim 3
numpy.reference.generated.numpy.chararray.ndim
numpy.chararray.nonzero method chararray.nonzero() Return the indices of the elements that are non-zero. Refer to numpy.nonzero for full documentation. See also numpy.nonzero equivalent function
numpy.reference.generated.numpy.chararray.nonzero
numpy.chararray.put method chararray.put(indices, values, mode='raise') Set a.flat[n] = values[n] for all n in indices. Refer to numpy.put for full documentation. See also numpy.put equivalent function
numpy.reference.generated.numpy.chararray.put
numpy.chararray.ravel method chararray.ravel([order]) Return a flattened array. Refer to numpy.ravel for full documentation. See also numpy.ravel equivalent function ndarray.flat a flat iterator on the array.
numpy.reference.generated.numpy.chararray.ravel
numpy.chararray.repeat method chararray.repeat(repeats, axis=None) Repeat elements of an array. Refer to numpy.repeat for full documentation. See also numpy.repeat equivalent function
numpy.reference.generated.numpy.chararray.repeat
numpy.chararray.replace method chararray.replace(old, new, count=None)[source] For each element in self, return a copy of the string with all occurrences of substring old replaced by new. See also char.replace
numpy.reference.generated.numpy.chararray.replace
numpy.chararray.reshape method chararray.reshape(shape, order='C') Returns an array containing the same data with a new shape. Refer to numpy.reshape for full documentation. See also numpy.reshape equivalent function Notes Unlike the free function numpy.reshape, this method on ndarray allows the elements of t...
numpy.reference.generated.numpy.chararray.reshape
numpy.chararray.resize method chararray.resize(new_shape, refcheck=True) Change shape and size of array in-place. Parameters new_shapetuple of ints, or n ints Shape of resized array. refcheckbool, optional If False, reference count will not be checked. Default is True. Returns None Raises ValueEr...
numpy.reference.generated.numpy.chararray.resize
numpy.chararray.rfind method chararray.rfind(sub, start=0, end=None)[source] For each element in self, return the highest index in the string where substring sub is found, such that sub is contained within [start, end]. See also char.rfind
numpy.reference.generated.numpy.chararray.rfind
numpy.chararray.rindex method chararray.rindex(sub, start=0, end=None)[source] Like rfind, but raises ValueError when the substring sub is not found. See also char.rindex
numpy.reference.generated.numpy.chararray.rindex
numpy.chararray.rjust method chararray.rjust(width, fillchar=' ')[source] Return an array with the elements of self right-justified in a string of length width. See also char.rjust
numpy.reference.generated.numpy.chararray.rjust
numpy.chararray.rsplit method chararray.rsplit(sep=None, maxsplit=None)[source] For each element in self, return a list of the words in the string, using sep as the delimiter string. See also char.rsplit
numpy.reference.generated.numpy.chararray.rsplit
numpy.chararray.rstrip method chararray.rstrip(chars=None)[source] For each element in self, return a copy with the trailing characters removed. See also char.rstrip
numpy.reference.generated.numpy.chararray.rstrip
numpy.chararray.searchsorted method chararray.searchsorted(v, side='left', sorter=None) Find indices where elements of v should be inserted in a to maintain order. For full documentation, see numpy.searchsorted See also numpy.searchsorted equivalent function
numpy.reference.generated.numpy.chararray.searchsorted
numpy.chararray.setfield method chararray.setfield(val, dtype, offset=0) Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and beginning offset bytes into the field. Parameters valobject Value to be placed in field. dtypedtype object Data-type ...
numpy.reference.generated.numpy.chararray.setfield
numpy.chararray.setflags method chararray.setflags(write=None, align=None, uic=None) Set array flags WRITEABLE, ALIGNED, (WRITEBACKIFCOPY and UPDATEIFCOPY), respectively. These Boolean-valued flags affect how numpy interprets the memory area used by a (see Notes below). The ALIGNED flag can only be set to True if t...
numpy.reference.generated.numpy.chararray.setflags
numpy.chararray.size attribute chararray.size Number of elements in the array. Equal to np.prod(a.shape), i.e., the product of the array’s dimensions. Notes a.size returns a standard arbitrary precision Python integer. This may not be the case with other methods of obtaining the same value (like the suggested np.pr...
numpy.reference.generated.numpy.chararray.size
numpy.chararray.sort method chararray.sort(axis=- 1, kind=None, order=None) Sort an array in-place. Refer to numpy.sort for full documentation. Parameters axisint, optional Axis along which to sort. Default is -1, which means sort along the last axis. kind{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, op...
numpy.reference.generated.numpy.chararray.sort
numpy.chararray.split method chararray.split(sep=None, maxsplit=None)[source] For each element in self, return a list of the words in the string, using sep as the delimiter string. See also char.split
numpy.reference.generated.numpy.chararray.split
numpy.chararray.splitlines method chararray.splitlines(keepends=None)[source] For each element in self, return a list of the lines in the element, breaking at line boundaries. See also char.splitlines
numpy.reference.generated.numpy.chararray.splitlines
numpy.chararray.squeeze method chararray.squeeze(axis=None) Remove axes of length one from a. Refer to numpy.squeeze for full documentation. See also numpy.squeeze equivalent function
numpy.reference.generated.numpy.chararray.squeeze
numpy.chararray.startswith method chararray.startswith(prefix, start=0, end=None)[source] Returns a boolean array which is True where the string element in self starts with prefix, otherwise False. See also char.startswith
numpy.reference.generated.numpy.chararray.startswith
numpy.chararray.strides attribute chararray.strides Tuple of bytes to step in each dimension when traversing an array. The byte offset of element (i[0], i[1], ..., i[n]) in an array a is: offset = sum(np.array(i) * a.strides) A more detailed explanation of strides can be found in the “ndarray.rst” file in the NumP...
numpy.reference.generated.numpy.chararray.strides
numpy.chararray.strip method chararray.strip(chars=None)[source] For each element in self, return a copy with the leading and trailing characters removed. See also char.strip
numpy.reference.generated.numpy.chararray.strip
numpy.chararray.swapaxes method chararray.swapaxes(axis1, axis2) Return a view of the array with axis1 and axis2 interchanged. Refer to numpy.swapaxes for full documentation. See also numpy.swapaxes equivalent function
numpy.reference.generated.numpy.chararray.swapaxes
numpy.chararray.swapcase method chararray.swapcase()[source] For each element in self, return a copy of the string with uppercase characters converted to lowercase and vice versa. See also char.swapcase
numpy.reference.generated.numpy.chararray.swapcase
numpy.chararray.T attribute chararray.T The transposed array. Same as self.transpose(). See also transpose Examples >>> x = np.array([[1.,2.],[3.,4.]]) >>> x array([[ 1., 2.], [ 3., 4.]]) >>> x.T array([[ 1., 3.], [ 2., 4.]]) >>> x = np.array([1.,2.,3.,4.]) >>> x array([ 1., 2., 3., 4.]) >>...
numpy.reference.generated.numpy.chararray.t
numpy.chararray.take method chararray.take(indices, axis=None, out=None, mode='raise') Return an array formed from the elements of a at the given indices. Refer to numpy.take for full documentation. See also numpy.take equivalent function
numpy.reference.generated.numpy.chararray.take
numpy.chararray.title method chararray.title()[source] For each element in self, return a titlecased version of the string: words start with uppercase characters, all remaining cased characters are lowercase. See also char.title
numpy.reference.generated.numpy.chararray.title
numpy.chararray.tobytes method chararray.tobytes(order='C') Construct Python bytes containing the raw data bytes in the array. Constructs Python bytes showing a copy of the raw contents of data memory. The bytes object is produced in C-order by default. This behavior is controlled by the order parameter. New in ve...
numpy.reference.generated.numpy.chararray.tobytes
numpy.chararray.tofile method chararray.tofile(fid, sep='', format='%s') Write array to a file as text or binary (default). Data is always written in ‘C’ order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters fidfile or str or Path An ...
numpy.reference.generated.numpy.chararray.tofile
numpy.chararray.tolist method chararray.tolist() Return the array as an a.ndim-levels deep nested list of Python scalars. Return a copy of the array data as a (nested) Python list. Data items are converted to the nearest compatible builtin Python type, via the item function. If a.ndim is 0, then since the depth of ...
numpy.reference.generated.numpy.chararray.tolist
numpy.chararray.tostring method chararray.tostring(order='C') A compatibility alias for tobytes, with exactly the same behavior. Despite its name, it returns bytes not strs. Deprecated since version 1.19.0.
numpy.reference.generated.numpy.chararray.tostring
numpy.chararray.translate method chararray.translate(table, deletechars=None)[source] For each element in self, return a copy of the string where all characters occurring in the optional argument deletechars are removed, and the remaining characters have been mapped through the given translation table. See also c...
numpy.reference.generated.numpy.chararray.translate
numpy.chararray.transpose method chararray.transpose(*axes) Returns a view of the array with axes transposed. For a 1-D array this has no effect, as a transposed vector is simply the same vector. To convert a 1-D array into a 2D column vector, an additional dimension must be added. np.atleast2d(a).T achieves this, ...
numpy.reference.generated.numpy.chararray.transpose
numpy.chararray.upper method chararray.upper()[source] Return an array with the elements of self converted to uppercase. See also char.upper
numpy.reference.generated.numpy.chararray.upper
numpy.chararray.view method chararray.view([dtype][, type]) New view of array with the same data. Note Passing None for dtype is different from omitting the parameter, since the former invokes dtype(None) which is an alias for dtype('float_'). Parameters dtypedata-type or ndarray sub-class, optional Data-ty...
numpy.reference.generated.numpy.chararray.view
numpy.chararray.zfill method chararray.zfill(width)[source] Return the numeric string left-filled with zeros in a string of length width. See also char.zfill
numpy.reference.generated.numpy.chararray.zfill
class.__array__([dtype]) If a class (ndarray subclass or not) having the __array__ method is used as the output object of an ufunc, results will not be written to the object returned by __array__. This practice will return TypeError.
numpy.reference.arrays.classes#numpy.class.__array__
class.__array_finalize__(obj) This method is called whenever the system internally allocates a new array from obj, where obj is a subclass (subtype) of the ndarray. It can be used to change attributes of self after construction (so as to ensure a 2-d matrix for example), or to update meta-information from the “parent...
numpy.reference.arrays.classes#numpy.class.__array_finalize__
class.__array_function__(func, types, args, kwargs) New in version 1.16. Note In NumPy 1.17, the protocol is enabled by default, but can be disabled with NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=0. In NumPy 1.16, you need to set the environment variable NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1 before importing NumPy to use N...
numpy.reference.arrays.classes#numpy.class.__array_function__
class.__array_prepare__(array, context=None) At the beginning of every ufunc, this method is called on the input object with the highest array priority, or the output object if one was specified. The output array is passed in and whatever is returned is passed to the ufunc. Subclasses inherit a default implementation...
numpy.reference.arrays.classes#numpy.class.__array_prepare__
class.__array_priority__ The value of this attribute is used to determine what type of object to return in situations where there is more than one possibility for the Python type of the returned object. Subclasses inherit a default value of 0.0 for this attribute. Note For ufuncs, it is hoped to eventually deprecate...
numpy.reference.arrays.classes#numpy.class.__array_priority__
Standard array subclasses Note Subclassing a numpy.ndarray is possible but if your goal is to create an array with modified behavior, as do dask arrays for distributed computation and cupy arrays for GPU-based computation, subclassing is discouraged. Instead, using numpy’s dispatch mechanism is recommended. The ndarr...
numpy.reference.arrays.classes
class.__array_wrap__(array, context=None) At the end of every ufunc, this method is called on the input object with the highest array priority, or the output object if one was specified. The ufunc-computed array is passed in and whatever is returned is passed to the user. Subclasses inherit a default implementation o...
numpy.reference.arrays.classes#numpy.class.__array_wrap__
NumPy Distutils - Users Guide SciPy structure Currently SciPy project consists of two packages: NumPy — it provides packages like: numpy.distutils - extension to Python distutils numpy.f2py - a tool to bind Fortran/C codes to Python numpy.core - future replacement of Numeric and numarray packages numpy.lib - extra ...
numpy.reference.distutils_guide
numpy.core.defchararray.array core.defchararray.array(obj, itemsize=None, copy=True, unicode=None, order=None)[source] Create a chararray. Note This class is provided for numarray backward-compatibility. New code (not concerned with numarray compatibility) should use arrays of type string_ or unicode_ and use the ...
numpy.reference.generated.numpy.core.defchararray.array
numpy.core.defchararray.asarray core.defchararray.asarray(obj, itemsize=None, unicode=None, order=None)[source] Convert the input to a chararray, copying the data only if necessary. Versus a regular NumPy array of type str or unicode, this class adds the following functionality: values automatically have whitespac...
numpy.reference.generated.numpy.core.defchararray.asarray
numpy.core.records.array core.records.array(obj, dtype=None, shape=None, offset=0, strides=None, formats=None, names=None, titles=None, aligned=False, byteorder=None, copy=True)[source] Construct a record array from a wide-variety of objects. A general-purpose record array constructor that dispatches to the appropr...
numpy.reference.generated.numpy.core.records.array
numpy.core.records.fromarrays core.records.fromarrays(arrayList, dtype=None, shape=None, formats=None, names=None, titles=None, aligned=False, byteorder=None)[source] Create a record array from a (flat) list of arrays Parameters arrayListlist or tuple List of array-like objects (such as lists, tuples, and nda...
numpy.reference.generated.numpy.core.records.fromarrays
numpy.core.records.fromfile core.records.fromfile(fd, dtype=None, shape=None, offset=0, formats=None, names=None, titles=None, aligned=False, byteorder=None)[source] Create an array from binary file data Parameters fdstr or file type If file is a string or a path-like object then that file is opened, else it ...
numpy.reference.generated.numpy.core.records.fromfile
numpy.core.records.fromrecords core.records.fromrecords(recList, dtype=None, shape=None, formats=None, names=None, titles=None, aligned=False, byteorder=None)[source] Create a recarray from a list of records in text form. Parameters recListsequence data in the same field may be heterogeneous - they will be pr...
numpy.reference.generated.numpy.core.records.fromrecords
numpy.core.records.fromstring core.records.fromstring(datastring, dtype=None, shape=None, offset=0, formats=None, names=None, titles=None, aligned=False, byteorder=None)[source] Create a record array from binary data Note that despite the name of this function it does not accept str instances. Parameters datast...
numpy.reference.generated.numpy.core.records.fromstring
Discrete Fourier Transform (numpy.fft) The SciPy module scipy.fft is a more comprehensive superset of numpy.fft, which includes only a basic set of routines. Standard FFTs fft(a[, n, axis, norm]) Compute the one-dimensional discrete Fourier Transform. ifft(a[, n, axis, norm]) Compute the one-dimensional inverse di...
numpy.reference.routines.fft
numpy.DataSource.abspath method DataSource.abspath(path)[source] Return absolute path of file in the DataSource directory. If path is an URL, then abspath will return either the location the file exists locally or the location it would exist when opened using the open method. Parameters pathstr Can be a local...
numpy.reference.generated.numpy.datasource.abspath
numpy.DataSource.exists method DataSource.exists(path)[source] Test if path exists. Test if path exists as (and in this order): a local file. a remote URL that has been downloaded and stored locally in the DataSource directory. a remote URL that has not been downloaded, but is valid and accessible. Parameters ...
numpy.reference.generated.numpy.datasource.exists
numpy.DataSource.open method DataSource.open(path, mode='r', encoding=None, newline=None)[source] Open and return file-like object. If path is an URL, it will be downloaded, stored in the DataSource directory and opened from there. Parameters pathstr Local file path or URL to open. mode{‘r’, ‘w’, ‘a’}, opti...
numpy.reference.generated.numpy.datasource.open
Importing data with genfromtxt NumPy provides several functions to create arrays from tabular data. We focus here on the genfromtxt function. In a nutshell, genfromtxt runs two main loops. The first loop converts each line of the file in a sequence of strings. The second loop converts each string to the appropriate dat...
numpy.user.basics.io.genfromtxt
numpy.distutils.ccompiler.CCompiler_compile distutils.ccompiler.CCompiler_compile(self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None, depends=None)[source] Compile one or more source files. Please refer to the Python distutils API reference for more deta...
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_compile
numpy.distutils.ccompiler.CCompiler_customize distutils.ccompiler.CCompiler_customize(self, dist, need_cxx=0)[source] Do any platform-specific customization of a compiler instance. This method calls distutils.sysconfig.customize_compiler for platform-specific customization, as well as optionally remove a flag to su...
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_customize
numpy.distutils.ccompiler.CCompiler_customize_cmd distutils.ccompiler.CCompiler_customize_cmd(self, cmd, ignore=())[source] Customize compiler using distutils command. Parameters cmdclass instance An instance inheriting from distutils.cmd.Command. ignoresequence of str, optional List of CCompiler commands...
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_customize_cmd
numpy.distutils.ccompiler.CCompiler_cxx_compiler distutils.ccompiler.CCompiler_cxx_compiler(self)[source] Return the C++ compiler. Parameters None Returns cxxclass instance The C++ compiler, as a CCompiler instance.
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_cxx_compiler
numpy.distutils.ccompiler.CCompiler_find_executables distutils.ccompiler.CCompiler_find_executables(self)[source] Does nothing here, but is called by the get_version method and can be overridden by subclasses. In particular it is redefined in the FCompiler class where more documentation can be found.
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_find_executables
numpy.distutils.ccompiler.CCompiler_get_version distutils.ccompiler.CCompiler_get_version(self, force=False, ok_status=[0])[source] Return compiler version, or None if compiler is not available. Parameters forcebool, optional If True, force a new determination of the version, even if the compiler already has ...
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_get_version
numpy.distutils.ccompiler.CCompiler_object_filenames distutils.ccompiler.CCompiler_object_filenames(self, source_filenames, strip_dir=0, output_dir='')[source] Return the name of the object files for the given source files. Parameters source_filenameslist of str The list of paths to source files. Paths can be...
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_object_filenames
numpy.distutils.ccompiler.CCompiler_show_customization distutils.ccompiler.CCompiler_show_customization(self)[source] Print the compiler customizations to stdout. Parameters None Returns None Notes Printing is only done if the distutils log threshold is < 2.
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_show_customization
numpy.distutils.ccompiler.CCompiler_spawn distutils.ccompiler.CCompiler_spawn(self, cmd, display=None, env=None)[source] Execute a command in a sub-process. Parameters cmdstr The command to execute. displaystr or sequence of str, optional The text to add to the log file kept by numpy.distutils. If not giv...
numpy.reference.generated.numpy.distutils.ccompiler.ccompiler_spawn
numpy.distutils.ccompiler.gen_lib_options distutils.ccompiler.gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries)[source]
numpy.reference.generated.numpy.distutils.ccompiler.gen_lib_options
numpy.distutils.ccompiler.new_compiler distutils.ccompiler.new_compiler(plat=None, compiler=None, verbose=None, dry_run=0, force=0)[source]
numpy.reference.generated.numpy.distutils.ccompiler.new_compiler
numpy.distutils.ccompiler.replace_method distutils.ccompiler.replace_method(klass, method_name, func)[source]
numpy.reference.generated.numpy.distutils.ccompiler.replace_method
numpy.distutils.ccompiler.simple_version_match distutils.ccompiler.simple_version_match(pat='[-.\\d]+', ignore='', start='')[source] Simple matching of version numbers, for use in CCompiler and FCompiler. Parameters patstr, optional A regular expression matching version numbers. Default is r'[-.\d]+'. ignor...
numpy.reference.generated.numpy.distutils.ccompiler.simple_version_match
numpy.distutils.ccompiler_opt.CCompilerOpt.cache_flush method distutils.ccompiler_opt.CCompilerOpt.cache_flush()[source] Force update the cache.
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.cache_flush
numpy.distutils.ccompiler_opt.CCompilerOpt.cc_normalize_flags method distutils.ccompiler_opt.CCompilerOpt.cc_normalize_flags(flags)[source] Remove the conflicts that caused due gathering implied features flags. Parameters ‘flags’ list, compiler flags flags should be sorted from the lowest to the highest interes...
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.cc_normalize_flags
numpy.distutils.ccompiler_opt.CCompilerOpt.conf_features attribute distutils.ccompiler_opt.CCompilerOpt.conf_features = {'ASIMD': {'implies': 'NEON_FP16 NEON_VFPV4', 'implies_detect': False, 'interest': 4}, 'ASIMDDP': {'implies': 'ASIMD', 'interest': 6}, 'ASIMDFHM': {'implies': 'ASIMDHP', 'interest': 7}, 'ASIMDHP': {...
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.conf_features
numpy.distutils.ccompiler_opt.CCompilerOpt.conf_features_partial method distutils.ccompiler_opt.CCompilerOpt.conf_features_partial()[source] Return a dictionary of supported CPU features by the platform, and accumulate the rest of undefined options in conf_features, the returned dict has same rules and notes in cla...
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.conf_features_partial
numpy.distutils.ccompiler_opt.CCompilerOpt.cpu_baseline_flags method distutils.ccompiler_opt.CCompilerOpt.cpu_baseline_flags()[source] Returns a list of final CPU baseline compiler flags
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.cpu_baseline_flags
numpy.distutils.ccompiler_opt.CCompilerOpt.cpu_baseline_names method distutils.ccompiler_opt.CCompilerOpt.cpu_baseline_names()[source] return a list of final CPU baseline feature names
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.cpu_baseline_names
numpy.distutils.ccompiler_opt.CCompilerOpt.cpu_dispatch_names method distutils.ccompiler_opt.CCompilerOpt.cpu_dispatch_names()[source] return a list of final CPU dispatch feature names
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.cpu_dispatch_names
numpy.distutils.ccompiler_opt.CCompilerOpt.dist_compile method distutils.ccompiler_opt.CCompilerOpt.dist_compile(sources, flags, ccompiler=None, **kwargs)[source] Wrap CCompiler.compile()
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.dist_compile
numpy.distutils.ccompiler_opt.CCompilerOpt.dist_info method distutils.ccompiler_opt.CCompilerOpt.dist_info()[source] Return a tuple containing info about (platform, compiler, extra_args), required by the abstract class ‘_CCompiler’ for discovering the platform environment. This is also used as a cache factor in ord...
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.dist_info
numpy.distutils.ccompiler_opt.CCompilerOpt.dist_test method distutils.ccompiler_opt.CCompilerOpt.dist_test(source, flags, macros=[])[source] Return True if ‘CCompiler.compile()’ able to compile a source file with certain flags.
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.dist_test
numpy.distutils.ccompiler_opt.CCompilerOpt.feature_ahead method distutils.ccompiler_opt.CCompilerOpt.feature_ahead(names)[source] Return list of features in ‘names’ after remove any implied features and keep the origins. Parameters ‘names’: sequence sequence of CPU feature names in uppercase. Returns list ...
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.feature_ahead
numpy.distutils.ccompiler_opt.CCompilerOpt.feature_c_preprocessor method distutils.ccompiler_opt.CCompilerOpt.feature_c_preprocessor(feature_name, tabs=0)[source] Generate C preprocessor definitions and include headers of a CPU feature. Parameters ‘feature_name’: str CPU feature name in uppercase. ‘tabs’: int ...
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.feature_c_preprocessor
numpy.distutils.ccompiler_opt.CCompilerOpt.feature_detect method distutils.ccompiler_opt.CCompilerOpt.feature_detect(names)[source] Return a list of CPU features that required to be detected sorted from the lowest to highest interest.
numpy.reference.generated.numpy.distutils.ccompiler_opt.ccompileropt.feature_detect