-
Notifications
You must be signed in to change notification settings - Fork 46
Numo vs numpy
Masahiro TANAKA edited this page Feb 25, 2017
·
20 revisions
| numo-narray (DataType = DFloat, Int64 etc.) | numpy |
|---|---|
| Numo::DataType[start..end] / #seq, #indgen | numpy.arange |
| Numo::DataType#reshape | numpy.reshape |
| Numo::DataType.zeros | numpy.zeros |
| Numo::DataType[start..end] / #seq, #indgen | numpy.linspace |
| Numo::DataType#shape | numpy.ndarray.shape |
| Numo::DataType#ndim | numpy.ndarray.ndim |
| not yet | numpy.meshgrid |
| Numo::DataType#size | numpy.ndarray.size |
| Numo::DataType.ones | numpy.ones |
| Numo::DataType.new | numpy.empty |
| Numo::DataType#rand | numpy.random |
| Numo::DataType#dot | numpy.dot |
| Numo::DataType#sum | numpy.sum(axis=0) |
| Numo::DataType#min | numpy.min(axis=1) |
| Numo::DataType#cumsum | numpy.cumsum(axis=1) |
| Numo::NMath.exp | numpy.exp |
| Numo::NMath.sqrt | numpy.sqrt |
| not yet | numpy.fromfunction |
| Numo::NArray#hsplit | numpy.hsplit |
| Numo::DataType#copy | numpy.copy |
| not yet | numpy.corrcoef |
| not yet | numpy.cov |
| (na.ne(0)).where | numpy.nonzero |
| Numo::DataType.eye | numpy.eye |
| Numo::NArray.srand | numpy.random.seed |
| Numo::NArray#concatenate | numpy.concatenate |