コード例 #1
0
ファイル: jymaths.py プロジェクト: DawnScience/scisoft-core
def cumprod(a, axis=None, dtype=None):
    '''Cumulative product of input'''
    dtype = _translatenativetype(dtype)
    if dtype is not None:
        a = a.cast(_translatenativetype(dtype).value)
    if axis is None:
        return _stats.cumulativeProduct(a)
    else:
        return _stats.cumulativeProduct(a, _jint(axis))
コード例 #2
0
ファイル: jymaths.py プロジェクト: DawnScience/scisoft-core
def cumprod(a, axis=None, dtype=None):
    '''Cumulative product of input'''
    dtype = _translatenativetype(dtype)
    if dtype is not None:
        a = a.cast(_translatenativetype(dtype).value)
    if axis is None:
        return _stats.cumulativeProduct(a)
    else:
        return _stats.cumulativeProduct(a, _jint(axis))
コード例 #3
0
def cumprod(a, axis=None):
    '''Cumulative product of input'''
    if axis is None:
        return _stats.cumulativeProduct(a)
    else:
        return _stats.cumulativeProduct(a, axis)
コード例 #4
0
def cumprod(a, axis=None):
    '''Cumulative product of input'''
    if axis is None:
        return _stats.cumulativeProduct(a)
    else:
        return _stats.cumulativeProduct(a, axis)