numpy.ceil()用法
2017-06-11 12:20
746 查看
numpy.ceil(x[, out]) =
<ufunc 'ceil'>
( ceil [siːl] 向正无穷取整 朝正无穷大方向取整)
Return the ceiling of the input, element-wise.
( element-wise 元素方式 )
( ceiling ['siːlɪŋ] n. 天花板;上限 )
The ceil of the scalar x is the smallest integer i, such that i
>= x. It is often denoted as
.
( scalar ['skeɪlə] adj. 标量的;数量的;梯状的,分等级的
n. [数] 标量;[数] 数量)
( denoted 表示,指示(denote的过去式和过去分词) 数学:指称,概指:)
See also
floor, trunc, rint
Examples
>>>
<ufunc 'ceil'>
( ceil [siːl] 向正无穷取整 朝正无穷大方向取整)
Return the ceiling of the input, element-wise.
( element-wise 元素方式 )
( ceiling ['siːlɪŋ] n. 天花板;上限 )
The ceil of the scalar x is the smallest integer i, such that i
>= x. It is often denoted as
.
( scalar ['skeɪlə] adj. 标量的;数量的;梯状的,分等级的
n. [数] 标量;[数] 数量)
( denoted 表示,指示(denote的过去式和过去分词) 数学:指称,概指:)
Parameters: | x : array_like Input data. |
---|---|
Returns: | y : ndarray or scalar The ceiling of each element in x, with float dtype. |
floor, trunc, rint
Examples
>>>
>>> a = np.array([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) >>> np.ceil(a) array([-1., -1., -0., 1., 2., 2., 2.])
相关文章推荐
- php取整函数ceil,floo,round的用法及介绍
- Java Math的中floor,round,ceil的用法
- numpy.zeros((5,))中(5,)的含义 顺便复习Python中tuple的用法
- numpy数组扩展函数repeat和tile用法
- python: numpy-- 函数 argsort 用法
- numpy中argsort函数用法
- numpy中random的用法
- numpy中hstack() vstack() stack() dstack() vsplit() concatenate()用法
- numpy中argsort函数用法
- floor 和ceil的用法
- numpy中一些常用函数的用法总结
- 【Python】Numpy扩充数组函数之repeat和tile用法
- Numpy中的shape函数的用法详解
- Numpy.fromfunction用法
- ceil() floor() round()的用法
- numpy的的dtype的用法
- PHP floor(),ceil(),round(), intval()的用法
- numpy基本用法多维数组
- Python之数组(array)使用方法总结与Numpy中的数组用法
- Numpy之sum函数用法