Search is not available for this dataset
repo_id stringlengths 12 110 | file_path stringlengths 24 164 | content stringlengths 3 89.3M | __index_level_0__ int64 0 0 |
|---|---|---|---|
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/loops.c.src | /* -*- c -*- */
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#define _UMATHMODULE
#define _MULTIARRAYMODULE
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "npy_config.h"
#include "numpy/npy_common.h"
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"
#include "numpy/npy_math.h"
#include "numpy/half... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/loops_unary_complex.dispatch.c.src | /*@targets
** $maxopt baseline
** sse2 (avx2 fma3) avx512f
** neon asimd
** vsx2 vsx3
** vx vxe
**/
#define _UMATHMODULE
#define _MULTIARRAYMODULE
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "simd/simd.h"
#include "loops_utils.h"
#include "loops.h"
#include "lowlevel_strided_loops.h"
// Provides the v... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/loops_hyperbolic.dispatch.c.src | /*@targets
** $maxopt baseline
** (avx2 fma3) AVX512_SKX
** vsx2 vsx4
** neon_vfpv4
** vx vxe
**/
#include "numpy/npy_math.h"
#include "simd/simd.h"
#include "loops_utils.h"
#include "loops.h"
#if NPY_SIMD_FMA3 // native support
/*
* NOTE: The following implementation of tanh(f32, f64) have been converted from
... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/special_integer_comparisons.h | #ifndef _NPY_CORE_SRC_UMATH_SPECIAL_COMPARISONS_H_
#define _NPY_CORE_SRC_UMATH_SPECIAL_COMPARISONS_H_
#ifdef __cplusplus
extern "C" {
#endif
NPY_NO_EXPORT int
init_special_int_comparisons(PyObject *umath);
#ifdef __cplusplus
}
#endif
#endif /* _NPY_CORE_SRC_UMATH_SPECIAL_COMPARISONS_H_ */
| 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/fast_loop_macros.h | /**
* Macros to help build fast ufunc inner loops.
*
* These expect to have access to the arguments of a typical ufunc loop,
*
* char **args
* npy_intp const *dimensions
* npy_intp const *steps
*/
#ifndef _NPY_UMATH_FAST_LOOP_MACROS_H_
#define _NPY_UMATH_FAST_LOOP_MACROS_H_
#include <assert.h>
#in... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/funcs.inc.src | /* -*- c -*- */
/*
* This file is for the definitions of the non-c99 functions used in ufuncs.
* All the complex ufuncs are defined here along with a smattering of real and
* object functions.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "npy_pycompat.h"
#include "npy_import.h"
/*
****************... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/legacy_array_method.c | /*
* This file defines most of the machinery in order to wrap legacy style
* ufunc loops into new style arraymethods.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define _UMATHMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "numpy/ndarraytypes.h"
#include "convert_datat... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/string_buffer.h | #ifndef _NPY_CORE_SRC_UMATH_STRING_BUFFER_H_
#define _NPY_CORE_SRC_UMATH_STRING_BUFFER_H_
#include <Python.h>
#include <cstddef>
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define _UMATHMODULE
#include "numpy/ndarraytypes.h"
#define CHECK_OVERFLOW(index) if (buf + (index) >= after) retu... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/string_ufuncs.h | #ifndef _NPY_CORE_SRC_UMATH_STRING_UFUNCS_H_
#define _NPY_CORE_SRC_UMATH_STRING_UFUNCS_H_
#ifdef __cplusplus
extern "C" {
#endif
NPY_NO_EXPORT int
init_string_ufuncs(PyObject *umath);
NPY_NO_EXPORT PyObject *
_umath_strings_richcompare(
PyArrayObject *self, PyArrayObject *other, int cmp_op, int rstrip);
#if... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/extobj.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define _UMATHMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "npy_config.h"
#include "npy_pycompat.h"
#include "npy_argparse.h"
#include "conversion_utils.h"
#include "extobj.h"
#include "numpy/ufuncobject.h"
#include "ufunc_obje... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/string_fastsearch.h | #ifndef _NPY_CORE_SRC_UMATH_STRING_FASTSEARCH_H_
#define _NPY_CORE_SRC_UMATH_STRING_FASTSEARCH_H_
/* stringlib: fastsearch implementation taken from CPython */
#include <Python.h>
#include <limits.h>
#include <string.h>
#include <wchar.h>
#include <type_traits>
#include "string_buffer.h"
/* fast search/count impl... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/loops_logical.dispatch.c.src | /*@targets
** $maxopt baseline
** neon asimd
** sse2 avx2 avx512_skx
** vsx2
** vx
**/
#define _UMATHMODULE
#define _MULTIARRAYMODULE
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "simd/simd.h"
#include "loops_utils.h"
#include "loops.h"
#include "lowlevel_strided_loops.h"
// Provides the various *_LOOP... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/override.h | #ifndef _NPY_UMATH_OVERRIDE_H
#define _NPY_UMATH_OVERRIDE_H
#include "npy_config.h"
#include "numpy/ufuncobject.h"
NPY_NO_EXPORT int
PyUFunc_CheckOverride(PyUFuncObject *ufunc, char *method,
PyObject *in_args, PyObject *out_args, PyObject *wheremask_obj,
PyObject *const *args, Py_ssize_t len_args, PyO... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/dispatching.h | #ifndef _NPY_DISPATCHING_H
#define _NPY_DISPATCHING_H
#define _UMATHMODULE
#include <numpy/ufuncobject.h>
#include "array_method.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef int promoter_function(PyUFuncObject *ufunc,
PyArray_DTypeMeta *op_dtypes[], PyArray_DTypeMeta *signature[],
PyArray_DType... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/_struct_ufunc_tests.c | #define PY_SSIZE_T_CLEAN
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "numpy/ndarraytypes.h"
#include "numpy/ufuncobject.h"
#include "numpy/npy_3kcompat.h"
#include <math.h>
/*
* struct_ufunc_test.c
* This is the C code for creating your own
* NumPy ufunc for a structured array dtyp... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/loops_unary_fp.dispatch.c.src | /*@targets
** $maxopt baseline
** sse2 sse41
** vsx2
** neon asimd
** vx vxe
**/
/**
* Force use SSE only on x86, even if AVX2 or AVX512F are enabled
* through the baseline, since scatter(AVX512F) and gather very costly
* to handle non-contiguous memory access comparing with SSE for
* such small operations th... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/clip.h | #ifndef _NPY_UMATH_CLIP_H_
#define _NPY_UMATH_CLIP_H_
#ifdef __cplusplus
extern "C" {
#endif
NPY_NO_EXPORT void
BOOL_clip(char **args, npy_intp const *dimensions, npy_intp const *steps,
void *NPY_UNUSED(func));
NPY_NO_EXPORT void
BYTE_clip(char **args, npy_intp const *dimensions, npy_intp const *steps,
... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/_umath_tests.c.src | /* -*- c -*- */
/*
*****************************************************************************
** INCLUDES **
*****************************************************************************
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#define NPY_N... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/ufunc_type_resolution.h | #ifndef _NPY_PRIVATE__UFUNC_TYPE_RESOLUTION_H_
#define _NPY_PRIVATE__UFUNC_TYPE_RESOLUTION_H_
NPY_NO_EXPORT int
PyUFunc_SimpleBinaryComparisonTypeResolver(PyUFuncObject *ufunc,
NPY_CASTING casting,
PyArrayObject **operands,
... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/loops_unary.dispatch.c.src | /*@targets
** $maxopt baseline
** neon asimd
** sse2 avx2 avx512_skx
** vsx2
** vx vxe
**/
#define _UMATHMODULE
#define _MULTIARRAYMODULE
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "numpy/npy_math.h"
#include "simd/simd.h"
#include "loops_utils.h"
#include "loops.h"
#include "lowlevel_strided_loops.... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/ufunc_object.h | #ifndef _NPY_UMATH_UFUNC_OBJECT_H_
#define _NPY_UMATH_UFUNC_OBJECT_H_
#include <numpy/ufuncobject.h>
NPY_NO_EXPORT const char*
ufunc_get_name_cstr(PyUFuncObject *ufunc);
NPY_NO_EXPORT PyObject *
PyUFunc_GetDefaultIdentity(PyUFuncObject *ufunc, npy_bool *reorderable);
/* strings from umathmodule.c that are interned... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/loops_utils.h.src | #ifndef _NPY_UMATH_LOOPS_UTILS_H_
#define _NPY_UMATH_LOOPS_UTILS_H_
#include "numpy/npy_common.h" // NPY_FINLINE
#include "numpy/halffloat.h" // npy_half_to_float
/**
* Old versions of MSVC causes ambiguous link errors when we deal with large SIMD kernels
* which lead to break the build, probably related to the fol... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/npy_simd_data.h | #ifndef __NPY_SIMD_DATA_H_
#define __NPY_SIMD_DATA_H_
#if defined NPY_HAVE_AVX512F
#if !(defined(__clang__) && (__clang_major__ < 10 || (__clang_major__ == 10 && __clang_minor__ < 1)))
/*
* Constants used in vector implementation of float64 exp(x)
*/
#define NPY_RINT_CVT_MAGIC 0x1.8p52
#define NPY_INV_LN2_MUL_32 0x1.... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/umathmodule.c | /* -*- c -*- */
/* vim:syntax=c */
/*
* _UMATHMODULE IS needed in __ufunc_api.h, included from numpy/ufuncobject.h.
* This is a mess and it would be nice to fix it. It has nothing to do with
* __ufunc_api.c
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define _UMATHMODULE
#define PY_... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/override.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define NO_IMPORT_ARRAY
#include "npy_pycompat.h"
#include "numpy/ufuncobject.h"
#include "npy_import.h"
#include "override.h"
#include "ufunc_override.h"
/*
* For each positional argument and each argument in a possible "out"
* keyword, look for overrides of the stan... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/_scaled_float_dtype.c | /*
* This file implements a basic scaled float64 DType. The reason is to have
* a simple parametric DType for testing. It is not meant to be a useful
* DType by itself, but due to the scaling factor has similar properties as
* a Unit DType.
*
* The code here should be seen as a work in progress. Some choices a... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/legacy_array_method.h | #ifndef _NPY_LEGACY_ARRAY_METHOD_H
#define _NPY_LEGACY_ARRAY_METHOD_H
#include "numpy/ndarraytypes.h"
#include "numpy/ufuncobject.h"
#include "array_method.h"
#ifdef __cplusplus
extern "C" {
#endif
NPY_NO_EXPORT PyArrayMethodObject *
PyArray_NewLegacyWrappingArrayMethod(PyUFuncObject *ufunc,
PyArray_DTypeMet... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/umath/loops.h.src | /* -*- c -*- */
/*
* vim:syntax=c
*/
#ifndef _NPY_UMATH_LOOPS_H_
#define _NPY_UMATH_LOOPS_H_
#ifndef NPY_NO_EXPORT
#define NPY_NO_EXPORT NPY_VISIBILITY_HIDDEN
#endif
/*
*****************************************************************************
** BOOLEAN LOOPS ... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/mergesort.cpp | /* -*- c -*- */
/*
* The purpose of this module is to add faster sort functions
* that are type-specific. This is done by altering the
* function table for the builtin descriptors.
*
* These sorting functions are copied almost directly from numarray
* with a few modifications (complex comparisons compare the im... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/simd_qsort.hpp | #ifndef NUMPY_SRC_COMMON_NPYSORT_SIMD_QSORT_HPP
#define NUMPY_SRC_COMMON_NPYSORT_SIMD_QSORT_HPP
#include "common.hpp"
namespace np { namespace qsort_simd {
#ifndef NPY_DISABLE_OPTIMIZATION
#include "simd_qsort.dispatch.h"
#endif
NPY_CPU_DISPATCH_DECLARE(template <typename T> void QSort, (T *arr, intptr_t size))
... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/npysort_heapsort.h | #ifndef __NPY_SORT_HEAPSORT_H__
#define __NPY_SORT_HEAPSORT_H__
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "npy_sort.h"
#include "npysort_common.h"
#include "numpy_tag.h"
#include <cstdlib>
/*
*****************************************************************************
** N... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/quicksort.cpp | /* -*- c -*- */
/*
* The purpose of this module is to add faster sort functions
* that are type-specific. This is done by altering the
* function table for the builtin descriptors.
*
* These sorting functions are copied almost directly from numarray
* with a few modifications (complex comparisons compare the im... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/simd_qsort.dispatch.cpp | /*@targets
* $maxopt $keep_baseline avx512_skx
*/
// policy $keep_baseline is used to avoid skip building avx512_skx
// when its part of baseline features (--cpu-baseline), since
// 'baseline' option isn't specified within targets.
#include "simd_qsort.hpp"
#ifndef __CYGWIN__
#if defined(NPY_HAVE_AVX512_SKX)
#i... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/simd_qsort_16bit.dispatch.cpp | /*@targets
* $maxopt $keep_baseline avx512_icl avx512_spr
*/
// policy $keep_baseline is used to avoid skip building avx512_skx
// when its part of baseline features (--cpu-baseline), since
// 'baseline' option isn't specified within targets.
#include "simd_qsort.hpp"
#ifndef __CYGWIN__
#if defined(NPY_HAVE_AVX512_... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/timsort.cpp | /* -*- c -*- */
/*
* The purpose of this module is to add faster sort functions
* that are type-specific. This is done by altering the
* function table for the builtin descriptors.
*
* These sorting functions are copied almost directly from numarray
* with a few modifications (complex comparisons compare the im... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/selection.cpp | /* -*- c -*- */
/*
*
* The code is loosely based on the quickselect from
* Nicolas Devillard - 1998 public domain
* http://ndevilla.free.fr/median/median/
*
* Quick select with median of 3 pivot is usually the fastest,
* but the worst case scenario can be quadratic complexity,
* e.g. np.roll(np.arange(x), x / ... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/binsearch.cpp | /* -*- c -*- */
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "numpy/ndarraytypes.h"
#include "numpy/npy_common.h"
#include "npy_binsearch.h"
#include "npy_sort.h"
#include "numpy_tag.h"
#include <array>
#include <functional> // for std::less and std::less_equal
// Enumerators for the variant of binsearc... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/radixsort.cpp | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "npy_sort.h"
#include "npysort_common.h"
#include "../common/numpy_tag.h"
#include <cstdlib>
#include <type_traits>
/*
*****************************************************************************
** INTEGER SORTS ... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/npysort_common.h | #ifndef __NPY_SORT_COMMON_H__
#define __NPY_SORT_COMMON_H__
#include <stdlib.h>
#include <numpy/ndarraytypes.h>
#include <numpy/npy_math.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
*****************************************************************************
** SWAP MACROS ... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/npysort/heapsort.cpp | /* -*- c -*- */
/*
* The purpose of this module is to add faster sort functions
* that are type-specific. This is done by altering the
* function table for the builtin descriptors.
*
* These sorting functions are copied almost directly from numarray
* with a few modifications (complex comparisons compare the im... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd.h | /**
* A module to expose the NumPy C SIMD vectorization interface "NPYV" for testing purposes.
*
* Please keep this module independent from other c-extension modules,
* since NPYV intrinsics may be involved in their functionality,
* which increases the degree of complexity in tracking and detecting errors.
*
* T... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd_vector.inc | /**
* This file is included by `_simd.dispatch.c.src`. Its contents are affected by the simd configuration, and
* therefore must be built multiple times. Making it a standalone `.c` file with `NPY_VISIBILITY_HIDDEN`
* symbols would require judicious use of `NPY_CPU_DISPATCH_DECLARE` and `NPY_CPU_DISPATCH_CURFX`, whi... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd_easyintrin.inc | /**
* This file is included by `_simd.dispatch.c.src`. Its contents are affected by the simd configuration, and
* therefore must be built multiple times. Making it a standalone `.c` file with `NPY_VISIBILITY_HIDDEN`
* symbols would require judicious use of `NPY_CPU_DISPATCH_DECLARE` and `NPY_CPU_DISPATCH_CURFX`, whi... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd_convert.inc | /**
* This file is included by `_simd.dispatch.c.src`. Its contents are affected by the simd configuration, and
* therefore must be built multiple times. Making it a standalone `.c` file with `NPY_VISIBILITY_HIDDEN`
* symbols would require judicious use of `NPY_CPU_DISPATCH_DECLARE` and `NPY_CPU_DISPATCH_CURFX`, whi... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd_data.inc.src | /**
* This file is included by `_simd.dispatch.c.src`. Its contents are affected by the simd configuration, and
* therefore must be built multiple times. Making it a standalone `.c` file with `NPY_VISIBILITY_HIDDEN`
* symbols would require judicious use of `NPY_CPU_DISPATCH_DECLARE` and `NPY_CPU_DISPATCH_CURFX`, whi... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd_inc.h.src | #ifndef _SIMD_SIMD_INC_H_
#define _SIMD_SIMD_INC_H_
#include <Python.h>
#include "simd/simd.h"
#if NPY_SIMD
/************************************
** Types
************************************/
/**
* Gather all data types supported by the module.
*/
typedef union
{
// scalars
/**begin repeat
* #sfx = u... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd_arg.inc | /**
* This file is included by `_simd.dispatch.c.src`. Its contents are affected by the simd configuration, and
* therefore must be built multiple times. Making it a standalone `.c` file with `NPY_VISIBILITY_HIDDEN`
* symbols would require judicious use of `NPY_CPU_DISPATCH_DECLARE` and `NPY_CPU_DISPATCH_CURFX`, whi... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd.c | #include "_simd.h"
#include "numpy/npy_math.h"
static PyObject *
get_floatstatus(PyObject* NPY_UNUSED(self), PyObject *NPY_UNUSED(args))
{
return PyLong_FromLong(npy_get_floatstatus());
}
static PyObject *
clear_floatstatus(PyObject* NPY_UNUSED(self), PyObject *NPY_UNUSED(args))
{
npy_clear_floatstatus();
... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/_simd/_simd.dispatch.c.src | /*@targets #simd_test*/
#include "_simd.h"
#include "_simd_inc.h"
#if NPY_SIMD
#include "_simd_data.inc"
#include "_simd_convert.inc"
#include "_simd_vector.inc"
#include "_simd_arg.inc"
#include "_simd_easyintrin.inc"
//#########################################################################
//## Defining NPYV intr... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/nditer_api.c | /*
* This file implements most of the main API functions of NumPy's nditer.
* This excludes functions specialized using the templating system.
*
* Copyright (c) 2010-2011 by Mark Wiebe (mwwiebe@gmail.com)
* The University of British Columbia
*
* Copyright (c) 2011 Enthought, Inc
*
* See LICENSE.txt for the lic... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/calculation.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_CALCULATION_H_
#define NUMPY_CORE_SRC_MULTIARRAY_CALCULATION_H_
NPY_NO_EXPORT PyObject*
PyArray_ArgMax(PyArrayObject* self, int axis, PyArrayObject *out);
NPY_NO_EXPORT PyObject*
_PyArray_ArgMaxWithKeepdims(PyArrayObject* self, int axis, PyArrayObject *out, int keepdims);
NPY_NO_EXP... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/argfunc.dispatch.c.src | /* -*- c -*- */
/*@targets
** $maxopt baseline
** sse2 sse42 xop avx2 avx512_skx
** vsx2
** neon asimd
** vx vxe
**/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#include "simd/simd.h"
#include "numpy/npy_math.h"
#include "arraytypes.h"
#define MIN(a,b) (((a)<(b))?(a):(b))
#if NPY_SIMD
#if NPY_SIMD > 512 ||... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/descriptor.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_DESCRIPTOR_H_
#define NUMPY_CORE_SRC_MULTIARRAY_DESCRIPTOR_H_
/*
* In some API calls we wish to allow users to pass a DType class or a
* dtype instances with different meanings.
* This struct is mainly used for the argument parsing in
* `PyArray_DTypeOrDescrConverter`.
*/
typede... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/scalartypes.c.src | /* -*- c -*- */
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#ifndef _MULTIARRAYMODULE
#define _MULTIARRAYMODULE
#endif
#include "numpy/arrayobject.h"
#include "numpy/npy_math.h"
#include "numpy/halffloat.h"
#include "numpy/arrayscalars.h"
#incl... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/experimental_public_dtype_api.c | #include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _UMATHMODULE
#define _MULTIARRAYMODULE
#include <numpy/npy_common.h>
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"
#include "common.h"
#include "experimental_public_dtype_api.h"
#include "array_method.h"
#include "dtypemeta.h"
#... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/dtype_traversal.c | /*
* This file is similar to the low-level loops for data type transfer
* in `dtype_transfer.c` but for those which only require visiting
* a single array (and mutating it in-place).
*
* As of writing, it is only used for CLEARing, which means mainly
* Python object DECREF/dealloc followed by NULL'ing the data
*... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/descriptor.c | /* Array Descr Object */
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "numpy/npy_math.h"
#include "npy_config.h"
#include "npy_ctypes.h"
#include "... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/nditer_templ.c.src | /*
* This file implements the API functions for NumPy's nditer that
* are specialized using the templating system.
*
* Copyright (c) 2010-2011 by Mark Wiebe (mwwiebe@gmail.com)
* The University of British Columbia
*
* See LICENSE.txt for the license.
*/
/* Indicate that this .c file is allowed to include the h... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/einsum_sumprod.c.src | /*
* This file provides optimized sum of product implementations used internally
* by einsum.
*
* Copyright (c) 2011 by Mark Wiebe (mwwiebe@gmail.com)
* The University of British Columbia
*
* See LICENSE.txt for the license.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#include <... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/_multiarray_tests.c.src | /* -*-c-*- */
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _NPY_NO_DEPRECATIONS /* for NPY_CHAR */
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "numpy/npy_math.h"
#include "numpy/halffloat.h"
#include "common.h"
#include "npy_argparse.h"
... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/common.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "numpy/arrayobject.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "common.h"
#include "abstractdtypes.h"
#include "usertypes.h"
#include "npy_buffer.h"
#include "get_attr_st... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/can_cast_table.h | /*
* This file defines a compile time constant casting table for use in
* a few situations:
* 1. As a fast-path in can-cast (untested how much it helps).
* 2. To define the actual cast safety stored on the CastingImpl/ArrayMethod
* 3. For scalar math, since it also needs cast safety information.
*
* It is useful... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/arrayobject.h | #ifndef _MULTIARRAYMODULE
#error You should not include this
#endif
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAYOBJECT_H_
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAYOBJECT_H_
#ifdef __cplusplus
extern "C" {
#endif
extern NPY_NO_EXPORT npy_bool numpy_warn_if_no_mem_policy;
NPY_NO_EXPORT PyObject *
_strings_richcompare(PyArra... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/datetime_strings.c | /*
* This file implements string parsing and creation for NumPy datetime.
*
* Written by Mark Wiebe (mwwiebe@gmail.com)
* Copyright (c) 2011 by Enthought, Inc.
*
* See LICENSE.txt for the license.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Pytho... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/legacy_dtype_implementation.c | /*
* The only function exported here is `PyArray_LegacyCanCastTypeTo`, which
* is currently still in use when first registering a userdtype.
*
* The extremely limited use means that it can probably remain unmaintained
* until such a time where legay user dtypes are deprecated and removed
* entirely.
*/
#define N... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/_datetime.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY__DATETIME_H_
#define NUMPY_CORE_SRC_MULTIARRAY__DATETIME_H_
extern NPY_NO_EXPORT char const *_datetime_strings[NPY_DATETIME_NUMUNITS];
extern NPY_NO_EXPORT int _days_per_month_table[2][12];
NPY_NO_EXPORT void
numpy_pydatetime_import(void);
/*
* Returns 1 if the given year is a leap... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/dtypemeta.c | /* Array Descr Object */
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include <numpy/ndarraytypes.h>
#include <numpy/arrayscalars.h>
#include <numpy/npy_math.h>
#include "npy_pycompat.h"
#include "npy_import.h"
#includ... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/array_method.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAY_METHOD_H_
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAY_METHOD_H_
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#include <Python.h>
#include <numpy/ndarraytypes.h>
#ifdef __cplusplus
extern "C" {
#endif
#include "numpy/_dtype_api.h"
/*
* It would be nic... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/multiarraymodule.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_MULTIARRAYMODULE_H_
#define NUMPY_CORE_SRC_MULTIARRAY_MULTIARRAYMODULE_H_
NPY_VISIBILITY_HIDDEN extern PyObject * npy_ma_str_current_allocator;
NPY_VISIBILITY_HIDDEN extern PyObject * npy_ma_str_array;
NPY_VISIBILITY_HIDDEN extern PyObject * npy_ma_str_array_function;
NPY_VISIBILITY_H... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/arrayfunction_override.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#include <Python.h>
#include "structmember.h"
#include "npy_pycompat.h"
#include "get_attr_string.h"
#include "npy_import.h"
#include "multiarraymodule.h"
#include "arrayfunction_override.h"
/* Return the ndarray.__array_function__ method. */
s... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/usertypes.c | /*
Provide multidimensional arrays as a basic object type in python.
Based on Original Numeric implementation
Copyright (c) 1995, 1996, 1997 Jim Hugunin, hugunin@mit.edu
with contributions from many Numeric Python developers 1995-2004
Heavily modified in 2005 with inspiration from Numarray
by
Travis ... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/calculation.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include "numpy/arrayobject.h"
#include "lowlevel_strided_loops.h"
#include "dtypemeta.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "common.h"
#include "nu... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/flagsobject.c | /* Array Flags Object */
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include "numpy/arrayobject.h"
#include "arrayobject.h"
#include "numpy/arrayscalars.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/convert.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_CONVERT_H_
#define NUMPY_CORE_SRC_MULTIARRAY_CONVERT_H_
NPY_NO_EXPORT int
PyArray_AssignZero(PyArrayObject *dst,
PyArrayObject *wheremask);
#endif /* NUMPY_CORE_SRC_MULTIARRAY_CONVERT_H_ */
| 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/buffer.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "npy_buffer.h"
#include "common.h"
#include "numpy... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/arrayfunction_override.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAYFUNCTION_OVERRIDE_H_
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAYFUNCTION_OVERRIDE_H_
extern NPY_NO_EXPORT PyTypeObject PyArrayFunctionDispatcher_Type;
NPY_NO_EXPORT PyObject *
array__get_implementing_args(
PyObject *NPY_UNUSED(dummy), PyObject *positional_args);
NPY_NO_EXPORT P... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/strfuncs.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "numpy/arrayobject.h"
#include "npy_pycompat.h"
#include "npy_import.h"
#include "strfuncs.h"
static PyObject *PyArray_StrFunction = NULL;
static PyObject *PyArray_ReprFunction = NULL;
stat... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/getset.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_GETSET_H_
#define NUMPY_CORE_SRC_MULTIARRAY_GETSET_H_
extern NPY_NO_EXPORT PyGetSetDef array_getsetlist[];
#endif /* NUMPY_CORE_SRC_MULTIARRAY_GETSET_H_ */
| 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/array_method.c | /*
* This file implements an abstraction layer for "Array methods", which
* work with a specific DType class input and provide low-level C function
* pointers to do fast operations on the given input functions.
* It thus adds an abstraction layer around individual ufunc loops.
*
* Unlike methods, a ArrayMethod ca... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/shape.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "numpy/npy_math.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "ctors.h"
#include "... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/arraytypes.c.src | /* -*- c -*- */
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include <limits.h>
#include <assert.h>
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define _UMATHMODULE
#define _NPY_NO_DEPRECATIONS /* for NPY_CHAR */
#include "numpy/npy_common.h"
#include "numpy/arra... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/multiarraymodule.c | /*
Python Multiarray Module -- A useful collection of functions for creating and
using ndarrays
Original file
Copyright (c) 1995, 1996, 1997 Jim Hugunin, hugunin@mit.edu
Modified for numpy in 2005
Travis E. Oliphant
oliphant@ee.byu.edu
Brigham Young University
*/
#define NPY_NO_DEPRECATED_API NPY_API... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/vdot.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_VDOT_H_
#define NUMPY_CORE_SRC_MULTIARRAY_VDOT_H_
#include "common.h"
NPY_NO_EXPORT void
CFLOAT_vdot(char *, npy_intp, char *, npy_intp, char *, npy_intp, void *);
NPY_NO_EXPORT void
CDOUBLE_vdot(char *, npy_intp, char *, npy_intp, char *, npy_intp, void *);
NPY_NO_EXPORT void
CLON... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/dtypemeta.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_DTYPEMETA_H_
#define NUMPY_CORE_SRC_MULTIARRAY_DTYPEMETA_H_
#include "array_method.h"
#include "dtype_traversal.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "numpy/_dtype_api.h"
/* DType flags, currently private, since we may just expose functions
Other publicly visible f... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/common_dtype.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "numpy/npy_common.h"
#include "numpy/arrayobject.h"
#include "common_dtype.h"
#include "convert_datatype.h"
#include "dtypemeta.h"
#include "abstractdtypes.h"
/*
* This file defines all lo... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/conversion_utils.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_CONVERSION_UTILS_H_
#define NUMPY_CORE_SRC_MULTIARRAY_CONVERSION_UTILS_H_
#include "numpy/ndarraytypes.h"
NPY_NO_EXPORT int
PyArray_IntpConverter(PyObject *obj, PyArray_Dims *seq);
NPY_NO_EXPORT int
PyArray_IntpFromPyIntConverter(PyObject *o, npy_intp *val);
NPY_NO_EXPORT int
PyArr... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/abstractdtypes.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include "numpy/ndarraytypes.h"
#include "numpy/arrayobject.h"
#include "abstractdtypes.h"
#include "array_coercion.h"
#include "common.h"
static inline PyArray_Descr *
int... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/datetime.c | /*
* This file implements core functionality for NumPy datetime.
*
* Written by Mark Wiebe (mwwiebe@gmail.com)
* Copyright (c) 2011 by Enthought, Inc.
*
* See LICENSE.txt for the license.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#in... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/conversion_utils.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "numpy/npy_math.h"
#include "npy_config.h"
#include "npy_pycompat.h"
#include "common.h"
#include "ar... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/datetime_busday.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAY_H_
#define NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAY_H_
/*
* This is the 'busday_offset' function exposed for calling
* from Python.
*/
NPY_NO_EXPORT PyObject *
array_busday_offset(PyObject *NPY_UNUSED(self),
PyObject *args, PyObject *kwds);
/... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/arraytypes.h.src | #ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAYTYPES_H_
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAYTYPES_H_
#include "common.h"
NPY_NO_EXPORT int
set_typeinfo(PyObject *dict);
/* needed for blasfuncs */
NPY_NO_EXPORT void
FLOAT_dot(char *, npy_intp, char *, npy_intp, char *, npy_intp, void *);
NPY_NO_EXPORT void
CFLOAT_dot(cha... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/alloc.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_ALLOC_H_
#define NUMPY_CORE_SRC_MULTIARRAY_ALLOC_H_
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#include "numpy/ndarraytypes.h"
#define NPY_TRACE_DOMAIN 389047
NPY_NO_EXPORT PyObject *
_get_madvise_hugepage(PyObject *NPY_UNUSED(self), PyObject *NPY_UNUSED... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/ctors.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_CTORS_H_
#define NUMPY_CORE_SRC_MULTIARRAY_CTORS_H_
NPY_NO_EXPORT PyObject *
PyArray_NewFromDescr(
PyTypeObject *subtype, PyArray_Descr *descr, int nd,
npy_intp const *dims, npy_intp const *strides, void *data,
int flags, PyObject *obj);
NPY_NO_EXPORT PyObject... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/experimental_public_dtype_api.h | /*
* This file exports the experimental dtype API as exposed via the
* `numpy/_core/include/numpy/experimental_dtype_api.h`
* header file.
*
* This file is a stub, all important definitions are in the code file.
*
* NOTE: This file is considered in-flux, exploratory and transitional.
*/
#ifndef NUMPY_CORE_SRC_... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/methods.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_METHODS_H_
#define NUMPY_CORE_SRC_MULTIARRAY_METHODS_H_
#include "npy_import.h"
extern NPY_NO_EXPORT PyMethodDef array_methods[];
/*
* Pathlib support, takes a borrowed reference and returns a new one.
* The new object may be the same as the old.
*/
static inline PyObject *
NpyP... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/datetime_busdaycal.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAYCAL_H_
#define NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAYCAL_H_
/*
* A list of holidays, which should be sorted, not contain any
* duplicates or NaTs, and not include any days already excluded
* by the associated weekmask.
*
* The data is manually managed with PyArr... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/methods.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>
#include "numpy/arrayobject.h"
#include "numpy/arrayscalars.h"
#include "arrayobject.h"
#include "arrayfunction_override.h"
#include "npy_argparse.h"
#include "npy_config.h"
... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/einsum_sumprod.h | #ifndef NUMPY_CORE_SRC_MULTIARRAY_EINSUM_SUMPROD_H_
#define NUMPY_CORE_SRC_MULTIARRAY_EINSUM_SUMPROD_H_
#include <numpy/npy_common.h>
typedef void (*sum_of_products_fn)(int, char **, npy_intp const*, npy_intp);
NPY_VISIBILITY_HIDDEN sum_of_products_fn
get_sum_of_products_function(int nop, int type_num,
... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/array_assign_array.c | /*
* This file implements assignment from an ndarray to another ndarray.
*
* Written by Mark Wiebe (mwwiebe@gmail.com)
* Copyright (c) 2011 by Enthought, Inc.
*
* See LICENSE.txt for the license.
*/
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define _UMATHMODULE
#define PY_SSIZE_T_C... | 0 |
public_repos/numpy/numpy/_core/src | public_repos/numpy/numpy/_core/src/multiarray/array_coercion.c | #define NPY_NO_DEPRECATED_API NPY_API_VERSION
#define _MULTIARRAYMODULE
#define _UMATHMODULE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "numpy/npy_3kcompat.h"
#include "lowlevel_strided_loops.h"
#include "numpy/arrayobject.h"
#include "numpy/npy_math.h"
#include "descriptor.h"
#include "convert_datatype.... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.