Did I find the right examples for you? yes no

All Samples(30)  |  Call(20)  |  Derive(0)  |  Import(10)

src/d/o/dolo-0.4.6.3/dolo/numeric/extern/helpers.py   dolo(Download)
    Also accepts 1d-array input, but always returns numpy matrix.
    '''
    if type(m) == type(mat(m)):
        assert m.shape[1] == 1                            # col vector
        intype = 'matrix'
    <varnames> and <obslabels> must be sequences of strings.
    '''
    data = mat(data)
    if orientation == 'rows':
        colheaders = obslabels
    tempnestedlist = [ line for line in read_from if not \
        line[0].strip().startswith(commentchar) ]
    data = mat(tempnestedlist, dtype = str)
 
    if colheader == 'names':
    return u[:, rk:]
 
from numpy.matlib import empty, zeros, eye, mat, asarray
from numpy.linalg import lstsq
def getOrthColumns(m):
    '''
    if type(m) == type(asarray(m)):
        m = mat(m)
        output = 'array'
    else: output = 'matrix'

src/d/o/dolo-HEAD/dolo/numeric/extern/helpers.py   dolo(Download)
    Also accepts 1d-array input, but always returns numpy matrix.
    '''
    if type(m) == type(mat(m)):
        assert m.shape[1] == 1                            # col vector
        intype = 'matrix'
    <varnames> and <obslabels> must be sequences of strings.
    '''
    data = mat(data)
    if orientation == 'rows':
        colheaders = obslabels
    tempnestedlist = [ line for line in read_from if not \
        line[0].strip().startswith(commentchar) ]
    data = mat(tempnestedlist, dtype = str)
 
    if colheader == 'names':
    return u[:, rk:]
 
from numpy.matlib import empty, zeros, eye, mat, asarray
from numpy.linalg import lstsq
def getOrthColumns(m):
    '''
    if type(m) == type(asarray(m)):
        m = mat(m)
        output = 'array'
    else: output = 'matrix'