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/datetime/numpy/testing
public_repos/datetime/numpy/testing/tests/test_utils.py
import warnings import sys import numpy as np from numpy.testing import * import unittest class _GenericTest(object): def _test_equal(self, a, b): self._assert_func(a, b) def _test_not_equal(self, a, b): try: self._assert_func(a, b) passed = True except Asserti...
0
public_repos/datetime
public_repos/datetime/benchmarks/sorting.py
from benchmark import Benchmark modules = ['numpy','Numeric','numarray'] b = Benchmark(modules,runs=3,reps=100) N = 10000 b.title = 'Sorting %d elements' % N b['numarray'] = ('a=np.array(None,shape=%d,typecode="i");a.sort()'%N,'') b['numpy'] = ('a=np.empty(shape=%d, dtype="i");a.sort()'%N,'') b['Numeric'] = ('a=np.em...
0
public_repos/datetime
public_repos/datetime/benchmarks/casting.py
from benchmark import Benchmark modules = ['numpy','Numeric','numarray'] b = Benchmark(modules, title='Casting a (10,10) integer array to float.', runs=3,reps=10000) N = [10,10] b['numpy'] = ('b = a.astype(int)', 'a=numpy.zeros(shape=%s,dtype=float)' % N) b['Numeric'] = ('b ...
0
public_repos/datetime
public_repos/datetime/benchmarks/creating.py
from benchmark import Benchmark modules = ['numpy','Numeric','numarray'] N = [10,10] b = Benchmark(modules, title='Creating %s zeros.' % N, runs=3,reps=10000) b['numpy'] = ('a=np.zeros(shape,type)', 'shape=%s;type=float' % N) b['Numeric'] = ('a=np.zeros(shape,type)', 'shape=%s;type=np.Flo...
0
public_repos/datetime
public_repos/datetime/benchmarks/simpleindex.py
import timeit # This is to show that NumPy is a poorer choice than nested Python lists # if you are writing nested for loops. # This is slower than Numeric was but Numeric was slower than Python lists were # in the first place. N = 30 code2 = r""" for k in xrange(%d): for l in xrange(%d): res = a[k,l]...
0
public_repos/datetime
public_repos/datetime/benchmarks/benchmark.py
from timeit import Timer class Benchmark(dict): """Benchmark a feature in different modules.""" def __init__(self,modules,title='',runs=3,reps=1000): self.module_test = dict((m,'') for m in modules) self.runs = runs self.reps = reps self.title = title def __setitem__(self,...
0
public_repos/datetime
public_repos/datetime/tools/commitstats.py
# Run svn log -l <some number> import re import numpy as np import os names = re.compile(r'r\d+\s[|]\s(.*)\s[|]\s200') def get_count(filename, repo): mystr = open(filename).read() result = names.findall(mystr) u = np.unique(result) count = [(x,result.count(x),repo) for x in u] return count ...
0
public_repos/datetime
public_repos/datetime/tools/py3tool.py
#!/usr/bin/env python3 # -*- python -*- """ %prog SUBMODULE... Hack to pipe submodules of Numpy through 2to3 and build them in-place one-by-one. Example usage: python3 tools/py3tool.py testing distutils core This will copy files to _py3k/numpy, add a dummy __init__.py and version.py on the top level, and copy a...
0
public_repos/datetime/tools
public_repos/datetime/tools/numpy-macosx-installer/README.txt
This is a set of scripts used to build the new numpy .dmg installer with documentation. The actual content of the dmg is to be put in content: documentation go into the Documentation subdir, and the .mpkg installer for numpuy itself in the content directory. The name of the installer should match exactly the one in th...
0
public_repos/datetime/tools
public_repos/datetime/tools/numpy-macosx-installer/new-create-dmg
#! /bin/bash SRC_FOLDER=content VOLUME_NAME=numpy DMG_TEMP_NAME=numpy.tmp.dmg title="${VOLUME_NAME}" applicationName=numpy-1.4.0.dev-py2.6.mpkg finalDMGName=numpy.dmg backgroundPictureName=dmgbackground.png WINX=100 WINY=100 WINW=600 WINH=600 ICON_SIZE=128 BACKGROUND_FILE=art/dmgbackground.png NUMPY_MPKG="" while te...
0
public_repos/datetime/tools/numpy-macosx-installer
public_repos/datetime/tools/numpy-macosx-installer/art/dmgbackground.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Generator: Adobe Illustrator 12.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 51448) --> <svg xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf=...
0
public_repos/datetime/tools
public_repos/datetime/tools/win32build/README.txt
This directory contains various scripts and code to build binaries installers for windows. It can: - prepare a bootstrap environment to build binary in a self-contained directory - build binaries for different architectures using different site.cfg - prepare a nsis-based installer whi...
0
public_repos/datetime/tools
public_repos/datetime/tools/win32build/doall.py
import subprocess import os if __name__ == '__main__': from optparse import OptionParser parser = OptionParser() parser.add_option("-p", "--pyver", dest="pyver", help = "Python version (2.4, 2.5, etc...)") opts, args = parser.parse_args() pyver = opts.pyver if not pyver:...
0
public_repos/datetime/tools
public_repos/datetime/tools/win32build/prepare_bootstrap.py
import os import subprocess import shutil from os.path import join as pjoin, split as psplit, dirname from zipfile import ZipFile import re def get_sdist_tarball(): """Return the name of the installer built by wininst command.""" # Yeah, the name logic is harcoded in distutils. We have to reproduce it # he...
0
public_repos/datetime/tools
public_repos/datetime/tools/win32build/build.py
"""Python script to build windows binaries to be fed to the "superpack". The script is pretty dumb: it assumes python executables are installed the standard way, and the location for blas/lapack/atlas is harcoded.""" # TODO: # - integrate the x86analysis script to check built binaries # - make the config configurab...
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/misc/x86analysis.py
#! /usr/bin/env python # Last Change: Sat Mar 28 02:00 AM 2009 J # Try to identify instruction set used in binary (x86 only). This works by # checking the assembly for instructions specific to sse, etc... Obviously, # this won't work all the times (for example, if some instructions are used # only after proper detecti...
0
public_repos/datetime/tools/win32build/misc
public_repos/datetime/tools/win32build/misc/msvcrt90/yop.sh
PATH=/cygdive/c/Mingw-w64/bin:$PATH gcc -DRUNTIME=msvcr90 -D__msvcr90__=1 -D__MSVCRT__ -C -E -P -xc-header msvcrt.def.in > msvcr90.def dlltool --as=as -k --dllname msvcr90.dll --output-lib libmsvcr90.a --def msvcr90.def for key in printf fprintf sprintf vprintf vfprintf vsprintf; do src=`nm libmsvcr90.a | sed -n -e ...
0
public_repos/datetime/tools/win32build/misc
public_repos/datetime/tools/win32build/misc/msvcrt90/msvcrt.def.in
; ; __FILENAME__ ; created from msvcrt.def.in ;* This file has no copyright assigned and is placed in the Public Domain. ;* This file is a part of the mingw-runtime package. ;* No warranty is given; refer to the file DISCLAIMER within the package. ; ; Exports from msvcrt.dll, msvcr70.dll, msvcr71.dll, msvcr80.dll a...
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/nsis_scripts/numpy-superinstaller.nsi.in
;-------------------------------- ;Include Modern UI !include "MUI2.nsh" ;SetCompress off ; Useful to disable compression under development SetCompressor /Solid LZMA ; Useful to disable compression under development ; Include FileFunc for command line parsing options !include "FileFunc.nsh" !insertmacro GetParameter...
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/cpuid/test.c
#include <stdio.h> #include "cpuid.h" int main() { cpu_caps_t *cpuinfo; cpuinfo = malloc(sizeof(*cpuinfo)); if (cpuinfo == NULL) { fprintf(stderr, "Error allocating\n"); } cpuid_get_caps(cpuinfo); printf("This cpu string is %s\n", cpuinfo->vendor); if (cpuinfo->has_mmx) { printf("This cpu has mmx instr...
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/cpuid/cpuid.h
#ifndef _GABOU_CPUID_H #define _GABOU_CPUID_H #include <stdlib.h> #define CPUID_VENDOR_STRING_LEN 12 struct _cpu_caps { int has_cpuid; int has_mmx; int has_sse; int has_sse2; int has_sse3; char vendor[CPUID_VENDOR_STRING_LEN+1]; }; typedef struct _cpu_caps cpu_caps_t; int cpuid_get_caps(cpu_caps_t *cpuinfo...
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/cpuid/SConstruct
env = Environment(tools = ['mingw']) #libcpuid = env.SharedLibrary('cpuid', source = ['cpuid.c']) #test = env.Program('test', source = ['test.c'], LIBS = libcpuid, RPATH = ['.']) test = env.Program('test', source = ['test.c', 'cpuid.c'])
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/cpuid/cpuid.c
/* * TODO: * - test for cpuid availability * - test for OS support (tricky) */ #include <stdlib.h> #include <stdint.h> #include <string.h> #include "cpuid.h" #ifndef __GNUC__ #error "Sorry, this code can only be compiled with gcc for now" #endif /* * SIMD: SSE 1, 2 and 3, MMX */ #define CPUID_FLAG_MMX 1 <<...
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/cpucaps/cpucaps_main.h
#ifndef _EXDLL_H_ #define _EXDLL_H_ #include <windows.h> #if defined(__GNUC__) #define UNUSED __attribute__((unused)) #else #define UNUSED #endif // only include this file from one place in your DLL. // (it is all static, if you use it in two places it will fail) #define EXDLL_INIT() { \ g_string...
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/cpucaps/cpucaps_main.c
#include <stdio.h> #include <windows.h> #include "cpucaps_main.h" #include "cpuid.h" HINSTANCE g_hInstance; HWND g_hwndParent; #define CPUID_FAILED "Unknown" /* * if val is true, str is the "Y" string, otherwise the "N" string */ static int _set_bool_str(int val, char* str) { if (val) { str[0] = 'Y'; } el...
0
public_repos/datetime/tools/win32build
public_repos/datetime/tools/win32build/cpucaps/SConstruct
env = Environment(tools = ['mingw']) env.Append(CPPPATH = ['../cpuid']) env.Append(CFLAGS = ['-W', '-Wall']) cpuplug = env.SharedLibrary('cpucaps', source = ['cpucaps_main.c', '../cpuid/cpuid.c']) cpuplug_install = env.InstallAs('C:\Program Files\NSIS\Plugins\CpuCaps.dll', cpuplug[0]) env.Alias('install', cpuplug_ins...
0
public_repos/datetime/tools
public_repos/datetime/tools/c_coverage/HOWTO_C_COVERAGE.txt
=============== C coverage tool =============== This directory contains a tool to generate C code-coverage reports using valgrind's callgrind tool. Prerequisites ------------- * `Valgrind <http://www.valgrind.org/>`_ (3.5.0 tested, earlier versions may work) * `Pygments <http://www.pygments.org/>`_ (0.11 or la...
0
public_repos/datetime/tools
public_repos/datetime/tools/c_coverage/c_coverage_report.py
#!/usr/bin/env python """ A script to create C code-coverage reports based on the output of valgrind's callgrind tool. """ import optparse import os import re import sys from xml.sax.saxutils import quoteattr, escape try: import pygments if tuple([int(x) for x in pygments.__version__.split('.')]) < (0, 11): ...
0
public_repos/datetime/tools
public_repos/datetime/tools/c_coverage/c_coverage_collect.sh
#!/usr/bin/env bash valgrind --tool=callgrind --compress-strings=no --compress-pos=no --collect-jumps=yes "$@"
0
public_repos/datetime/tools
public_repos/datetime/tools/osxbuild/README.txt
================================== Building an OSX binary for numpy ================================== This directory contains the scripts to build a universal binary for OSX. The binaries work on OSX 10.4 and 10.5. The docstring in build.py may contain more current details. Requirements ============ * bdist_mpkg...
0
public_repos/datetime/tools
public_repos/datetime/tools/osxbuild/install_and_test.py
#!/usr/bin/env python """Install the built package and run the tests.""" import os # FIXME: Should handle relative import better! #from .build import DIST_DIR from build import SRC_DIR, DIST_DIR, shellcmd clrgreen = '\033[0;32m' clrnull = '\033[0m' # print '\033[0;32m foobar \033[0m' def color_print(msg): """Add...
0
public_repos/datetime/tools
public_repos/datetime/tools/osxbuild/build.py
"""Python script to build the OSX universal binaries. This is a simple script, most of the heavy lifting is done in bdist_mpkg. To run this script: 'python build.py' Requires a svn version of numpy is installed, svn is used to revert file changes made to the docs for the end-user install. Installer is built using ...
0
public_repos/datetime/tools/osxbuild
public_repos/datetime/tools/osxbuild/docs/README.txt
NumPy is the fundamental package needed for scientific computing with Python. This package contains: * a powerful N-dimensional array object * sophisticated (broadcasting) functions * tools for integrating C/C++ and Fortran code * useful linear algebra, Fourier transform, and random number capabilitie...
0
public_repos/datetime/branding
public_repos/datetime/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/datetime/branding
public_repos/datetime/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/datetime
public_repos/datetime/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/datetime
public_repos/datetime/doc/ufuncs.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/datetime
public_repos/datetime/doc/HOWTO_DOCUMENT.txt
==================================== A Guide to NumPy/SciPy Documentation ==================================== .. Contents:: .. Note:: For an accompanying example, see `example.py <http://svn.scipy.org/svn/numpy/trunk/doc/example.py>`_. Overview -------- In general, we follow the standard Python style convent...
0
public_repos/datetime
public_repos/datetime/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 = NEED_AUTOSUMMARY = $(shell $(PYTHON) -c 'import sphinx; print sphinx.__version__ < "0.7" and "1" or ""') # Internal variables...
0
public_repos/datetime
public_repos/datetime/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/datetime
public_repos/datetime/doc/EXAMPLE_DOCSTRING.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/datetime
public_repos/datetime/doc/records.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/datetime
public_repos/datetime/doc/CAPI.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/datetime
public_repos/datetime/doc/DISTUTILS.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/datetime
public_repos/datetime/doc/TESTS.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/datetime
public_repos/datetime/doc/HOWTO_RELEASE.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/datetime
public_repos/datetime/doc/Py3K.txt
.. -*-rst-*- ********************************************* Developer notes on the transition to Python 3 ********************************************* :date: 2009-12-05 :author: Charles R. Harris :author: Pauli Virtanen General ======= If you work on Py3 transition, please try to keep this document up-to-date. Res...
0
public_repos/datetime
public_repos/datetime/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/datetime
public_repos/datetime/doc/HOWTO_BUILD_DOCS.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 0.5 or newer. Sphinx's current development version also works as of now (2009-06-24)...
0
public_repos/datetime
public_repos/datetime/doc/HOWTO_MERGE_WIKI_DOCS.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/datetime/doc
public_repos/datetime/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/datetime/doc
public_repos/datetime/doc/source/glossary.rst
******** Glossary ******** .. toctree:: .. glossary:: .. automodule:: numpy.doc.glossary Jargon ------ .. automodule:: numpy.doc.jargon
0
public_repos/datetime/doc
public_repos/datetime/doc/source/contents.rst
##################### Numpy manual contents ##################### .. toctree:: user/index reference/index release about bugs license glossary
0
public_repos/datetime/doc
public_repos/datetime/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/datetime/doc
public_repos/datetime/doc/source/release.rst
************* Release Notes ************* .. include:: ../release/1.3.0-notes.rst
0
public_repos/datetime/doc
public_repos/datetime/doc/source/conf.py
# -*- coding: utf-8 -*- import sys, os, re # Check Sphinx version import sphinx if sphinx.__version__ < "0.5": raise RuntimeError("Sphinx 0.5.dev or newer required") # ----------------------------------------------------------------------------- # General configuration # -----------------------------------------...
0
public_repos/datetime/doc
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.numarray.rst
********************************************** Numarray compatibility (:mod:`numpy.numarray`) ********************************************** .. automodule:: numpy.numarray
0
public_repos/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.window.rst
Window functions ================ .. currentmodule:: numpy Various windows --------------- .. autosummary:: :toctree: generated/ bartlett blackman hamming hanning kaiser
0
public_repos/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/doc/source/reference/internals.rst
*************** Numpy internals *************** .. toctree:: internals.code-explanations .. automodule:: numpy.doc.internals
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.fft.rst
.. _routines.fft: .. automodule:: numpy.fft
0
public_repos/datetime/doc/source
public_repos/datetime/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/datetime/doc/source
public_repos/datetime/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
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/c-api.generalized-ufuncs.rst
================================== Generalized Universal Function API ================================== There is a general need for looping over not only functions on scalars but also over functions on vectors (or arrays), as explained on http://scipy.org/scipy/numpy/wiki/GeneralLoopingFunctions. We propose to reali...
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.io.rst
Input and output **************** .. currentmodule:: numpy NPZ files --------- .. autosummary:: :toctree: generated/ load save savez Text files ---------- .. autosummary:: :toctree: generated/ loadtxt savetxt genfromtxt fromregex fromstring ndarray.tofile ndarray.tolist String ...
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.set.rst
Set routines ============ .. currentmodule:: numpy Making proper sets ------------------ .. autosummary:: :toctree: generated/ unique Boolean operations ------------------ .. autosummary:: :toctree: generated/ in1d intersect1d setdiff1d setxor1d union1d
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/arrays.ndarray.rst
.. _arrays.ndarray: ****************************************** The N-dimensional array (:class:`ndarray`) ****************************************** .. currentmodule:: numpy An :class:`ndarray` is a (usually fixed-size) multidimensional container of items of the same type and size. The number of dimensions and items...
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.matlib.rst
Matrix library (:mod:`numpy.matlib`) ************************************ .. currentmodule:: numpy This module contains all functions in the :mod:`numpy` namespace, with the following replacement functions that return :class:`matrices <matrix>` instead of :class:`ndarrays <ndarray>`. .. automodule:: numpy.matlib
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/c-api.dtype.rst
Data Type API ============= .. sectionauthor:: Travis E. Oliphant The standard array can have 21 different data types (and has some support for adding your own types). These data types all have an enumerated type, an enumerated type-character, and a corresponding array scalar Python type object (placed in a hierarchy...
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/c-api.ufunc.rst
UFunc API ========= .. sectionauthor:: Travis E. Oliphant .. index:: pair: ufunc; C-API Constants --------- .. cvar:: UFUNC_ERR_{HANDLER} ``{HANDLER}`` can be **IGNORE**, **WARN**, **RAISE**, or **CALL** .. cvar:: UFUNC_{THING}_{ERR} ``{THING}`` can be **MASK**, **SHIFT**, or **FPE**, and ``{ERR}`` c...
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/c-api.coremath.rst
Numpy core libraries ==================== .. sectionauthor:: David Cournapeau .. versionadded:: 1.3.0 Starting from numpy 1.3.0, we are working on separating the pure C, "computational" code from the python dependent code. The goal is twofolds: making the code cleaner, and enabling code reuse by other extensions out...
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.oldnumeric.rst
*************************************************** Old Numeric compatibility (:mod:`numpy.oldnumeric`) *************************************************** .. currentmodule:: numpy .. automodule:: numpy.oldnumeric
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.help.rst
.. _routines.help: Numpy-specific help functions ============================= .. currentmodule:: numpy Finding help ------------ .. autosummary:: :toctree: generated/ lookfor Reading help ------------ .. autosummary:: :toctree: generated/ info source
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.rst
******** Routines ******** In this chapter routine docstrings are presented, grouped by functionality. Many docstrings contain example code, which demonstrates basic usage of the routine. The examples assume that NumPy is imported with:: >>> import numpy as np A convenient way to execute examples is the ``%doctest...
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/routines.math.rst
Mathematical functions ********************** .. currentmodule:: numpy Trigonometric functions ----------------------- .. autosummary:: :toctree: generated/ sin cos tan arcsin arccos arctan hypot arctan2 degrees radians unwrap deg2rad rad2deg Hyperbolic functions ----------...
0
public_repos/datetime/doc/source
public_repos/datetime/doc/source/reference/ufuncs.rst
.. sectionauthor:: adapted from "Guide to Numpy" by Travis E. Oliphant .. _ufuncs: ************************************ Universal functions (:class:`ufunc`) ************************************ .. note: XXX: section might need to be made more reference-guideish... .. currentmodule:: numpy .. index: ufunc, universa...
0