NumPy array routines
The counted NumPy-shaped surface for arrays, random sampling, Fourier transforms, and linear algebra.
Core array routines
Array construction, indexing, reductions, einsum, and other counted NumPy-style entry points.
flopscope.numpy.abs
Calculate the absolute value element-wise.
flopscope.numpy.absolute
Calculate the absolute value element-wise.
flopscope.numpy.acos
Trigonometric inverse cosine, element-wise.
flopscope.numpy.acosh
Inverse hyperbolic cosine, element-wise.
flopscope.numpy.add
Add arguments element-wise.
flopscope.numpy.all
Test whether all array elements along a given axis evaluate to True.
flopscope.numpy.allclose
Returns True if two arrays are element-wise equal within a tolerance.
flopscope.numpy.amax
Return the maximum of an array or maximum along an axis.
flopscope.numpy.amin
Return the minimum of an array or minimum along an axis.
flopscope.numpy.angle
Return the angle of the complex argument.
flopscope.numpy.any
Test whether any array element along a given axis evaluates to True.
flopscope.numpy.append
Append values to the end of an array.
flopscope.numpy.apply_along_axis
Apply a function to 1-D slices along the given axis.
flopscope.numpy.apply_over_axes
Apply a function repeatedly over multiple axes.
flopscope.numpy.arange
Return evenly spaced values within a given interval.
flopscope.numpy.arccos
Trigonometric inverse cosine, element-wise.
flopscope.numpy.arccosh
Inverse hyperbolic cosine, element-wise.
flopscope.numpy.arcsin
Inverse sine, element-wise.
flopscope.numpy.arcsinh
Inverse hyperbolic sine element-wise.
flopscope.numpy.arctan
Trigonometric inverse tangent, element-wise.
flopscope.numpy.arctan2
Element-wise arc tangent of ``x1/x2`` choosing the quadrant correctly.
flopscope.numpy.arctanh
Inverse hyperbolic tangent element-wise.
flopscope.numpy.argmax
Returns the indices of the maximum values along an axis.
flopscope.numpy.argmin
Returns the indices of the minimum values along an axis.
flopscope.numpy.argpartition
Perform an indirect partition along the given axis using the algorithm specified by the `kind` keyword. It returns an array of indices of the same shape as `a` that index data along the given axis in partitioned order.
flopscope.numpy.argsort
Returns the indices that would sort an array.
flopscope.numpy.argwhere
Find the indices of array elements that are non-zero, grouped by element.
flopscope.numpy.around
Round an array to the given number of decimals.
flopscope.numpy.array
Create an array.
flopscope.numpy.array_equal
True if two arrays have the same shape and elements, False otherwise.
flopscope.numpy.array_equiv
Returns True if input arrays are shape consistent and all elements equal.
flopscope.numpy.array_split
Split an array into multiple sub-arrays.
flopscope.numpy.asarray
Convert the input to an array.
flopscope.numpy.asarray_chkfinite
Convert the input to an array, checking for NaNs or Infs.
flopscope.numpy.asin
Inverse sine, element-wise.
flopscope.numpy.asinh
Inverse hyperbolic sine element-wise.
flopscope.numpy.astype
Copies an array to a specified data type.
flopscope.numpy.atan
Trigonometric inverse tangent, element-wise.
flopscope.numpy.atan2
Element-wise arc tangent of ``x1/x2`` choosing the quadrant correctly.
flopscope.numpy.atanh
Inverse hyperbolic tangent element-wise.
flopscope.numpy.atleast_1d
Convert inputs to arrays with at least one dimension.
flopscope.numpy.atleast_2d
View inputs as arrays with at least two dimensions.
flopscope.numpy.atleast_3d
View inputs as arrays with at least three dimensions.
flopscope.numpy.average
Compute the weighted average along the specified axis.
flopscope.numpy.bartlett
Return the Bartlett window.
flopscope.numpy.base_repr
Return a string representation of a number in the given base system.
flopscope.numpy.binary_repr
Return the binary representation of the input number as a string.
flopscope.numpy.bincount
Count number of occurrences of each value in array of non-negative ints.
flopscope.numpy.bitwise_and
Compute the bit-wise AND of two arrays element-wise.
flopscope.numpy.bitwise_count
Computes the number of 1-bits in the absolute value of ``x``. Analogous to the builtin `int.bit_count` or ``popcount`` in C++.
flopscope.numpy.bitwise_invert
Compute bit-wise inversion, or bit-wise NOT, element-wise.
flopscope.numpy.bitwise_left_shift
Shift the bits of an integer to the left.
flopscope.numpy.bitwise_not
Compute bit-wise inversion, or bit-wise NOT, element-wise.
flopscope.numpy.bitwise_or
Compute the bit-wise OR of two arrays element-wise.
flopscope.numpy.bitwise_right_shift
Shift the bits of an integer to the right.
flopscope.numpy.bitwise_xor
Compute the bit-wise XOR of two arrays element-wise.
flopscope.numpy.blackman
Return the Blackman window.
flopscope.numpy.block
Assemble an nd-array from nested lists of blocks.
flopscope.numpy.bmat
Build a matrix object from a string, nested sequence, or array.
flopscope.numpy.bool_
Boolean type (True or False), stored as a byte.
flopscope.numpy.broadcast
Produce an object that mimics broadcasting.
flopscope.numpy.broadcast_arrays
Broadcast any number of arrays against each other.
flopscope.numpy.broadcast_shapes
Broadcast the input shapes into a single shape.
flopscope.numpy.broadcast_to
Broadcast an array to a new shape.
flopscope.numpy.can_cast
Returns True if cast between data types can occur according to the casting rule.
flopscope.numpy.cbrt
Return the cube-root of an array, element-wise.
flopscope.numpy.ceil
Return the ceiling of the input, element-wise.
flopscope.numpy.choose
Construct an array from an index array and a list of arrays to choose from.
flopscope.numpy.clear_einsum_cache
Clear the einsum path cache.
flopscope.numpy.clip
Clip (limit) the values in an array.
flopscope.numpy.column_stack
Stack 1-D arrays as columns into a 2-D array.
flopscope.numpy.common_type
Return a scalar type which is common to the input arrays.
flopscope.numpy.complex128
Complex number type composed of two double-precision floating-point numbers, compatible with Python :class:`complex`.
flopscope.numpy.complex64
Complex number type composed of two single-precision floating-point numbers.
flopscope.numpy.compress
Return selected slices of an array along given axis.
flopscope.numpy.concat
Join a sequence of arrays along an existing axis.
flopscope.numpy.concatenate
Join a sequence of arrays along an existing axis.
flopscope.numpy.conj
Return the complex conjugate, element-wise.
flopscope.numpy.conjugate
Return the complex conjugate, element-wise.
flopscope.numpy.convolve
Returns the discrete, linear convolution of two one-dimensional sequences.
flopscope.numpy.copy
Return an array copy of the given object.
flopscope.numpy.copysign
Change the sign of x1 to that of x2, element-wise.
flopscope.numpy.copyto
Copies values from one array to another, broadcasting as necessary.
flopscope.numpy.corrcoef
Return Pearson product-moment correlation coefficients.
flopscope.numpy.correlate
Cross-correlation of two 1-dimensional sequences.
flopscope.numpy.cos
Cosine element-wise.
flopscope.numpy.cosh
Hyperbolic cosine, element-wise.
flopscope.numpy.count_nonzero
Counts the number of non-zero values in the array ``a``.
flopscope.numpy.cov
Estimate a covariance matrix, given data and weights.
flopscope.numpy.cross
Return the cross product of two (arrays of) vectors.
flopscope.numpy.cumprod
Return the cumulative product of elements along a given axis.
flopscope.numpy.cumsum
Return the cumulative sum of the elements along a given axis.
flopscope.numpy.cumulative_prod
Return the cumulative product of elements along a given axis.
flopscope.numpy.cumulative_sum
Return the cumulative sum of the elements along a given axis.
flopscope.numpy.deg2rad
Convert angles from degrees to radians.
flopscope.numpy.degrees
Convert angles from radians to degrees.
flopscope.numpy.delete
Return a new array with sub-arrays along an axis deleted. For a one dimensional array, this returns those entries not returned by `arr[obj]`.
flopscope.numpy.diag
Extract a diagonal or construct a diagonal array.
flopscope.numpy.diag_indices
Return the indices to access the main diagonal of an array.
flopscope.numpy.diag_indices_from
Return the indices to access the main diagonal of an n-dimensional array.
flopscope.numpy.diagflat
Create a two-dimensional array with the flattened input as a diagonal.
flopscope.numpy.diagonal
Return specified diagonals.
flopscope.numpy.diff
Calculate the n-th discrete difference along the given axis.
flopscope.numpy.digitize
Return the indices of the bins to which each value in input array belongs.
flopscope.numpy.divide
Divide arguments element-wise.
flopscope.numpy.divmod
Return element-wise quotient and remainder simultaneously.
flopscope.numpy.dot
Dot product of two arrays. Specifically,
flopscope.numpy.dsplit
Split array into multiple sub-arrays along the 3rd axis (depth).
flopscope.numpy.dstack
Stack arrays in sequence depth wise (along third axis).
flopscope.numpy.dtype
Create a data type object.
flopscope.numpy.ediff1d
The differences between consecutive elements of an array.
flopscope.numpy.einsum
Evaluates the Einstein summation convention on the operands.
flopscope.numpy.einsum_cache_info
Return einsum path cache statistics.
flopscope.numpy.einsum_path
Evaluates the lowest cost contraction order for an einsum expression by considering the creation of intermediate arrays.
flopscope.numpy.empty
Return a new array of given shape and type, without initializing entries.
flopscope.numpy.empty_like
Return a new array with the same shape and type as a given array.
flopscope.numpy.equal
Return (x1 == x2) element-wise.
flopscope.numpy.errstate
Context manager for floating-point error handling.
flopscope.numpy.exp
Calculate the exponential of all elements in the input array.
flopscope.numpy.exp2
Calculate `2**p` for all `p` in the input array.
flopscope.numpy.expand_dims
Expand the shape of an array.
flopscope.numpy.expm1
Calculate ``exp(x) - 1`` for all elements in the array.
flopscope.numpy.extract
Return the elements of an array that satisfy some condition.
flopscope.numpy.eye
Return a 2-D array with ones on the diagonal and zeros elsewhere.
flopscope.numpy.fabs
Compute the absolute values element-wise.
flopscope.numpy.fill_diagonal
Fill the main diagonal of the given array of any dimensionality.
flopscope.numpy.finfo
Machine limits for floating point types.
flopscope.numpy.fix
Round to nearest integer towards zero.
flopscope.numpy.flatnonzero
Return indices that are non-zero in the flattened version of a.
flopscope.numpy.flip
Reverse the order of elements in an array along the given axis.
flopscope.numpy.fliplr
Reverse the order of elements along axis 1 (left/right).
flopscope.numpy.flipud
Reverse the order of elements along axis 0 (up/down).
flopscope.numpy.float_power
First array elements raised to powers from second array, element-wise.
flopscope.numpy.float16
Half-precision floating-point number type.
flopscope.numpy.float32
Single-precision floating-point number type, compatible with C ``float``.
flopscope.numpy.float64
Double-precision floating-point number type, compatible with Python :class:`float` and C ``double``.
flopscope.numpy.floating
Abstract base class of all floating-point scalar types.
flopscope.numpy.floor
Return the floor of the input, element-wise.
flopscope.numpy.floor_divide
Return the largest integer smaller or equal to the division of the inputs. It is equivalent to the Python ``//`` operator and pairs with the Python ``%`` (`remainder`), function so that ``a = a % b + b * (a // b)`` up to roundoff.
flopscope.numpy.fmax
Element-wise maximum of array elements.
flopscope.numpy.fmin
Element-wise minimum of array elements.
flopscope.numpy.fmod
Returns the element-wise remainder of division.
flopscope.numpy.frexp
Decompose the elements of x into mantissa and twos exponent.
flopscope.numpy.from_dlpack
Create a NumPy array from an object implementing the ``__dlpack__`` protocol. Generally, the returned NumPy array is a view of the input object. See [1]_ and [2]_ for more details.
flopscope.numpy.frombuffer
Interpret a buffer as a 1-dimensional array.
flopscope.numpy.fromfile
Construct an array from data in a text or binary file.
flopscope.numpy.fromfunction
Construct an array by executing a function over each coordinate.
flopscope.numpy.fromiter
Create a new 1-dimensional array from an iterable object.
flopscope.numpy.fromregex
Construct an array from a text file, using regular expression parsing.
flopscope.numpy.fromstring
A new 1-D array initialized from text data in a string.
flopscope.numpy.full
Return a new array of given shape and type, filled with `fill_value`.
flopscope.numpy.full_like
Return a full array with the same shape and type as a given array.
flopscope.numpy.gcd
Returns the greatest common divisor of ``|x1|`` and ``|x2|``
flopscope.numpy.geomspace
Return numbers spaced evenly on a log scale (a geometric progression).
flopscope.numpy.get_printoptions
Return the current print options.
flopscope.numpy.geterr
Get the current way of handling floating-point errors.
flopscope.numpy.gradient
Return the gradient of an N-dimensional array.
flopscope.numpy.greater
Return the truth value of (x1 > x2) element-wise.
flopscope.numpy.greater_equal
Return the truth value of (x1 >= x2) element-wise.
flopscope.numpy.hamming
Return the Hamming window.
flopscope.numpy.hanning
Return the Hanning window.
flopscope.numpy.heaviside
Compute the Heaviside step function.
flopscope.numpy.histogram
Compute the histogram of a dataset.
flopscope.numpy.histogram_bin_edges
Function to calculate only the edges of the bins used by the `histogram` function.
flopscope.numpy.histogram2d
Compute the bi-dimensional histogram of two data samples.
flopscope.numpy.histogramdd
Compute the multidimensional histogram of some data.
flopscope.numpy.hsplit
Split an array into multiple sub-arrays horizontally (column-wise).
flopscope.numpy.hstack
Stack arrays in sequence horizontally (column wise).
flopscope.numpy.hypot
Given the "legs" of a right triangle, return its hypotenuse.
flopscope.numpy.i0
Modified Bessel function of the first kind, order 0.
flopscope.numpy.identity
Return the identity array.
flopscope.numpy.iinfo
Machine limits for integer types.
flopscope.numpy.imag
Return the imaginary part of the complex argument.
flopscope.numpy.in1d
Test whether each element of a 1-D array is also present in a second array.
flopscope.numpy.indices
Return an array representing the indices of a grid.
flopscope.numpy.inner
Inner product of two arrays.
flopscope.numpy.insert
Insert values along the given axis before the given indices.
flopscope.numpy.int16
Signed integer type, compatible with C ``short``.
flopscope.numpy.int32
Signed integer type, compatible with C ``int``.
flopscope.numpy.int64
Default signed integer type, 64bit on 64bit systems and 32bit on 32bit systems.
flopscope.numpy.int8
Signed integer type, compatible with C ``char``.
flopscope.numpy.integer
Abstract base class of all integer scalar types.
flopscope.numpy.interp
One-dimensional linear interpolation for monotonically increasing sample points.
flopscope.numpy.intersect1d
Find the intersection of two arrays.
flopscope.numpy.invert
Compute bit-wise inversion, or bit-wise NOT, element-wise.
flopscope.numpy.isclose
Returns a boolean array where two arrays are element-wise equal within a tolerance.
flopscope.numpy.iscomplex
Returns a bool array, where True if input element is complex.
flopscope.numpy.iscomplexobj
Check for a complex type or an array of complex numbers.
flopscope.numpy.isdtype
Determine if a provided dtype is of a specified data type ``kind``.
flopscope.numpy.isfinite
Test element-wise for finiteness (not infinity and not Not a Number).
flopscope.numpy.isfortran
Check if the array is Fortran contiguous but *not* C contiguous.
flopscope.numpy.isin
Calculates ``element in test_elements``, broadcasting over `element` only. Returns a boolean array of the same shape as `element` that is True where an element of `element` is in `test_elements` and False otherwise.
flopscope.numpy.isinf
Test element-wise for positive or negative infinity.
flopscope.numpy.isnan
Test element-wise for NaN and return result as a boolean array.
flopscope.numpy.isnat
Test element-wise for NaT (not a time) and return result as a boolean array.
flopscope.numpy.isneginf
Test element-wise for negative infinity, return result as bool array.
flopscope.numpy.isposinf
Test element-wise for positive infinity, return result as bool array.
flopscope.numpy.isreal
Returns a bool array, where True if input element is real.
flopscope.numpy.isrealobj
Return True if x is a not complex type or an array of complex numbers.
flopscope.numpy.isscalar
Returns True if the type of `element` is a scalar type.
flopscope.numpy.issubdtype
Returns True if first argument is a typecode lower/equal in type hierarchy.
flopscope.numpy.iterable
Check whether or not an object can be iterated over.
flopscope.numpy.ix_
Construct an open mesh from multiple sequences.
flopscope.numpy.kaiser
Return the Kaiser window.
flopscope.numpy.kron
Kronecker product of two arrays.
flopscope.numpy.lcm
Returns the lowest common multiple of ``|x1|`` and ``|x2|``
flopscope.numpy.ldexp
Returns x1 * 2**x2, element-wise.
flopscope.numpy.left_shift
Shift the bits of an integer to the left.
flopscope.numpy.less
Return the truth value of (x1 < x2) element-wise.
flopscope.numpy.less_equal
Return the truth value of (x1 <= x2) element-wise.
flopscope.numpy.lexsort
Perform an indirect stable sort using a sequence of keys.
flopscope.numpy.linspace
Return evenly spaced numbers over a specified interval.
flopscope.numpy.log
Natural logarithm, element-wise.
flopscope.numpy.log10
Return the base 10 logarithm of the input array, element-wise.
flopscope.numpy.log1p
Return the natural logarithm of one plus the input array, element-wise.
flopscope.numpy.log2
Base-2 logarithm of `x`.
flopscope.numpy.logaddexp
Logarithm of the sum of exponentiations of the inputs.
flopscope.numpy.logaddexp2
Logarithm of the sum of exponentiations of the inputs in base-2.
flopscope.numpy.logical_and
Compute the truth value of x1 AND x2 element-wise.
flopscope.numpy.logical_not
Compute the truth value of NOT x element-wise.
flopscope.numpy.logical_or
Compute the truth value of x1 OR x2 element-wise.
flopscope.numpy.logical_xor
Compute the truth value of x1 XOR x2, element-wise.
flopscope.numpy.logspace
Return numbers spaced evenly on a log scale.
flopscope.numpy.mask_indices
Return the indices to access (n, n) arrays, given a masking function.
flopscope.numpy.matmul
Matrix product of two arrays.
flopscope.numpy.matrix_transpose
Transposes a matrix (or a stack of matrices) ``x``.
flopscope.numpy.matvec
Matrix-vector dot product of two arrays.
flopscope.numpy.max
Return the maximum of an array or maximum along an axis.
flopscope.numpy.maximum
Element-wise maximum of array elements.
flopscope.numpy.may_share_memory
Determine if two arrays might share memory
flopscope.numpy.mean
Compute the arithmetic mean along the specified axis.
flopscope.numpy.median
Compute the median along the specified axis.
flopscope.numpy.meshgrid
Return a tuple of coordinate matrices from coordinate vectors.
flopscope.numpy.min
Return the minimum of an array or minimum along an axis.
flopscope.numpy.min_scalar_type
For scalar ``a``, returns the data type with the smallest size and smallest scalar kind which can hold its value. For non-scalar array ``a``, returns the vector's dtype unmodified.
flopscope.numpy.minimum
Element-wise minimum of array elements.
flopscope.numpy.mintypecode
Return the character for the minimum-size type to which given types can be safely cast.
flopscope.numpy.mod
Returns the element-wise remainder of division.
flopscope.numpy.modf
Return the fractional and integral parts of an array, element-wise.
flopscope.numpy.moveaxis
Move axes of an array to new positions.
flopscope.numpy.multiply
Multiply arguments element-wise.
flopscope.numpy.nan_to_num
Replace NaN with zero and infinity with large finite numbers (default behaviour) or with the numbers defined by the user using the `nan`, `posinf` and/or `neginf` keywords.
flopscope.numpy.nanargmax
Return the indices of the maximum values in the specified axis ignoring NaNs. For all-NaN slices ``ValueError`` is raised. Warning: the results cannot be trusted if a slice contains only NaNs and -Infs.
flopscope.numpy.nanargmin
Return the indices of the minimum values in the specified axis ignoring NaNs. For all-NaN slices ``ValueError`` is raised. Warning: the results cannot be trusted if a slice contains only NaNs and Infs.
flopscope.numpy.nancumprod
Return the cumulative product of array elements over a given axis treating Not a Numbers (NaNs) as one. The cumulative product does not change when NaNs are encountered and leading NaNs are replaced by ones.
flopscope.numpy.nancumsum
Return the cumulative sum of array elements over a given axis treating Not a Numbers (NaNs) as zero. The cumulative sum does not change when NaNs are encountered and leading NaNs are replaced by zeros.
flopscope.numpy.nanmax
Return the maximum of an array or maximum along an axis, ignoring any NaNs. When all-NaN slices are encountered a ``RuntimeWarning`` is raised and NaN is returned for that slice.
flopscope.numpy.nanmean
Compute the arithmetic mean along the specified axis, ignoring NaNs.
flopscope.numpy.nanmedian
Compute the median along the specified axis, while ignoring NaNs.
flopscope.numpy.nanmin
Return minimum of an array or minimum along an axis, ignoring any NaNs. When all-NaN slices are encountered a ``RuntimeWarning`` is raised and Nan is returned for that slice.
flopscope.numpy.nanpercentile
Compute the qth percentile of the data along the specified axis, while ignoring nan values.
flopscope.numpy.nanprod
Return the product of array elements over a given axis treating Not a Numbers (NaNs) as ones.
flopscope.numpy.nanquantile
Compute the qth quantile of the data along the specified axis, while ignoring nan values. Returns the qth quantile(s) of the array elements.
flopscope.numpy.nanstd
Compute the standard deviation along the specified axis, while ignoring NaNs.
flopscope.numpy.nansum
Return the sum of array elements over a given axis treating Not a Numbers (NaNs) as zero.
flopscope.numpy.nanvar
Compute the variance along the specified axis, while ignoring NaNs.
flopscope.numpy.ndarray
A numpy ndarray subclass with FLOP-tracked operators.
flopscope.numpy.ndenumerate
Multidimensional index iterator.
flopscope.numpy.ndim
Return the number of dimensions of an array.
flopscope.numpy.ndindex
An N-dimensional iterator object to index arrays.
flopscope.numpy.nditer
Efficient multi-dimensional iterator object to iterate over arrays. To get started using this object, see the :ref:`introductory guide to array iteration <arrays.nditer>`.
flopscope.numpy.negative
Numerical negative, element-wise.
flopscope.numpy.nextafter
Return the next floating-point value after x1 towards x2, element-wise.
flopscope.numpy.nonzero
Return the indices of the elements that are non-zero.
flopscope.numpy.not_equal
Return (x1 != x2) element-wise.
flopscope.numpy.number
Abstract base class of all numeric scalar types.
flopscope.numpy.ones
Return a new array of given shape and type, filled with ones.
flopscope.numpy.ones_like
Return an array of ones with the same shape and type as a given array.
flopscope.numpy.outer
Compute the outer product of two vectors.
flopscope.numpy.packbits
Packs the elements of a binary-valued array into bits in a uint8 array.
flopscope.numpy.pad
Pad an array.
flopscope.numpy.partition
Return a partitioned copy of an array.
flopscope.numpy.percentile
Compute the q-th percentile of the data along the specified axis.
flopscope.numpy.permute_dims
Returns an array with axes transposed.
flopscope.numpy.piecewise
Evaluate a piecewise-defined function.
flopscope.numpy.place
Change elements of an array based on conditional and input values.
flopscope.numpy.poly
Find the coefficients of a polynomial with the given sequence of roots.
flopscope.numpy.polyadd
Find the sum of two polynomials.
flopscope.numpy.polyder
Return the derivative of the specified order of a polynomial.
flopscope.numpy.polydiv
Returns the quotient and remainder of polynomial division.
flopscope.numpy.polyfit
Least squares polynomial fit.
flopscope.numpy.polyint
Return an antiderivative (indefinite integral) of a polynomial.
flopscope.numpy.polymul
Find the product of two polynomials.
flopscope.numpy.polysub
Difference (subtraction) of two polynomials.
flopscope.numpy.polyval
Evaluate a polynomial at specific values.
flopscope.numpy.positive
Numerical positive, element-wise.
flopscope.numpy.pow
First array elements raised to powers from second array, element-wise.
flopscope.numpy.power
First array elements raised to powers from second array, element-wise.
flopscope.numpy.printoptions
Context manager for setting print options.
flopscope.numpy.prod
Return the product of array elements over a given axis.
flopscope.numpy.promote_types
Returns the data type with the smallest size and smallest scalar kind to which both ``type1`` and ``type2`` may be safely cast. The returned data type is always considered "canonical", this mainly means that the promoted dtype will always be in native byte order.
flopscope.numpy.ptp
Range of values (maximum - minimum) along an axis.
flopscope.numpy.put
Replaces specified elements of an array with given values.
flopscope.numpy.put_along_axis
Put values into the destination array by matching 1d index and data slices.
flopscope.numpy.putmask
Changes elements of an array based on conditional and input values.
flopscope.numpy.quantile
Compute the q-th quantile of the data along the specified axis.
flopscope.numpy.rad2deg
Convert angles from radians to degrees.
flopscope.numpy.radians
Convert angles from degrees to radians.
flopscope.numpy.ravel
Return a contiguous flattened array.
flopscope.numpy.ravel_multi_index
Converts a tuple of index arrays into an array of flat indices, applying boundary modes to the multi-index.
flopscope.numpy.real
Return the real part of the complex argument.
flopscope.numpy.real_if_close
If input is complex with all imaginary parts close to zero, return real parts.
flopscope.numpy.reciprocal
Return the reciprocal of the argument, element-wise.
flopscope.numpy.remainder
Returns the element-wise remainder of division.
flopscope.numpy.repeat
Repeat each element of an array after themselves
flopscope.numpy.require
Return an ndarray of the provided type that satisfies requirements.
flopscope.numpy.reshape
Gives a new shape to an array without changing its data.
flopscope.numpy.resize
Return a new array with the specified shape.
flopscope.numpy.result_type
Returns the type that results from applying the NumPy type promotion rules to the arguments.
flopscope.numpy.right_shift
Shift the bits of an integer to the right.
flopscope.numpy.rint
Round elements of the array to the nearest integer.
flopscope.numpy.roll
Roll array elements along a given axis.
flopscope.numpy.rollaxis
Roll the specified axis backwards, until it lies in a given position.
flopscope.numpy.roots
Return the roots of a polynomial with coefficients given in p.
flopscope.numpy.rot90
Rotate an array by 90 degrees in the plane specified by axes.
flopscope.numpy.round
Evenly round to the given number of decimals.
flopscope.numpy.row_stack
Stack arrays in sequence vertically (row wise).
flopscope.numpy.searchsorted
Find indices where elements should be inserted to maintain order.
flopscope.numpy.select
Return an array drawn from elements in choicelist, depending on conditions.
flopscope.numpy.set_printoptions
Set printing options.
flopscope.numpy.setdiff1d
Find the set difference of two arrays.
flopscope.numpy.seterr
Set how floating-point errors are handled.
flopscope.numpy.setxor1d
Find the set exclusive-or of two arrays.
flopscope.numpy.shape
Return the shape of an array.
flopscope.numpy.shares_memory
Determine if two arrays share memory.
flopscope.numpy.sign
Returns an element-wise indication of the sign of a number.
flopscope.numpy.signbit
Returns element-wise True where signbit is set (less than zero).
flopscope.numpy.sin
Trigonometric sine, element-wise.
flopscope.numpy.sinc
Return the normalized sinc function.
flopscope.numpy.sinh
Hyperbolic sine, element-wise.
flopscope.numpy.size
Return the number of elements along a given axis.
flopscope.numpy.sort
Return a sorted copy of an array.
flopscope.numpy.sort_complex
Sort a complex array using the real part first, then the imaginary part.
flopscope.numpy.spacing
Return the distance between x and the nearest adjacent number.
flopscope.numpy.split
Split an array into multiple sub-arrays as views into `ary`.
flopscope.numpy.sqrt
Return the non-negative square-root of an array, element-wise.
flopscope.numpy.square
Return the element-wise square of the input.
flopscope.numpy.squeeze
Remove axes of length one from `a`.
flopscope.numpy.stack
Join a sequence of arrays along a new axis.
flopscope.numpy.std
Compute the standard deviation along the specified axis.
flopscope.numpy.subtract
Subtract arguments, element-wise.
flopscope.numpy.sum
Sum of array elements over a given axis.
flopscope.numpy.swapaxes
Interchange two axes of an array.
flopscope.numpy.take
Take elements from an array along an axis.
flopscope.numpy.take_along_axis
Take values from the input array by matching 1d index and data slices.
flopscope.numpy.tan
Compute tangent element-wise.
flopscope.numpy.tanh
Compute hyperbolic tangent element-wise.
flopscope.numpy.tensordot
Compute tensor dot product along specified axes.
flopscope.numpy.tile
Construct an array by repeating A the number of times given by reps.
flopscope.numpy.trace
Return the sum along diagonals of the array.
flopscope.numpy.transpose
Returns an array with axes transposed.
flopscope.numpy.trapezoid
Integrate along the given axis using the composite trapezoidal rule.
flopscope.numpy.trapz
`trapz` is deprecated in NumPy 2.0.
flopscope.numpy.tri
An array with ones at and below the given diagonal and zeros elsewhere.
flopscope.numpy.tril
Lower triangle of an array.
flopscope.numpy.tril_indices
Return the indices for the lower-triangle of an (n, m) array.
flopscope.numpy.tril_indices_from
Return the indices for the lower-triangle of arr.
flopscope.numpy.trim_zeros
Remove values along a dimension which are zero along all other.
flopscope.numpy.triu
Upper triangle of an array.
flopscope.numpy.triu_indices
Return the indices for the upper-triangle of an (n, m) array.
flopscope.numpy.triu_indices_from
Return the indices for the upper-triangle of arr.
flopscope.numpy.true_divide
Divide arguments element-wise.
flopscope.numpy.trunc
Return the truncated value of the input, element-wise.
flopscope.numpy.typename
Return a description for the given data type code.
flopscope.numpy.uint16
Unsigned integer type, compatible with C ``unsigned short``.
flopscope.numpy.uint32
Unsigned integer type, compatible with C ``unsigned int``.
flopscope.numpy.uint64
Unsigned signed integer type, 64bit on 64bit systems and 32bit on 32bit systems.
flopscope.numpy.uint8
Unsigned integer type, compatible with C ``unsigned char``.
flopscope.numpy.union1d
Find the union of two arrays.
flopscope.numpy.unique
Find the unique elements of an array.
flopscope.numpy.unique_all
Find the unique elements of an array, and counts, inverse, and indices.
flopscope.numpy.unique_counts
Find the unique elements and counts of an input array `x`.
flopscope.numpy.unique_inverse
Find the unique elements of `x` and indices to reconstruct `x`.
flopscope.numpy.unique_values
Returns the unique elements of an input array `x`.
flopscope.numpy.unpackbits
Unpacks elements of a uint8 array into a binary-valued output array.
flopscope.numpy.unravel_index
Converts a flat index or array of flat indices into a tuple of coordinate arrays.
flopscope.numpy.unstack
Split an array into a sequence of arrays along the given axis.
flopscope.numpy.unwrap
Unwrap by taking the complement of large deltas with respect to the period.
flopscope.numpy.vander
Generate a Vandermonde matrix.
flopscope.numpy.var
Compute the variance along the specified axis.
flopscope.numpy.vdot
Return the dot product of two vectors.
flopscope.numpy.vecdot
Vector dot product of two arrays.
flopscope.numpy.vecmat
Vector-matrix dot product of two arrays.
flopscope.numpy.vsplit
Split an array into multiple sub-arrays vertically (row-wise).
flopscope.numpy.vstack
Stack arrays in sequence vertically (row wise).
flopscope.numpy.where
Return elements chosen from `x` or `y` depending on `condition`.
flopscope.numpy.zeros
Return a new array of given shape and type, filled with zeros.
flopscope.numpy.zeros_like
Return an array of zeros with the same shape and type as a given array.
Linear algebra
Counted linear algebra routines under `flopscope.numpy.linalg`.
flopscope.numpy.linalg.cholesky
Cholesky decomposition.
flopscope.numpy.linalg.cond
Compute the condition number of a matrix.
flopscope.numpy.linalg.cross
Returns the cross product of 3-element vectors.
flopscope.numpy.linalg.det
Compute the determinant of an array.
flopscope.numpy.linalg.diagonal
Returns specified diagonals of a matrix (or a stack of matrices) ``x``.
flopscope.numpy.linalg.eig
Compute the eigenvalues and right eigenvectors of a square array.
flopscope.numpy.linalg.eigh
Return the eigenvalues and eigenvectors of a complex Hermitian (conjugate symmetric) or a real symmetric matrix.
flopscope.numpy.linalg.eigvals
Compute the eigenvalues of a general matrix.
flopscope.numpy.linalg.eigvalsh
Compute the eigenvalues of a complex Hermitian or real symmetric matrix.
flopscope.numpy.linalg.inv
Compute the inverse of a matrix.
flopscope.numpy.linalg.lstsq
Return the least-squares solution to a linear matrix equation.
flopscope.numpy.linalg.matmul
Computes the matrix product.
flopscope.numpy.linalg.matrix_norm
Computes the matrix norm of a matrix (or a stack of matrices) ``x``.
flopscope.numpy.linalg.matrix_power
Raise a square matrix to the (integer) power `n`.
flopscope.numpy.linalg.matrix_rank
Return matrix rank of array using SVD method
flopscope.numpy.linalg.matrix_transpose
Transposes a matrix (or a stack of matrices) ``x``.
flopscope.numpy.linalg.multi_dot
Compute the dot product of two or more arrays in a single function call, while automatically selecting the fastest evaluation order.
flopscope.numpy.linalg.norm
Matrix or vector norm.
flopscope.numpy.linalg.outer
Compute the outer product of two vectors.
flopscope.numpy.linalg.pinv
Compute the (Moore-Penrose) pseudo-inverse of a matrix.
flopscope.numpy.linalg.qr
Compute the qr factorization of a matrix.
flopscope.numpy.linalg.slogdet
Compute the sign and (natural) logarithm of the determinant of an array.
flopscope.numpy.linalg.solve
Solve a linear matrix equation, or system of linear scalar equations.
flopscope.numpy.linalg.svd
Singular Value Decomposition.
flopscope.numpy.linalg.svdvals
Returns the singular values of a matrix (or a stack of matrices) ``x``. When x is a stack of matrices, the function will compute the singular values for each matrix in the stack.
flopscope.numpy.linalg.tensordot
Compute tensor dot product along specified axes.
flopscope.numpy.linalg.tensorinv
Compute the 'inverse' of an N-dimensional array.
flopscope.numpy.linalg.tensorsolve
Solve the tensor equation ``a x = b`` for x.
flopscope.numpy.linalg.trace
Returns the sum along the specified diagonals of a matrix (or a stack of matrices) ``x``.
flopscope.numpy.linalg.vecdot
Computes the vector dot product.
flopscope.numpy.linalg.vector_norm
Computes the vector norm of a vector (or batch of vectors) ``x``.
Fourier transforms
Counted FFT routines under `flopscope.numpy.fft`.
flopscope.numpy.fft.fft
Compute the one-dimensional discrete Fourier Transform.
flopscope.numpy.fft.fft2
Compute the 2-dimensional discrete Fourier Transform.
flopscope.numpy.fft.fftfreq
Return the Discrete Fourier Transform sample frequencies.
flopscope.numpy.fft.fftn
Compute the N-dimensional discrete Fourier Transform.
flopscope.numpy.fft.fftshift
Shift the zero-frequency component to the center of the spectrum.
flopscope.numpy.fft.hfft
Compute the FFT of a signal that has Hermitian symmetry, i.e., a real spectrum.
flopscope.numpy.fft.ifft
Compute the one-dimensional inverse discrete Fourier Transform.
flopscope.numpy.fft.ifft2
Compute the 2-dimensional inverse discrete Fourier Transform.
flopscope.numpy.fft.ifftn
Compute the N-dimensional inverse discrete Fourier Transform.
flopscope.numpy.fft.ifftshift
The inverse of `fftshift`. Although identical for even-length `x`, the functions differ by one sample for odd-length `x`.
flopscope.numpy.fft.ihfft
Compute the inverse FFT of a signal that has Hermitian symmetry.
flopscope.numpy.fft.irfft
Computes the inverse of `rfft`.
flopscope.numpy.fft.irfft2
Computes the inverse of `rfft2`.
flopscope.numpy.fft.irfftn
Computes the inverse of `rfftn`.
flopscope.numpy.fft.rfft
Compute the one-dimensional discrete Fourier Transform for real input.
flopscope.numpy.fft.rfft2
Compute the 2-dimensional FFT of a real array.
flopscope.numpy.fft.rfftfreq
Return the Discrete Fourier Transform sample frequencies (for usage with rfft, irfft).
flopscope.numpy.fft.rfftn
Compute the N-dimensional discrete Fourier Transform for real input.
Random sampling
Counted random sampling routines, including symmetry-aware sampling helpers.
flopscope.numpy.random.beta
Draw samples from a Beta distribution.
flopscope.numpy.random.binomial
Draw samples from a binomial distribution.
flopscope.numpy.random.bytes
Return random bytes.
flopscope.numpy.random.chisquare
Draw samples from a chi-square distribution.
flopscope.numpy.random.choice
Generates a random sample from a given 1-D array
flopscope.numpy.random.default_rng
default_rng(seed=None) Construct a new Generator with the default BitGenerator (PCG64).
flopscope.numpy.random.dirichlet
Draw samples from the Dirichlet distribution.
flopscope.numpy.random.exponential
Draw samples from an exponential distribution.
flopscope.numpy.random.f
Draw samples from an F distribution.
flopscope.numpy.random.gamma
Draw samples from a Gamma distribution.
flopscope.numpy.random.Generator
numpy ``Generator`` subclass with FLOP-counted sampler methods.
flopscope.numpy.random.Generator.beta
Draw samples from a Beta distribution.
flopscope.numpy.random.Generator.binomial
Draw samples from a binomial distribution.
flopscope.numpy.random.Generator.bit_generator
Gets the bit generator instance used by the generator
flopscope.numpy.random.Generator.bytes
Return random bytes.
flopscope.numpy.random.Generator.chisquare
Draw samples from a chi-square distribution.
flopscope.numpy.random.Generator.choice
Generates a random sample from a given array
flopscope.numpy.random.Generator.dirichlet
Draw samples from the Dirichlet distribution.
flopscope.numpy.random.Generator.exponential
Draw samples from an exponential distribution.
flopscope.numpy.random.Generator.f
Draw samples from an F distribution.
flopscope.numpy.random.Generator.gamma
Draw samples from a Gamma distribution.
flopscope.numpy.random.Generator.geometric
Draw samples from the geometric distribution.
flopscope.numpy.random.Generator.gumbel
Draw samples from a Gumbel distribution.
flopscope.numpy.random.Generator.hypergeometric
Draw samples from a Hypergeometric distribution.
flopscope.numpy.random.Generator.integers
Return random integers from `low` (inclusive) to `high` (exclusive), or if endpoint=True, `low` (inclusive) to `high` (inclusive). Replaces `RandomState.randint` (with endpoint=False) and `RandomState.random_integers` (with endpoint=True)
flopscope.numpy.random.Generator.laplace
Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay).
flopscope.numpy.random.Generator.logistic
Draw samples from a logistic distribution.
flopscope.numpy.random.Generator.lognormal
Draw samples from a log-normal distribution.
flopscope.numpy.random.Generator.logseries
Draw samples from a logarithmic series distribution.
flopscope.numpy.random.Generator.multinomial
Draw samples from a multinomial distribution.
flopscope.numpy.random.Generator.multivariate_hypergeometric
Generate variates from a multivariate hypergeometric distribution.
flopscope.numpy.random.Generator.multivariate_normal
Draw random samples from a multivariate normal distribution.
flopscope.numpy.random.Generator.negative_binomial
Draw samples from a negative binomial distribution.
flopscope.numpy.random.Generator.noncentral_chisquare
Draw samples from a noncentral chi-square distribution.
flopscope.numpy.random.Generator.noncentral_f
Draw samples from the noncentral F distribution.
flopscope.numpy.random.Generator.normal
Draw random samples from a normal (Gaussian) distribution.
flopscope.numpy.random.Generator.pareto
Draw samples from a Pareto II (AKA Lomax) distribution with specified shape.
flopscope.numpy.random.Generator.permutation
Randomly permute a sequence, or return a permuted range.
flopscope.numpy.random.Generator.permuted
Randomly permute `x` along axis `axis`.
flopscope.numpy.random.Generator.poisson
Draw samples from a Poisson distribution.
flopscope.numpy.random.Generator.power
Draws samples in [0, 1] from a power distribution with positive exponent a - 1.
flopscope.numpy.random.Generator.random
Return random floats in the half-open interval [0.0, 1.0).
flopscope.numpy.random.Generator.rayleigh
Draw samples from a Rayleigh distribution.
flopscope.numpy.random.Generator.shuffle
Modify an array or sequence in-place by shuffling its contents.
flopscope.numpy.random.Generator.spawn
Create new independent child generators.
flopscope.numpy.random.Generator.standard_cauchy
Draw samples from a standard Cauchy distribution with mode = 0.
flopscope.numpy.random.Generator.standard_exponential
Draw samples from the standard exponential distribution.
flopscope.numpy.random.Generator.standard_gamma
Draw samples from a standard Gamma distribution.
flopscope.numpy.random.Generator.standard_normal
Draw samples from a standard Normal distribution (mean=0, stdev=1).
flopscope.numpy.random.Generator.standard_t
Draw samples from a standard Student's t distribution with `df` degrees of freedom.
flopscope.numpy.random.Generator.triangular
Draw samples from the triangular distribution over the interval ``[left, right]``.
flopscope.numpy.random.Generator.uniform
Draw samples from a uniform distribution.
flopscope.numpy.random.Generator.vonmises
Draw samples from a von Mises distribution.
flopscope.numpy.random.Generator.wald
Draw samples from a Wald, or inverse Gaussian, distribution.
flopscope.numpy.random.Generator.weibull
Draw samples from a Weibull distribution.
flopscope.numpy.random.Generator.zipf
Draw samples from a Zipf distribution.
flopscope.numpy.random.geometric
Draw samples from the geometric distribution.
flopscope.numpy.random.get_state
Return a tuple representing the internal state of the generator.
flopscope.numpy.random.gumbel
Draw samples from a Gumbel distribution.
flopscope.numpy.random.hypergeometric
Draw samples from a Hypergeometric distribution.
flopscope.numpy.random.laplace
Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay).
flopscope.numpy.random.logistic
Draw samples from a logistic distribution.
flopscope.numpy.random.lognormal
Draw samples from a log-normal distribution.
flopscope.numpy.random.logseries
Draw samples from a logarithmic series distribution.
flopscope.numpy.random.multinomial
Draw samples from a multinomial distribution.
flopscope.numpy.random.multivariate_normal
Draw random samples from a multivariate normal distribution.
flopscope.numpy.random.negative_binomial
Draw samples from a negative binomial distribution.
flopscope.numpy.random.noncentral_chisquare
Draw samples from a noncentral chi-square distribution.
flopscope.numpy.random.noncentral_f
Draw samples from the noncentral F distribution.
flopscope.numpy.random.normal
Draw random samples from a normal (Gaussian) distribution.
flopscope.numpy.random.pareto
Draw samples from a Pareto II or Lomax distribution with specified shape.
flopscope.numpy.random.permutation
Randomly permute a sequence, or return a permuted range.
flopscope.numpy.random.poisson
Draw samples from a Poisson distribution.
flopscope.numpy.random.power
Draws samples in [0, 1] from a power distribution with positive exponent a - 1.
flopscope.numpy.random.rand
Random values in a given shape.
flopscope.numpy.random.randint
Return random integers from `low` (inclusive) to `high` (exclusive).
flopscope.numpy.random.randn
Return a sample (or samples) from the "standard normal" distribution.
flopscope.numpy.random.random
Return random floats in the half-open interval [0.0, 1.0). Alias for `random_sample` to ease forward-porting to the new random API.
flopscope.numpy.random.random_integers
Random integers of type `flops.int_` between `low` and `high`, inclusive.
flopscope.numpy.random.random_sample
Return random floats in the half-open interval [0.0, 1.0).
flopscope.numpy.random.RandomState
numpy legacy ``RandomState`` subclass with FLOP-counted sampler methods.
flopscope.numpy.random.RandomState.beta
Draw samples from a Beta distribution.
flopscope.numpy.random.RandomState.binomial
Draw samples from a binomial distribution.
flopscope.numpy.random.RandomState.bytes
Return random bytes.
flopscope.numpy.random.RandomState.chisquare
Draw samples from a chi-square distribution.
flopscope.numpy.random.RandomState.choice
Generates a random sample from a given 1-D array
flopscope.numpy.random.RandomState.dirichlet
Draw samples from the Dirichlet distribution.
flopscope.numpy.random.RandomState.exponential
Draw samples from an exponential distribution.
flopscope.numpy.random.RandomState.f
Draw samples from an F distribution.
flopscope.numpy.random.RandomState.gamma
Draw samples from a Gamma distribution.
flopscope.numpy.random.RandomState.geometric
Draw samples from the geometric distribution.
flopscope.numpy.random.RandomState.get_state
Return a tuple representing the internal state of the generator.
flopscope.numpy.random.RandomState.gumbel
Draw samples from a Gumbel distribution.
flopscope.numpy.random.RandomState.hypergeometric
Draw samples from a Hypergeometric distribution.
flopscope.numpy.random.RandomState.laplace
Draw samples from the Laplace or double exponential distribution with specified location (or mean) and scale (decay).
flopscope.numpy.random.RandomState.logistic
Draw samples from a logistic distribution.
flopscope.numpy.random.RandomState.lognormal
Draw samples from a log-normal distribution.
flopscope.numpy.random.RandomState.logseries
Draw samples from a logarithmic series distribution.
flopscope.numpy.random.RandomState.multinomial
Draw samples from a multinomial distribution.
flopscope.numpy.random.RandomState.multivariate_normal
Draw random samples from a multivariate normal distribution.
flopscope.numpy.random.RandomState.negative_binomial
Draw samples from a negative binomial distribution.
flopscope.numpy.random.RandomState.noncentral_chisquare
Draw samples from a noncentral chi-square distribution.
flopscope.numpy.random.RandomState.noncentral_f
Draw samples from the noncentral F distribution.
flopscope.numpy.random.RandomState.normal
Draw random samples from a normal (Gaussian) distribution.
flopscope.numpy.random.RandomState.pareto
Draw samples from a Pareto II or Lomax distribution with specified shape.
flopscope.numpy.random.RandomState.permutation
Randomly permute a sequence, or return a permuted range.
flopscope.numpy.random.RandomState.poisson
Draw samples from a Poisson distribution.
flopscope.numpy.random.RandomState.power
Draws samples in [0, 1] from a power distribution with positive exponent a - 1.
flopscope.numpy.random.RandomState.rand
Random values in a given shape.
flopscope.numpy.random.RandomState.randint
Return random integers from `low` (inclusive) to `high` (exclusive).
flopscope.numpy.random.RandomState.randn
Return a sample (or samples) from the "standard normal" distribution.
flopscope.numpy.random.RandomState.random
Return random floats in the half-open interval [0.0, 1.0). Alias for `random_sample` to ease forward-porting to the new random API.
flopscope.numpy.random.RandomState.random_integers
Random integers of type `flops.int_` between `low` and `high`, inclusive.
flopscope.numpy.random.RandomState.random_sample
Return random floats in the half-open interval [0.0, 1.0).
flopscope.numpy.random.RandomState.rayleigh
Draw samples from a Rayleigh distribution.
flopscope.numpy.random.RandomState.seed
Reseed a legacy MT19937 BitGenerator
flopscope.numpy.random.RandomState.set_state
Set the internal state of the generator from a tuple.
flopscope.numpy.random.RandomState.shuffle
Modify a sequence in-place by shuffling its contents.
flopscope.numpy.random.RandomState.standard_cauchy
Draw samples from a standard Cauchy distribution with mode = 0.
flopscope.numpy.random.RandomState.standard_exponential
Draw samples from the standard exponential distribution.
flopscope.numpy.random.RandomState.standard_gamma
Draw samples from a standard Gamma distribution.
flopscope.numpy.random.RandomState.standard_normal
Draw samples from a standard Normal distribution (mean=0, stdev=1).
flopscope.numpy.random.RandomState.standard_t
Draw samples from a standard Student's t distribution with `df` degrees of freedom.
flopscope.numpy.random.RandomState.tomaxint
Return a sample of uniformly distributed random integers in the interval [0, ``flops.iinfo("long").max``].
flopscope.numpy.random.RandomState.triangular
Draw samples from the triangular distribution over the interval ``[left, right]``.
flopscope.numpy.random.RandomState.uniform
Draw samples from a uniform distribution.
flopscope.numpy.random.RandomState.vonmises
Draw samples from a von Mises distribution.
flopscope.numpy.random.RandomState.wald
Draw samples from a Wald, or inverse Gaussian, distribution.
flopscope.numpy.random.RandomState.weibull
Draw samples from a Weibull distribution.
flopscope.numpy.random.RandomState.zipf
Draw samples from a Zipf distribution.
flopscope.numpy.random.ranf
Counted version of ``flops.random.random.ranf``. Cost: numel(output) FLOPs.
flopscope.numpy.random.rayleigh
Draw samples from a Rayleigh distribution.
flopscope.numpy.random.sample
Counted version of ``flops.random.random.sample``. Cost: numel(output) FLOPs.
flopscope.numpy.random.seed
Reseed the singleton RandomState instance.
flopscope.numpy.random.SeedSequence
SeedSequence mixes sources of entropy in a reproducible way to set the initial state for independent and very probably non-overlapping BitGenerators.
flopscope.numpy.random.set_state
Set the internal state of the generator from a tuple.
flopscope.numpy.random.shuffle
Modify a sequence in-place by shuffling its contents.
flopscope.numpy.random.standard_cauchy
Draw samples from a standard Cauchy distribution with mode = 0.
flopscope.numpy.random.standard_exponential
Draw samples from the standard exponential distribution.
flopscope.numpy.random.standard_gamma
Draw samples from a standard Gamma distribution.
flopscope.numpy.random.standard_normal
Draw samples from a standard Normal distribution (mean=0, stdev=1).
flopscope.numpy.random.standard_t
Draw samples from a standard Student's t distribution with `df` degrees of freedom.
flopscope.numpy.random.symmetric
Sample random data and project it to a symmetry group.
flopscope.numpy.random.triangular
Draw samples from the triangular distribution over the interval ``[left, right]``.
flopscope.numpy.random.uniform
Draw samples from a uniform distribution.
flopscope.numpy.random.vonmises
Draw samples from a von Mises distribution.
flopscope.numpy.random.wald
Draw samples from a Wald, or inverse Gaussian, distribution.
flopscope.numpy.random.weibull
Draw samples from a Weibull distribution.
flopscope.numpy.random.zipf
Draw samples from a Zipf distribution.