Did I find the right examples for you? yes no

All Samples(25)  |  Call(20)  |  Derive(0)  |  Import(5)

        def convtypecode2(typecode, dtype=None):
    if dtype is None:
        if typecode is None:
            return None
        else:
            try:
                return oldtype2dtype[typecode]
            except:
                return np.dtype(typecode)
    else:
        return dtype
        


src/s/p/Spherebot-Host-GUI-HEAD/InkscapePortable/App/Inkscape/python/Lib/site-packages/numpy/oldnumeric/functions.py   Spherebot-Host-GUI(Download)
import numpy.core.multiarray as mu
import numpy.core.numeric as nn
from typeconv import convtypecode, convtypecode2
 
__all__ = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue',
def array(sequence, typecode=None, copy=1, savespace=0, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(sequence, dtype, copy=copy)
 
def sarray(a, typecode=None, copy=False, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(a, dtype, copy)
 
def asarray(a, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
def arange(start, stop=None, step=1, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.arange(start, stop, step, dtype)
 
def fromstring(string, typecode='l', count=-1, dtype=None):

src/p/y/Pymol-script-repo-HEAD/modules/pdb2pqr/contrib/numpy-1.1.0/numpy/oldnumeric/functions.py   Pymol-script-repo(Download)
import numpy.core.multiarray as mu
import numpy.core.numeric as nn
from typeconv import convtypecode, convtypecode2
 
__all__ = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue',
def array(sequence, typecode=None, copy=1, savespace=0, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(sequence, dtype, copy=copy)
 
def sarray(a, typecode=None, copy=False, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(a, dtype, copy)
 
def asarray(a, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
def arange(start, stop=None, step=1, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.arange(start, stop, step, dtype)
 
def fromstring(string, typecode='l', count=-1, dtype=None):

src/n/u/nupic-linux64-HEAD/lib64/python2.6/site-packages/numpy/oldnumeric/functions.py   nupic-linux64(Download)
import numpy.core.multiarray as mu
import numpy.core.numeric as nn
from typeconv import convtypecode, convtypecode2
 
__all__ = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue',
def array(sequence, typecode=None, copy=1, savespace=0, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(sequence, dtype, copy=copy)
 
def sarray(a, typecode=None, copy=False, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(a, dtype, copy)
 
def asarray(a, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
def arange(start, stop=None, step=1, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.arange(start, stop, step, dtype)
 
def fromstring(string, typecode='l', count=-1, dtype=None):

src/m/i/MissionPlanner-HEAD/Lib/site-packages/numpy/oldnumeric/functions.py   MissionPlanner(Download)
import numpy.core.multiarray as mu
import numpy.core.numeric as nn
from typeconv import convtypecode, convtypecode2
 
__all__ = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue',
def array(sequence, typecode=None, copy=1, savespace=0, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(sequence, dtype, copy=copy)
 
def sarray(a, typecode=None, copy=False, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(a, dtype, copy)
 
def asarray(a, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
def arange(start, stop=None, step=1, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.arange(start, stop, step, dtype)
 
def fromstring(string, typecode='l', count=-1, dtype=None):

src/n/u/numpy-1.8.1/numpy/oldnumeric/functions.py   numpy(Download)
import numpy.core.multiarray as mu
import numpy.core.numeric as nn
from .typeconv import convtypecode, convtypecode2
 
__all__ = ['take', 'repeat', 'sum', 'product', 'sometrue', 'alltrue',
def array(sequence, typecode=None, copy=1, savespace=0, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(sequence, dtype, copy=copy)
 
def sarray(a, typecode=None, copy=False, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.array(a, dtype, copy)
 
def asarray(a, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
def arange(start, stop=None, step=1, typecode=None, dtype=None):
    dtype = convtypecode2(typecode, dtype)
    return mu.arange(start, stop, step, dtype)
 
def fromstring(string, typecode='l', count=-1, dtype=None):