Did I find the right examples for you? yes no

All Samples(26)  |  Call(20)  |  Derive(0)  |  Import(6)

src/d/o/dolo-0.4.6.3/dolo/numeric/extern/helpers.py   dolo(Download)
    assert cols * rows == m.shape[0]
    out = m.reshape(cols, rows).T
    if intype == 'array': return asarray(out)
    else: return out
 
    return u[:, rk:]
 
from numpy.matlib import empty, zeros, eye, mat, asarray
from numpy.linalg import lstsq
def getOrthColumns(m):
    Return type is as input type.
    '''
    if type(m) == type(asarray(m)):
        m = mat(m)
        output = 'array'
    maxlag rows are deleted (the matrix is shortened) 
    '''
    if type(m) == type(asarray(m)): 
        m = mat(m)
        output = 'array'
    for lag in range(1, maxlag + 1) :
        temp = c_[ temp, m[(maxlag-lag):(T-lag) ,:] ]
    if output == 'array': return asarray(temp)
    else: return temp
 

src/d/o/dolo-HEAD/dolo/numeric/extern/helpers.py   dolo(Download)
    assert cols * rows == m.shape[0]
    out = m.reshape(cols, rows).T
    if intype == 'array': return asarray(out)
    else: return out
 
    return u[:, rk:]
 
from numpy.matlib import empty, zeros, eye, mat, asarray
from numpy.linalg import lstsq
def getOrthColumns(m):
    Return type is as input type.
    '''
    if type(m) == type(asarray(m)):
        m = mat(m)
        output = 'array'
    maxlag rows are deleted (the matrix is shortened) 
    '''
    if type(m) == type(asarray(m)): 
        m = mat(m)
        output = 'array'
    for lag in range(1, maxlag + 1) :
        temp = c_[ temp, m[(maxlag-lag):(T-lag) ,:] ]
    if output == 'array': return asarray(temp)
    else: return temp