Array creation routines ======================= .. Hint:: `NumPy API Reference: Array creation routines `_ .. currentmodule:: cupy Ones and zeros -------------- .. autosummary:: :toctree: generated/ empty empty_like eye identity ones ones_like zeros zeros_like full full_like From existing data ------------------ .. autosummary:: :toctree: generated/ array asarray asanyarray ascontiguousarray copy frombuffer fromfile fromfunction fromiter fromstring loadtxt Numerical ranges ---------------- .. autosummary:: :toctree: generated/ arange linspace logspace meshgrid mgrid ogrid Building matrices ----------------- .. autosummary:: :toctree: generated/ diag diagflat tri tril triu vander