Numpy 的 cbrt(~)
方法計算輸入數組中每個值的 cube-root。
參數
1. a
| array_like
輸入數組。
2. out
| Numpy array
| optional
您可以將計算結果放入 out
指定的數組中,而不是創建新數組。
3. where
| boolean
的array
| optional
標記為 False 的值將被忽略,即它們的原始值將未被初始化。如果指定了 out 參數,行為會略有不同 - 原始值將保持不變。
返回值
如果 a
是標量,則返回標量,否則返回 Numpy 數組。
例子
a = np.array([1, 8, 27])
np.cbrt(a)
array([1., 2., 3.])
相關用法
- Python cudf.core.column.string.StringMethods.is_vowel用法及代碼示例
- Python NumPy char find方法用法及代碼示例
- Python cudf.Series.ceil用法及代碼示例
- Python cudf.core.column.string.StringMethods.endswith用法及代碼示例
- Python cuxfilter.charts.datashader.heatmap用法及代碼示例
- Python cusignal.windows.windows.hann用法及代碼示例
- Python cudf.DataFrame.isin用法及代碼示例
- Python cudf.core.column.string.StringMethods.title用法及代碼示例
- Python codecs.decode()用法及代碼示例
- Python cuml.metrics.pairwise_distances.pairwise_distances用法及代碼示例
- Python collections.somenamedtuple._replace用法及代碼示例
- Python cuxfilter.charts.panel_widgets.int_slider用法及代碼示例
- Python cudf.DataFrame.rmul用法及代碼示例
- Python cudf.Series.max用法及代碼示例
- Python cmp()用法及代碼示例
- Python cudf.DatetimeIndex.dayofweek用法及代碼示例
- Python cudf.DataFrame.apply用法及代碼示例
- Python cucim.skimage.feature.shape_index用法及代碼示例
- Python cuml.neighbors.KNeighborsClassifier用法及代碼示例
- Python cudf.core.column.string.StringMethods.contains用法及代碼示例
- Python cuxfilter.charts.datashader.line用法及代碼示例
- Python cudf.core.column.string.StringMethods.rsplit用法及代碼示例
- Python cudf.DataFrame.exp用法及代碼示例
- Python cudf.Series.head用法及代碼示例
- Python cudf.DataFrame.drop用法及代碼示例
注:本文由純淨天空篩選整理自Isshin Inada大神的英文原創作品 NumPy | cbrt method。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。