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-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_dict.c | /*--------------------------------------------------------------------------*\
* -----===== HashTable =====-----
*
* Author: Keith Pomakis (pomakis@pobox.com)
* Date: August, 1998
* Released to the public domain.
*
*--------------------------------------------------------------------------
*... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_descriptor.h | #ifndef _NPY_DESCRIPTOR_H_
#define _NPY_DESCRIPTOR_H_
#include "npy_object.h"
#define NpyDataType_HASFIELDS(obj) ((obj)->names != NULL)
#define NpyDataType_FLAGCHK(dtype, flag) \
(((dtype)->flags & (flag)) == (flag))
#define NpyDataType_REFCHK(dtype) ... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_flagsobject.c | /*
* npy_flagsobject.c -
*
*/
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
/*
* Check whether the given array is stored contiguously
* (row-wise) in memory.
*
* 0-strided arrays are not contiguous (even if dimension == 1)
*/
static int
_IsContiguous(NpyArray *ap)
{
npy_intp... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_math.h | #ifndef __NPY_MATH_H_
#define __NPY_MATH_H_
#include <math.h>
#include "npy_common.h"
#if defined(__cplusplus)
extern "C" {
#endif
/*
* NAN and INFINITY like macros (same behavior as glibc for NAN, same as C99
* for INFINITY)
*
* XXX: I should test whether INFINITY and NAN are available on the platform
*/
NPY_I... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_index.c | /* npy_index.c */
#include "npy_index.h"
#include "npy_object.h"
#include "npy_arrayobject.h"
#include "npy_api.h"
NDARRAY_API void
NpyArray_IndexDealloc(NpyIndex* indexes, int n)
{
int i;
NpyIndex *index = indexes;
for (i=0; i<n; i++) {
switch(index->type) {
case NPY_INDEX_INTP_ARRAY:
... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_refcount.c | /*
* npy_refcount.c -
*
*/
#include <stdlib.h>
#include <string.h>
#include "npy_config.h"
#include "npy_api.h"
#include "npy_dict.h"
#include "npy_iterators.h"
#include "npy_arrayobject.h"
#include "npy_descriptor.h"
/* Incref all objects found at this record */
/*NUMPY_API
*/
NDARRAY_API void
NpyArray_Item_I... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_number.c | /*
* npy_number.c -
*
*/
#include <stdlib.h>
#include "npy_config.h"
#include "npy_api.h"
#include "npy_ufunc_object.h"
#include "npy_number.h"
#include "npy_arrayobject.h"
NumericOps n_ops = {
NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL,
NULL, NULL, N... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_ufunc_object.h | #ifndef _NPY_UFUNC_OBJECT_H_
#define _NPY_UFUNC_OBJECT_H_
#include <math.h>
#include "npy_object.h"
#include "npy_iterators.h"
#if defined(__cplusplus)
extern "C" {
#endif
typedef void (*NpyUFuncGenericFunction) (char **, npy_intp *,
npy_intp *, void *);
#define NO_UFUN... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_ctors.c | /*
* npy_ctors.c -
*
* */
#include <stdlib.h>
#include <ctype.h>
#include <memory.h>
#include "npy_config.h"
#include "npy_utils.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
#include "npy_internal.h"
/* TODO: Remove these declarations once PyArray_INCREF, etc refactored. */
extern int PyArray_INCREF(void... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_getset.c | /*
* npy_getset.c -
*
*/
#include <stdlib.h>
#include <memory.h>
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
NDARRAY_API int
NpyArray_SetShape(NpyArray *self, NpyArray_Dims *newdims)
{
int nd;
NpyArray *ret;
ret = NpyArray_Newshape(self, newdims, NPY_CORDER);
if (r... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_common.h | #ifndef _NPY_COMMON_H_
#define _NPY_COMMON_H_
#include "npy_config.h"
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(_MSC_VER)
#define NPY_INLINE __inline
#elif defined(__GNUC__)
#define NPY_INLINE inline
#else
#define NPY_INLINE
#endif
#ifdef _WIN32
#ifdef BUILDING_NDARRAY
#d... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_scalarmath.h.src | /* -*- c -*- */
/* These functions support the scalar math module which adds faster math
for array scalars that does not go through the ufunc machinery
but still supports error-modes.
*/
#include "npy_api.h"
#include "npy_ufunc_object.h"
#if defined(__cplusplus)
extern "C" {
#endif
//static int ulonglong_ov... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_buffer.h | /* npy_buffer.h */
#if !defined(_NPY_BUFFER_H)
#define _NPY_BUFFER_H
#if defined(__cplusplus)
extern "C" {
#endif
/* Additional per-array data required for providing the buffer interface */
typedef struct {
char *format;
int ndim;
size_t *strides;
size_t *shape;
} npy_buffer_info_t;
/* Fast string '... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_sortmodule.h.src |
#if !defined(NPY_SORTMODULE_H_SRC)
#define NPY_SORTMODULE_H_SRC
#if defined(__cplusplus)
extern "C" {
#endif
NDARRAY_API void npy_add_sortfuncs(void);
/**begin repeat
*
* #TYPE = BOOL, BYTE, UBYTE, SHORT, USHORT, INT, UINT, LONG, ULONG,
* LONGLONG, ULONGLONG, FLOAT, DOUBLE, LONGDOUBLE, CFLOAT,
* ... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_iterators.c | #include <stdlib.h>
#include <memory.h>
#include <stdarg.h>
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
#include "npy_iterators.h"
#include "npy_internal.h"
#include "npy_index.h"
/* XXX: We should be getting this from an include. */
#ifndef MAX
#define MAX(a,b) ((a > b) ? (a) : (b))
#e... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_methods.c | /*
* npy_methods.c -
*
*/
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
/* steals typed reference */
/*
Get a subset of bytes from each element of the array
*/
NDARRAY_API NpyArray *
NpyArray_GetField(NpyArray *self, NpyArray_Descr *typed, int offset)
{
NpyArray *ret = NULL;
... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_defs.h | #ifndef _NPY_DEFS_H_
#define _NPY_DEFS_H_
#include <stdio.h>
#include "npy_common.h"
#include "npy_endian.h"
#include "npy_config.h"
#if NPY_HAVE_STDINT_H
#include <stdint.h>
#endif
#if defined(__cplusplus)
extern "C" {
#endif
/*
* This file contains defines and basic types used by the core
* library.
*/
/* VA... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_endian.h | #ifndef _NPY_ENDIAN_H_
#define _NPY_ENDIAN_H_
#if defined(__cplusplus)
extern "C" {
#endif
/*
* NPY_BYTE_ORDER is set to the same value as BYTE_ORDER set by glibc in
* endian.h
*/
#ifdef NPY_HAVE_ENDIAN_H
/* Use endian.h if available */
#include <endian.h>
#define NPY_BYTE_ORDER __BYTE_ORDER
#def... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_convert.c | /*
* npy_convert.c -
*
*/
#include <stdlib.h>
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
#include "npy_descriptor.h"
NDARRAY_API NpyArray *
NpyArray_View(NpyArray *self, NpyArray_Descr *type, void *subtype)
{
NpyArray *newArr = NULL;
Npy_INCREF(NpyArray_DESCR(self));
n... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_buffer.c | /* npy_buffer.c */
#include <stdlib.h>
#include "npy_api.h"
#include "npy_dict.h"
#include "npy_buffer.h"
#include "npy_arrayobject.h"
#include "npy_internal.h"
#include "npy_os.h"
/*
* This module doesn't specifically implement the buffer protocol but provides supporting
* functions for each interface that imple... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_common.c | /*
* npy_common.c -
*
*/
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
extern int PyArray_INCREF(void *); /* TODO: Make these into interface functions */
extern int PyArray_XDECREF(void *);
/* TODO: We should be getting this from an include. */
#ifndef MAX
#define MAX(a,b) ((a >... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_datetime.c | /*
* npy_datetime.c -
*
*/
#include "npy_config.h"
#include "npy_api.h"
/* For defaults and errors */
#define NPY_FR_ERR -1
/* Offset for number of days between Dec 31, 1969 and Jan 1, 0001
* Assuming Gregorian calendar was always in effect (proleptic Gregorian
* calendar)
*/
/* Calendar Structure for Par... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_api.h | #ifndef _NPY_API_H_
#define _NPY_API_H_
#include "assert.h"
#include "npy_defs.h"
#include "npy_descriptor.h"
#include "npy_iterators.h"
#include "npy_index.h"
#if defined(__cplusplus)
extern "C" {
#endif
#define NpyArray_UCS4 npy_ucs4
#define NpyDataType_FLAGCHK(dtype, flag) \
(((dtype)->flags &... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_arrayobject.h | #ifndef _NPY_ARRAYOBJECT_H_
#define _NPY_ARRAYOBJECT_H_
#include "npy_object.h"
#include "npy_defs.h"
#if defined(__cplusplus)
extern "C" {
#endif
struct NpyArray {
NpyObject_HEAD
char *data; /* pointer to raw data buffer */
int nd; /* number of dimensions, also called ndim ... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_cpu.h | /*
* This set (target) cpu specific macros:
* - Possible values:
* NPY_CPU_X86
* NPY_CPU_AMD64
* NPY_CPU_PPC
* NPY_CPU_PPC64
* NPY_CPU_SPARC
* NPY_CPU_S390
* NPY_CPU_IA64
* NPY_CPU_HPPA
* ... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_funcs.c.src | /* -*- c -*- */
#include "npy_defs.h"
#include "npy_math.h"
#include "npy_funcs.h"
/*
* 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.
*/
/*
*********************************************... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_scalarmath.c.src | /* -*- c -*- */
/* These functions support the scalar math module which adds faster math
for array scalars that does not go through the ufunc machinery
but still supports error-modes.
*/
#include "npy_api.h"
#include "npy_config.h"
#include "npy_common.h"
#include "npy_ufunc_object.h"
#include "npy_utils.h"
#... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_number.h | #ifndef _NPY_NUMBER_H_
#define _NPY_NUMBER_H_
#include "npy_object.h"
#include "npy_index.h"
#if defined(__cplusplus)
extern "C" {
#endif
struct NpyUFuncObject;
struct NumericOps {
struct NpyUFuncObject *add;
struct NpyUFuncObject *subtract;
struct NpyUFuncObject *multiply;
struct NpyUFuncObject *... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_dict.h | /*--------------------------------------------------------------------------*\
* -----===== HashTable =====-----
*
* Author: Keith Pomakis (pomakis@pobox.com)
* Date: August, 1998
* Released to the public domain.
*
*--------------------------------------------------------------------------
*... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_calculation.h | #ifndef _NPY_CALCULATION_H_
#define _NPY_CALCULATION_H_
#if defined(__cplusplus)
extern "C" {
#endif
struct NpyArray;
NDARRAY_API struct NpyArray
*NpyArray_Conjugate(struct NpyArray *self, struct NpyArray *out);
NDARRAY_API struct NpyArray
*NpyArray_ArgMax(NpyArray *op, int axis, NpyArray *out);
NDARRAY_API str... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_shape.c | /* npy_shape.c */
#include <stdlib.h>
#include <memory.h>
#include "npy_config.h"
#include "npy_object.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
static int
_check_ones(NpyArray *self, int newnd, npy_intp* newdims, npy_intp *strides);
static int
_fix_unknown_dimension(NpyArray_Dims *newshape, npy_intp s_... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_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-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_os.c | #include <locale.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include "npy_config.h"
#include "npy_math.h"
#include "npy_os.h"
#include "npy_api.h"
/*
* From the C99 standard, section 7.19.6: The exponent always contains at least
* two digits, and only as man... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_math.c.src | /*
* A small module to implement missing C99 math capabilities required by numpy
*
* Please keep this independant of python ! Only basic types (npy_longdouble)
* can be used, otherwise, pure C, without any use of Python facilities
*
* How to add a function to this section
* -------------------------------------
... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_arrayobject.c | /* npy_arrayobject.c */
#include <stdlib.h>
#include <string.h>
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
#include "npy_iterators.h"
#include "npy_internal.h"
#include "npy_dict.h"
/* TODO: Make these into interface functions */
extern int PyArray_INCREF(void *);
extern int PyArray_XD... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_index.h | #ifndef _NPY_INDEX_H_
#define _NPY_INDEX_H_
#include "npy_defs.h"
#if defined(__cplusplus)
extern "C" {
#endif
/*
* Structure for describing a slice without a stop.
*/
typedef struct NpyIndexSliceNoStop {
npy_intp start;
npy_intp step;
} NpyIndexSliceNoStop;
/*
* Structure for describing a slice.
*/
typ... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_conversion_utils.c | /*
* npy_conversion_util.c -
*
*/
#include "npy_config.h"
#include "npy_api.h"
/*
* Typestr converter
*/
NDARRAY_API int
NpyArray_TypestrConvert(int itemsize, int gentype)
{
int newtype = gentype;
if (gentype == NPY_GENBOOLLTR) {
if (itemsize == 1) {
newtype = NPY_BOOL;
}
... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_loops.c.src | /* -*- c -*- */
#include "npy_config.h"
#include "npy_defs.h"
#include "npy_ufunc_object.h"
#include "npy_math.h"
#include "npy_os.h"
#include "npy_loops.h"
/*
*****************************************************************************
** UFUNC LOOPS **... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_internal.h | #ifndef _NPY_INTERNAL_H_
#define _NPY_INTERNAL_H_
#if defined(__cplusplus)
extern "C" {
#endif
extern struct NpyInterface_WrapperFuncs _NpyArrayWrapperFuncs;
#define NpyInterface_ArrayNewWrapper(a, b, c, d, e, f) \
(NULL != _NpyArrayWrapperFuncs.array_new_wrapper ? ... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_item_selection.c | #include <stdlib.h>
#include <memory.h>
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
/* TODO: Get rid of use of PyArray_INCREF here */
extern int PyArray_INCREF(void *);
NDARRAY_API NpyArray *
NpyArray_TakeFrom(NpyArray *self0, NpyArray *indices0, int axis,
NpyArray *r... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_loops.h.src | /* -*- c -*- */
/*
* vim:syntax=c
*/
#ifndef _NPY_LOOPS_H_
#define _NPY_LOOPS_H_
#include "npy_os.h"
#include "npy_utils.h"
#include "npy_ufunc_object.h"
#if defined(__cplusplus)
extern "C" {
#endif
#define npy_BOOL_invert npy_BOOL_logical_not
#define npy_BOOL_negative npy_BOOL_logical_not
#define npy_BOOL_add np... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_convert_datatype.c | /*
* npy_convert_datatype.c -
*
*/
#include <stdlib.h>
#include <memory.h>
#include "npy_config.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
#include "npy_descriptor.h"
/*
* Reference counts:
* copyswapn is used which increases and decreases reference counts for OBJECT
* arrays.
* All that needs to h... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_sortmodule.c.src | /* -*- 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-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_ufunc_object.c | /*
* Python Universal Functions Object -- CPython-independent portion
*
*/
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include "npy_config.h"
#include "npy_common.h"
#include "npy_dict.h"
#include "npy_api.h"
#include "npy_arrayobject.h"
#include "npy_iterators.h"
#include "npy_ufunc_object.h"
#inc... | 0 |
public_repos/numpy-refactor/libndarray | public_repos/numpy-refactor/libndarray/src/npy_funcs.h.src | /* -*- c -*- */
#if !defined(_npy_funcs_h_included)
#define _npy_funcs_h_included
#include "npy_common.h"
/*
* 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.
*/
/*
********************... | 0 |
public_repos/numpy-refactor/branding | public_repos/numpy-refactor/branding/icons/numpylogoicon.svg | <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
<!ENTITY ns_ai "htt... | 0 |
public_repos/numpy-refactor/branding | public_repos/numpy-refactor/branding/icons/numpylogo.svg | <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 51448) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_extend "http://ns.adobe.com/Extensibility/1.0/">
<!ENTITY ns_ai "htt... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/ufuncs.rst.txt | BUFFERED General Ufunc explanation
==================================
.. note::
This was implemented already, but the notes are kept here for historical
and explanatory purposes.
We need to optimize the section of ufunc code that handles mixed-type
and misbehaved arrays. In particular, we need to fix it so that... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/CAPI.rst.txt | ===============
C-API for NumPy
===============
:Author: Travis Oliphant
:Discussions to: `numpy-discussion@scipy.org`__
:Created: October 2005
__ http://www.scipy.org/Mailing_Lists
The C API of NumPy is (mostly) backward compatible with Numeric.
There are a few non-standard Numeric usages (that w... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/EXAMPLE_DOCSTRING.rst.txt | .. Here follows an example docstring for a C-function. Note that the
signature is given. This is done only for functions written is C,
since Python cannot find their signature by inspection. For all
other functions, start with the one line description.
multivariate_normal(mean, cov[, shape])
Draw samples... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/summarize.py | #!/usr/bin/env python
"""
summarize.py
Show a summary about which Numpy functions are documented and which are not.
"""
import os, glob, re, sys, inspect, optparse
sys.path.append(os.path.join(os.path.dirname(__file__), 'sphinxext'))
from sphinxext.phantom_import import import_phantom_module
from sphinxext.autosumm... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/HOWTO_DOCUMENT.rst.txt | ====================================
A Guide to NumPy/SciPy Documentation
====================================
.. Contents::
.. Note::
For an accompanying example, see `example.py
<http://github.com/numpy/numpy/blob/master/doc/example.py>`_.
Overview
--------
In general, we follow the standard Python style co... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/HOWTO_RELEASE.rst.txt | This file gives an overview of what is necessary to build binary releases for
NumPy on OS X. Windows binaries are built here using Wine, they can of course
also be built on Windows itself. Building OS X binaries on another platform is
not possible.
Current build and release info
==============================
The curr... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/Makefile | # Makefile for Sphinx documentation
#
PYVER =
PYTHON = python$(PYVER)
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = LANG=C sphinx-build
PAPER =
FILES=
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXO... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/example.py | """This is the docstring for the example.py module. Modules names should
have short, all-lowercase names. The module name may have underscores if
this improves readability.
Every module should have a docstring at the very top of the file. The
module's docstring may extend over multiple lines. If your docstring doe... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/HOWTO_MERGE_WIKI_DOCS.rst.txt | ========================================
Merging documentation back from Doc-Wiki
========================================
This document describes how to merge back docstring edits from the pydocweb
wiki (at http://docs.scipy.org/doc/) to NumPy/SciPy trunk.
Basic steps
-----------
It works like this, both for NumPy a... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/TESTS.rst.txt | .. -*- rest -*-
NumPy/SciPy Testing Guidelines
==============================
.. contents::
Introduction
''''''''''''
SciPy uses the `Nose testing system
<http://www.somethingaboutorange.com/mrl/projects/nose>`__, with some
minor convenience features added. Nose is an extension of the unit
testing framework offere... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/HOWTO_BUILD_DOCS.rst.txt | =========================================
Building the NumPy API and reference docs
=========================================
We currently use Sphinx_ for generating the API and reference
documentation for Numpy. You will need Sphinx 1.0.1 or newer.
If you only want to get the documentation, note that pre-built
vers... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/DISTUTILS.rst.txt | .. -*- rest -*-
NumPy Distutils - Users Guide
=============================
.. contents::
SciPy structure
'''''''''''''''
Currently SciPy project consists of two packages:
- NumPy (previously called SciPy core) --- it provides packages like:
+ numpy.distutils - extension to Python distutils
+ numpy.f2py - a t... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/records.rst.txt |
The ndarray supports records intrinsically. None of the default
descriptors have fields defined, but you can create new descriptors
easily. The ndarray even supports nested arrays of records inside of
a record. Any record that the array protocol can describe can be
represented. The ndarray also supports partial fi... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/Py3K.rst.txt | .. -*-rst-*-
*********************************************
Developer notes on the transition to Python 3
*********************************************
:date: 2010-07-11
:author: Charles R. Harris
:author: Pauli Virtanen
General
=======
Numpy has now been ported to Python 3.
Some glitches may still be present; howe... | 0 |
public_repos/numpy-refactor | public_repos/numpy-refactor/doc/postprocess.py | #!/usr/bin/env python
"""
%prog MODE FILES...
Post-processes HTML and Latex files output by Sphinx.
MODE is either 'html' or 'tex'.
"""
import re, optparse
def main():
p = optparse.OptionParser(__doc__)
options, args = p.parse_args()
if len(args) < 1:
p.error('no mode given')
mode = args.po... | 0 |
public_repos/numpy-refactor/doc | public_repos/numpy-refactor/doc/source/bugs.rst | **************
Reporting bugs
**************
File bug reports or feature requests, and make contributions
(e.g. code patches), by submitting a "ticket" on the Trac pages:
- Numpy Trac: http://scipy.org/scipy/numpy
Because of spam abuse, you must create an account on our Trac in order
to submit a ticket, then click o... | 0 |
public_repos/numpy-refactor/doc | public_repos/numpy-refactor/doc/source/glossary.rst | ********
Glossary
********
.. toctree::
.. glossary::
.. automodule:: numpy.doc.glossary
Jargon
------
.. automodule:: numpy.doc.jargon
| 0 |
public_repos/numpy-refactor/doc | public_repos/numpy-refactor/doc/source/contents.rst | #####################
Numpy manual contents
#####################
.. toctree::
user/index
reference/index
dev/index
release
about
bugs
license
glossary
| 0 |
public_repos/numpy-refactor/doc | public_repos/numpy-refactor/doc/source/about.rst | About NumPy
===========
`NumPy <http://www.scipy.org/NumpPy/>`__ is the fundamental package
needed for scientific computing with Python. This package contains:
- a powerful N-dimensional :ref:`array object <arrays>`
- sophisticated :ref:`(broadcasting) functions <ufuncs>`
- basic :ref:`linear algebra functions <routi... | 0 |
public_repos/numpy-refactor/doc | public_repos/numpy-refactor/doc/source/release.rst | *************
Release Notes
*************
.. include:: ../release/1.3.0-notes.rst
| 0 |
public_repos/numpy-refactor/doc | public_repos/numpy-refactor/doc/source/conf.py | # -*- coding: utf-8 -*-
import sys, os, re
# Check Sphinx version
import sphinx
if sphinx.__version__ < "1.0.1":
raise RuntimeError("Sphinx 1.0.1 or newer required")
needs_sphinx = '1.0'
# -----------------------------------------------------------------------------
# General configuration
# -------------------... | 0 |
public_repos/numpy-refactor/doc | public_repos/numpy-refactor/doc/source/license.rst | *************
Numpy License
*************
Copyright (c) 2005, NumPy Developers
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.char.rst | String operations
*****************
.. currentmodule:: numpy.core.defchararray
This module provides a set of vectorized string operations for arrays
of type `numpy.string_` or `numpy.unicode_`. All of them are based on
the string methods in the Python standard library.
String operations
-----------------
.. autos... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/arrays.scalars.rst | .. _arrays.scalars:
*******
Scalars
*******
.. currentmodule:: numpy
Python defines only one type of a particular data class (there is only
one integer type, one floating-point type, etc.). This can be
convenient in applications that don't need to be concerned with all
the ways data can be represented in a computer.... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.bitwise.rst | Binary operations
*****************
.. currentmodule:: numpy
Elementwise bit operations
--------------------------
.. autosummary::
:toctree: generated/
bitwise_and
bitwise_or
bitwise_xor
invert
left_shift
right_shift
Bit packing
-----------
.. autosummary::
:toctree: generated/
packbits... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/distutils.rst | **********************************
Packaging (:mod:`numpy.distutils`)
**********************************
.. module:: numpy.distutils
NumPy provides enhanced distutils functionality to make it easier to
build and install sub-packages, auto-generate code, and extension
modules that use Fortran-compiled libraries. To us... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/c-api.array.rst | Array API
=========
.. sectionauthor:: Travis E. Oliphant
| The test of a first-rate intelligence is the ability to hold two
| opposed ideas in the mind at the same time, and still retain the
| ability to function.
| --- *F. Scott Fitzgerald*
| For a successful technology, reality must take precedence... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/c-api.rst | .. _c-api:
###########
Numpy C-API
###########
.. sectionauthor:: Travis E. Oliphant
| Beware of the man who won't be bothered with details.
| --- *William Feather, Sr.*
| The truth is out there.
| --- *Chris Carter, The X Files*
NumPy provides a C-API to enable users to extend the system and get
acce... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.numarray.rst | **********************************************
Numarray compatibility (:mod:`numpy.numarray`)
**********************************************
.. automodule:: numpy.numarray
| 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.indexing.rst | .. _routines.indexing:
Indexing routines
=================
.. seealso:: :ref:`Indexing <arrays.indexing>`
.. currentmodule:: numpy
Generating index arrays
-----------------------
.. autosummary::
:toctree: generated/
c_
r_
s_
nonzero
where
indices
ix_
ogrid
unravel_index
diag_indic... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/swig.rst | **************
Numpy and SWIG
**************
.. sectionauthor:: Bill Spotz
.. toctree::
:maxdepth: 2
swig.interface-file
swig.testing
| 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.financial.rst | Financial functions
*******************
.. currentmodule:: numpy
Simple financial functions
--------------------------
.. autosummary::
:toctree: generated/
fv
pv
npv
pmt
ppmt
ipmt
irr
mirr
nper
rate
| 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/arrays.dtypes.rst | .. currentmodule:: numpy
.. _arrays.dtypes:
**********************************
Data type objects (:class:`dtype`)
**********************************
A data type object (an instance of :class:`numpy.dtype` class)
describes how the bytes in the fixed-size block of memory
corresponding to an array item should be interp... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.err.rst | Floating point error handling
*****************************
.. currentmodule:: numpy
Setting and getting error handling
----------------------------------
.. autosummary::
:toctree: generated/
seterr
geterr
seterrcall
geterrcall
errstate
Internal functions
------------------
.. autosummary::
... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/maskedarray.rst | .. _maskedarray:
*************
Masked arrays
*************
Masked arrays are arrays that may have missing or invalid entries.
The :mod:`numpy.ma` module provides a nearly work-alike replacement for numpy
that supports data arrays with masks.
.. index::
single: masked arrays
.. toctree::
:maxdepth: 2
maske... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/maskedarray.generic.rst | .. currentmodule:: numpy.ma
.. _maskedarray.generic:
The :mod:`numpy.ma` module
==========================
Rationale
---------
Masked arrays are arrays that may have missing or invalid entries.
The :mod:`numpy.ma` module provides a nearly work-alike replacement for numpy
that supports data arrays with masks.
W... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.random.rst | .. _routines.random:
Random sampling (:mod:`numpy.random`)
*************************************
.. currentmodule:: numpy.random
Simple random data
==================
.. autosummary::
:toctree: generated/
rand
randn
randint
random_integers
random_sample
bytes
Permutations
============
.. autos... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.dtype.rst | .. _routines.dtype:
Data type routines
==================
.. currentmodule:: numpy
.. autosummary::
:toctree: generated/
can_cast
common_type
obj2sctype
Creating data types
-------------------
.. autosummary::
:toctree: generated/
dtype
format_parser
Data type information
-----------------... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.ctypeslib.rst | ***********************************************************
C-Types Foreign Function Interface (:mod:`numpy.ctypeslib`)
***********************************************************
.. currentmodule:: numpy.ctypeslib
.. autofunction:: as_array
.. autofunction:: as_ctypes
.. autofunction:: ctypes_load_library
.. autofun... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.array-creation.rst | .. _routines.array-creation:
Array creation routines
=======================
.. seealso:: :ref:`Array creation <arrays.creation>`
.. currentmodule:: numpy
Ones and zeros
--------------
.. autosummary::
:toctree: generated/
empty
empty_like
eye
identity
ones
ones_like
zeros
zeros_like
Fr... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.window.rst | Window functions
================
.. currentmodule:: numpy
Various windows
---------------
.. autosummary::
:toctree: generated/
bartlett
blackman
hamming
hanning
kaiser
| 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/c-api.types-and-structures.rst | *****************************
Python Types and C-Structures
*****************************
.. sectionauthor:: Travis E. Oliphant
Several new types are defined in the C-code. Most of these are
accessible from Python, but a few are not exposed due to their limited
use. Every new Python type has an associated :ctype:`PyO... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.statistics.rst | Statistics
==========
.. currentmodule:: numpy
Extremal values
---------------
.. autosummary::
:toctree: generated/
amin
amax
nanmax
nanmin
ptp
Averages and variances
----------------------
.. autosummary::
:toctree: generated/
average
mean
median
std
var
Correlating
------... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.linalg.rst | .. _routines.linalg:
Linear algebra (:mod:`numpy.linalg`)
************************************
.. currentmodule:: numpy
Matrix and vector products
--------------------------
.. autosummary::
:toctree: generated/
dot
vdot
inner
outer
tensordot
linalg.matrix_power
kron
Decompositions
--------... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.testing.rst | Test Support (:mod:`numpy.testing`)
===================================
.. currentmodule:: numpy.testing
Common test support for all numpy test scripts.
This single module should provide all the common functionality for numpy
tests in a single location, so that test scripts can just import it and
work right away.
... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.logic.rst | Logic functions
***************
.. currentmodule:: numpy
Truth value testing
-------------------
.. autosummary::
:toctree: generated/
all
any
Array contents
--------------
.. autosummary::
:toctree: generated/
isfinite
isinf
isnan
isneginf
isposinf
Array type testing
------------------... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.other.rst | Miscellaneous routines
**********************
.. toctree::
.. currentmodule:: numpy
Buffer objects
--------------
.. autosummary::
:toctree: generated/
getbuffer
newbuffer
Performance tuning
------------------
.. autosummary::
:toctree: generated/
alterdot
restoredot
setbufsize
getbufsize
| 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/index.rst | .. _reference:
###############
NumPy Reference
###############
:Release: |version|
:Date: |today|
.. module:: numpy
This reference manual details functions, modules, and objects
included in Numpy, describing what they are and what they do.
For learning how to use NumPy, see also :ref:`user`.
.. toctree::
:maxd... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.emath.rst | Mathematical functions with automatic domain (:mod:`numpy.emath`)
***********************************************************************
.. currentmodule:: numpy
.. note:: :mod:`numpy.emath` is a preferred alias for :mod:`numpy.lib.scimath`,
available after :mod:`numpy` is imported.
.. automodule:: numpy.... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/internals.rst | ***************
Numpy internals
***************
.. toctree::
internals.code-explanations
.. automodule:: numpy.doc.internals
| 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.fft.rst | .. _routines.fft:
.. automodule:: numpy.fft
| 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/routines.dual.rst | Optionally Scipy-accelerated routines (:mod:`numpy.dual`)
*********************************************************
.. automodule:: numpy.dual
Linear algebra
--------------
.. currentmodule:: numpy.linalg
.. autosummary::
cholesky
det
eig
eigh
eigvals
eigvalsh
inv
lstsq
norm
pinv
s... | 0 |
public_repos/numpy-refactor/doc/source | public_repos/numpy-refactor/doc/source/reference/arrays.indexing.rst | .. _arrays.indexing:
Indexing
========
.. sectionauthor:: adapted from "Guide to Numpy" by Travis E. Oliphant
.. currentmodule:: numpy
.. index:: indexing, slicing
:class:`ndarrays <ndarray>` can be indexed using the standard Python
``x[obj]`` syntax, where *x* is the array and *obj* the selection.
There are three... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.