Skip to content

Commit ea02cc2

Browse files
committed
generated many more api functions (string ops, datetime support, data type routines, financial, etc.)
1 parent 7705283 commit ea02cc2

43 files changed

Lines changed: 21775 additions & 3462 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎src/Numpy/Models/MemMapMode.cs‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
using Python.Runtime;
5+
6+
namespace Numpy.Models
7+
{
8+
public class MemMapMode : PythonObject
9+
{
10+
public MemMapMode(PyObject pyobject) : base(pyobject)
11+
{
12+
}
13+
14+
}
15+
}

‎src/Numpy/Models/NDarray.gen.cs‎

Lines changed: 3168 additions & 3180 deletions
Large diffs are not rendered by default.

‎src/Numpy/NumPy.array_creation.gen.cs‎

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,61 @@ public NDarray loadtxt(string fname, Dtype dtype = null, string[] comments = nul
15321532
return ToCsharp<NDarray>(py);
15331533
}
15341534

1535+
/// <summary>
1536+
/// Create a chararray.
1537+
///
1538+
/// Versus a regular NumPy array of type str or unicode, this
1539+
/// class adds the following functionality:
1540+
/// </summary>
1541+
/// <param name="itemsize">
1542+
/// itemsize is the number of characters per scalar in the
1543+
/// resulting array. If itemsize is None, and obj is an
1544+
/// object array or a Python list, the itemsize will be
1545+
/// automatically determined. If itemsize is provided and obj
1546+
/// is of type str or unicode, then the obj string will be
1547+
/// chunked into itemsize pieces.
1548+
/// </param>
1549+
/// <param name="copy">
1550+
/// If true (default), then the object is copied. Otherwise, a copy
1551+
/// will only be made if __array__ returns a copy, if obj is a
1552+
/// nested sequence, or if a copy is needed to satisfy any of the other
1553+
/// requirements (itemsize, unicode, order, etc.).
1554+
/// </param>
1555+
/// <param name="unicode">
1556+
/// When true, the resulting chararray can contain Unicode
1557+
/// characters, when false only 8-bit characters. If unicode is
1558+
/// None and obj is one of the following:
1559+
///
1560+
/// then the unicode setting of the output array will be
1561+
/// automatically determined.
1562+
/// </param>
1563+
/// <param name="order">
1564+
/// Specify the order of the array. If order is ‘C’ (default), then the
1565+
/// array will be in C-contiguous order (last-index varies the
1566+
/// fastest). If order is ‘F’, then the returned array
1567+
/// will be in Fortran-contiguous order (first-index varies the
1568+
/// fastest). If order is ‘A’, then the returned array may
1569+
/// be in any order (either C-, Fortran-contiguous, or even
1570+
/// discontiguous).
1571+
/// </param>
1572+
public void core_defchararray_array(string[] obj, int? itemsize = null, bool? copy = true, bool? unicode = null, string order = null)
1573+
{
1574+
//auto-generated code, do not change
1575+
var core = self.GetAttr("core");
1576+
var defchararray = core.GetAttr("defchararray");
1577+
var __self__=defchararray;
1578+
var pyargs=ToTuple(new object[]
1579+
{
1580+
obj,
1581+
});
1582+
var kwargs=new PyDict();
1583+
if (itemsize!=null) kwargs["itemsize"]=ToPython(itemsize);
1584+
if (copy!=true) kwargs["copy"]=ToPython(copy);
1585+
if (unicode!=null) kwargs["unicode"]=ToPython(unicode);
1586+
if (order!=null) kwargs["order"]=ToPython(order);
1587+
dynamic py = __self__.InvokeMethod("array", pyargs, kwargs);
1588+
}
1589+
15351590
/// <summary>
15361591
/// Provides a convenient view on arrays of string and unicode values.
15371592
///
@@ -1592,6 +1647,53 @@ public void chararray(Shape shape, int? itemsize = null, bool? unicode = null, i
15921647
dynamic py = __self__.InvokeMethod("chararray", pyargs, kwargs);
15931648
}
15941649

1650+
/// <summary>
1651+
/// Convert the input to a chararray, copying the data only if
1652+
/// necessary.
1653+
///
1654+
/// Versus a regular NumPy array of type str or unicode, this
1655+
/// class adds the following functionality:
1656+
/// </summary>
1657+
/// <param name="itemsize">
1658+
/// itemsize is the number of characters per scalar in the
1659+
/// resulting array. If itemsize is None, and obj is an
1660+
/// object array or a Python list, the itemsize will be
1661+
/// automatically determined. If itemsize is provided and obj
1662+
/// is of type str or unicode, then the obj string will be
1663+
/// chunked into itemsize pieces.
1664+
/// </param>
1665+
/// <param name="unicode">
1666+
/// When true, the resulting chararray can contain Unicode
1667+
/// characters, when false only 8-bit characters. If unicode is
1668+
/// None and obj is one of the following:
1669+
///
1670+
/// then the unicode setting of the output array will be
1671+
/// automatically determined.
1672+
/// </param>
1673+
/// <param name="order">
1674+
/// Specify the order of the array. If order is ‘C’ (default), then the
1675+
/// array will be in C-contiguous order (last-index varies the
1676+
/// fastest). If order is ‘F’, then the returned array
1677+
/// will be in Fortran-contiguous order (first-index varies the
1678+
/// fastest).
1679+
/// </param>
1680+
public void core_defchararray_asarray(string[] obj, int? itemsize = null, bool? unicode = null, string order = null)
1681+
{
1682+
//auto-generated code, do not change
1683+
var core = self.GetAttr("core");
1684+
var defchararray = core.GetAttr("defchararray");
1685+
var __self__=defchararray;
1686+
var pyargs=ToTuple(new object[]
1687+
{
1688+
obj,
1689+
});
1690+
var kwargs=new PyDict();
1691+
if (itemsize!=null) kwargs["itemsize"]=ToPython(itemsize);
1692+
if (unicode!=null) kwargs["unicode"]=ToPython(unicode);
1693+
if (order!=null) kwargs["order"]=ToPython(order);
1694+
dynamic py = __self__.InvokeMethod("asarray", pyargs, kwargs);
1695+
}
1696+
15951697
/// <summary>
15961698
/// Return evenly spaced values within a given interval.
15971699
///

0 commit comments

Comments
 (0)