Array creation routines

Basic constructors

empty

Return an empty array.

uninit

Return an uninitialized array.

ones

Return a new array of given shape and type, filled with ones.

zeros

Return a new array of given shape and type, filled with zeros.

full

Return a new array of given shape and type, filled with fill_value.

arange

Return evenly spaced values within a given interval.

linspace

Return evenly spaced numbers over a specified interval.

Random distributions

random.random_sample

Return random floats in the half-open interval [0.0, 1.0).

random.standard_normal

Draw samples from a standard Normal distribution (mean=0, stdev=1).

random.beta

Draw samples from a Beta distribution.

random.lognormal

Draw samples from a log-normal distribution.

random.exponential

Draw samples from an exponential distribution.

random.uniform

Draw samples from a uniform distribution.

random.normal

Draw random samples from a normal (Gaussian) distribution.

random.bernoulli

Draw samples from a Bernoulli distribution.

random.binomial

Draw samples from a binomial distribution.

random.poisson

Draw samples from a Poisson distribution.