// Copyright (c) 2019 by the SciSharp Team // Code generated by CodeMinion: https://github.com/SciSharp/CodeMinion using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.Text; using Python.Runtime; using Numpy.Models; using Python.Included; namespace Numpy { public partial class NumPy { /// /// Trigonometric sine, element-wise.

/// /// Notes /// /// The sine is one of the fundamental functions of trigonometry (the /// mathematical study of triangles).

/// Consider a circle of radius 1 /// centered on the origin.

/// A ray comes in from the axis, makes /// an angle at the origin (measured counter-clockwise from that axis), and /// departs from the origin.

/// The coordinate of the outgoing /// ray’s intersection with the unit circle is the sine of that angle.

/// It /// ranges from -1 for to +1 for The /// function has zeroes where the angle is a multiple of . /// Sines of angles between and are negative.

/// /// The numerous properties of the sine and related functions are included /// in any standard trigonometry text. ///
/// /// Angle, in radians ( rad equals 360 degrees). /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The sine of each element of x.

/// /// This is a scalar if x is a scalar. ///
public NDarray sin(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("sin", pyargs, kwargs); return ToCsharp(py); } /// /// Cosine element-wise.

/// /// Notes /// /// If out is provided, the function writes the result into it, /// and returns a reference to out.

/// (See Examples) /// /// References /// /// M.

/// Abramowitz and I.

/// A.

/// Stegun, Handbook of Mathematical Functions.

/// /// New York, NY: Dover, 1972. ///
/// /// Input array in radians. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The corresponding cosine values.

/// /// This is a scalar if x is a scalar. ///
public NDarray cos(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("cos", pyargs, kwargs); return ToCsharp(py); } /// /// Compute tangent element-wise.

/// /// Equivalent to np.sin(x)/np.cos(x) element-wise.

/// /// Notes /// /// If out is provided, the function writes the result into it, /// and returns a reference to out.

/// (See Examples) /// /// References /// /// M.

/// Abramowitz and I.

/// A.

/// Stegun, Handbook of Mathematical Functions.

/// /// New York, NY: Dover, 1972. ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The corresponding tangent values.

/// /// This is a scalar if x is a scalar. ///
public NDarray tan(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("tan", pyargs, kwargs); return ToCsharp(py); } /// /// Inverse sine, element-wise.

/// /// Notes /// /// arcsin is a multivalued function: for each x there are infinitely /// many numbers z such that . The convention is to /// return the angle z whose real part lies in [-pi/2, pi/2].

/// /// For real-valued input data types, arcsin always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, /// it yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, arcsin is a complex analytic function that /// has, by convention, the branch cuts [-inf, -1] and [1, inf] and is /// continuous from above on the former and from below on the latter.

/// /// The inverse sine is also known as asin or sin^{-1}. /// /// References /// /// Abramowitz, M.

/// and Stegun, I.

/// A., Handbook of Mathematical Functions, /// 10th printing, New York: Dover, 1964, pp.

/// 79ff.

/// /// http://www.math.sfu.ca/~cbm/aands/ ///
/// /// y-coordinate on the unit circle. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The inverse sine of each element in x, in radians and in the /// closed interval [-pi/2, pi/2].

/// /// This is a scalar if x is a scalar. ///
public NDarray arcsin(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("arcsin", pyargs, kwargs); return ToCsharp(py); } /// /// Trigonometric inverse cosine, element-wise.

/// /// The inverse of cos so that, if y = cos(x), then x = arccos(y).

/// /// Notes /// /// arccos is a multivalued function: for each x there are infinitely /// many numbers z such that cos(z) = x.

/// The convention is to return /// the angle z whose real part lies in [0, pi].

/// /// For real-valued input data types, arccos always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, /// it yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, arccos is a complex analytic function that /// has branch cuts [-inf, -1] and [1, inf] and is continuous from /// above on the former and from below on the latter.

/// /// The inverse cos is also known as acos or cos^-1. /// /// References /// /// M.

/// Abramowitz and I.A.

/// Stegun, “Handbook of Mathematical Functions”, /// 10th printing, 1964, pp.

/// 79. http://www.math.sfu.ca/~cbm/aands/ ///
/// /// x-coordinate on the unit circle.

/// /// For real arguments, the domain is [-1, 1]. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The angle of the ray intersecting the unit circle at the given /// x-coordinate in radians [0, pi].

/// /// This is a scalar if x is a scalar. ///
public NDarray arccos(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("arccos", pyargs, kwargs); return ToCsharp(py); } /// /// Trigonometric inverse tangent, element-wise.

/// /// The inverse of tan, so that if y = tan(x) then x = arctan(y).

/// /// Notes /// /// arctan is a multi-valued function: for each x there are infinitely /// many numbers z such that tan(z) = x.

/// The convention is to return /// the angle z whose real part lies in [-pi/2, pi/2].

/// /// For real-valued input data types, arctan always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, /// it yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, arctan is a complex analytic function that /// has [1j, infj] and [-1j, -infj] as branch cuts, and is continuous /// from the left on the former and from the right on the latter.

/// /// The inverse tangent is also known as atan or tan^{-1}. /// /// References /// /// Abramowitz, M.

/// and Stegun, I.

/// A., Handbook of Mathematical Functions, /// 10th printing, New York: Dover, 1964, pp.

/// 79. /// http://www.math.sfu.ca/~cbm/aands/ ///
/// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Out has the same shape as x.

/// Its real part is in /// [-pi/2, pi/2] (arctan(+/-inf) returns +/-pi/2).

/// /// This is a scalar if x is a scalar. ///
public NDarray arctan(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("arctan", pyargs, kwargs); return ToCsharp(py); } /// /// Given the “legs” of a right triangle, return its hypotenuse.

/// /// Equivalent to sqrt(x1**2 + x2**2), element-wise.

/// If x1 or /// x2 is scalar_like (i.e., unambiguously cast-able to a scalar type), /// it is broadcast for use with each element of the other argument.

/// /// (See Examples) ///
/// /// Leg of the triangle(s). /// /// /// Leg of the triangle(s). /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The hypotenuse of the triangle(s).

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray hypot(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("hypot", pyargs, kwargs); return ToCsharp(py); } /// /// Element-wise arc tangent of x1/x2 choosing the quadrant correctly.

/// /// The quadrant (i.e., branch) is chosen so that arctan2(x1, x2) is /// the signed angle in radians between the ray ending at the origin and /// passing through the point (1,0), and the ray ending at the origin and /// passing through the point (x2, x1).

/// (Note the role reversal: the /// “y-coordinate” is the first function parameter, the “x-coordinate” /// is the second.) By IEEE convention, this function is defined for /// x2 = +/-0 and for either or both of x1 and x2 = +/-inf (see /// Notes for specific values).

/// /// This function is not defined for complex-valued arguments; for the /// so-called argument of complex values, use angle.

/// /// Notes /// /// arctan2 is identical to the atan2 function of the underlying /// C library.

/// The following special values are defined in the C /// standard: [1] /// /// Note that +0 and -0 are distinct floating point numbers, as are +inf /// and -inf.

/// /// References ///
/// /// y-coordinates. /// /// /// x-coordinates.

/// x2 must be broadcastable to match the shape of /// x1 or vice versa. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Array of angles in radians, in the range [-pi, pi].

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray arctan2(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("arctan2", pyargs, kwargs); return ToCsharp(py); } /// /// Convert angles from radians to degrees. /// /// /// Input array in radians. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The corresponding degree values; if out was supplied this is a /// reference to it.

/// /// This is a scalar if x is a scalar. ///
public NDarray degrees(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("degrees", pyargs, kwargs); return ToCsharp(py); } /// /// Convert angles from degrees to radians. /// /// /// Input array in degrees. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The corresponding radian values.

/// /// This is a scalar if x is a scalar. ///
public NDarray radians(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("radians", pyargs, kwargs); return ToCsharp(py); } /// /// Unwrap by changing deltas between values to 2*pi complement.

/// /// Unwrap radian phase p by changing absolute jumps greater than /// discont to their 2*pi complement along the given axis.

/// /// Notes /// /// If the discontinuity in p is smaller than pi, but larger than /// discont, no unwrapping is done because taking the 2*pi complement /// would only make the discontinuity larger. ///
/// /// Input array. /// /// /// Maximum discontinuity between values, default is pi. /// /// /// Axis along which unwrap will operate, default is the last axis. /// /// /// Output array. /// public NDarray unwrap(NDarray p, float? discont = 3.141592653589793f, int? axis = -1) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { p, }); var kwargs=new PyDict(); if (discont!=3.141592653589793f) kwargs["discont"]=ToPython(discont); if (axis!=-1) kwargs["axis"]=ToPython(axis); dynamic py = __self__.InvokeMethod("unwrap", pyargs, kwargs); return ToCsharp(py); } /// /// Convert angles from degrees to radians.

/// /// Notes /// /// deg2rad(x) is x * pi / 180. ///
/// /// Angles in degrees. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The corresponding angle in radians.

/// /// This is a scalar if x is a scalar. ///
public NDarray deg2rad(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("deg2rad", pyargs, kwargs); return ToCsharp(py); } /// /// Convert angles from radians to degrees.

/// /// Notes /// /// rad2deg(x) is 180 * x / pi. ///
/// /// Angle in radians. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The corresponding angle in degrees.

/// /// This is a scalar if x is a scalar. ///
public NDarray rad2deg(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("rad2deg", pyargs, kwargs); return ToCsharp(py); } /// /// Hyperbolic sine, element-wise.

/// /// Equivalent to 1/2 * (np.exp(x) - np.exp(-x)) or /// -1j * np.sin(1j*x).

/// /// Notes /// /// If out is provided, the function writes the result into it, /// and returns a reference to out.

/// (See Examples) /// /// References /// /// M.

/// Abramowitz and I.

/// A.

/// Stegun, Handbook of Mathematical Functions.

/// /// New York, NY: Dover, 1972, pg.

/// 83. ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The corresponding hyperbolic sine values.

/// /// This is a scalar if x is a scalar. ///
public NDarray sinh(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("sinh", pyargs, kwargs); return ToCsharp(py); } /// /// Hyperbolic cosine, element-wise.

/// /// Equivalent to 1/2 * (np.exp(x) + np.exp(-x)) and np.cos(1j*x). ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Output array of same shape as x.

/// /// This is a scalar if x is a scalar. ///
public NDarray cosh(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("cosh", pyargs, kwargs); return ToCsharp(py); } /// /// Compute hyperbolic tangent element-wise.

/// /// Equivalent to np.sinh(x)/np.cosh(x) or -1j * np.tan(1j*x).

/// /// Notes /// /// If out is provided, the function writes the result into it, /// and returns a reference to out.

/// (See Examples) /// /// References ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The corresponding hyperbolic tangent values.

/// /// This is a scalar if x is a scalar. ///
public NDarray tanh(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("tanh", pyargs, kwargs); return ToCsharp(py); } /// /// Inverse hyperbolic sine element-wise.

/// /// Notes /// /// arcsinh is a multivalued function: for each x there are infinitely /// many numbers z such that sinh(z) = x.

/// The convention is to return the /// z whose imaginary part lies in [-pi/2, pi/2].

/// /// For real-valued input data types, arcsinh always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, it /// returns nan and sets the invalid floating point error flag.

/// /// For complex-valued input, arccos is a complex analytical function that /// has branch cuts [1j, infj] and [-1j, -infj] and is continuous from /// the right on the former and from the left on the latter.

/// /// The inverse hyperbolic sine is also known as asinh or sinh^-1. /// /// References ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Array of the same shape as x.

/// /// This is a scalar if x is a scalar. ///
public NDarray arcsinh(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("arcsinh", pyargs, kwargs); return ToCsharp(py); } /// /// Inverse hyperbolic cosine, element-wise.

/// /// Notes /// /// arccosh is a multivalued function: for each x there are infinitely /// many numbers z such that cosh(z) = x.

/// The convention is to return the /// z whose imaginary part lies in [-pi, pi] and the real part in /// [0, inf].

/// /// For real-valued input data types, arccosh always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, it /// yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, arccosh is a complex analytical function that /// has a branch cut [-inf, 1] and is continuous from above on it.

/// /// References ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Array of the same shape as x.

/// /// This is a scalar if x is a scalar. ///
public NDarray arccosh(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("arccosh", pyargs, kwargs); return ToCsharp(py); } /// /// Inverse hyperbolic tangent element-wise.

/// /// Notes /// /// arctanh is a multivalued function: for each x there are infinitely /// many numbers z such that tanh(z) = x.

/// The convention is to return /// the z whose imaginary part lies in [-pi/2, pi/2].

/// /// For real-valued input data types, arctanh always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, /// it yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, arctanh is a complex analytical function /// that has branch cuts [-1, -inf] and [1, inf] and is continuous from /// above on the former and from below on the latter.

/// /// The inverse hyperbolic tangent is also known as atanh or tanh^-1. /// /// References ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Array of the same shape as x.

/// /// This is a scalar if x is a scalar. ///
public NDarray arctanh(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("arctanh", pyargs, kwargs); return ToCsharp(py); } /// /// Evenly round to the given number of decimals.

/// /// Notes /// /// For values exactly halfway between rounded decimal values, NumPy /// rounds to the nearest even value.

/// Thus 1.5 and 2.5 round to 2.0, /// -0.5 and 0.5 round to 0.0, etc.

/// Results may also be surprising due /// to the inexact representation of decimal fractions in the IEEE /// floating point standard [1] and errors introduced when scaling /// by powers of ten.

/// /// References ///
/// /// Input data. /// /// /// Number of decimal places to round to (default: 0).

/// If /// decimals is negative, it specifies the number of positions to /// the left of the decimal point. /// /// /// Alternative output array in which to place the result.

/// It must have /// the same shape as the expected output, but the type of the output /// values will be cast if necessary.

/// See doc.ufuncs (Section /// “Output arguments”) for details. /// /// /// An array of the same type as a, containing the rounded values.

/// /// Unless out was specified, a new array is created.

/// A reference to /// the result is returned.

/// /// The real and imaginary parts of complex numbers are rounded /// separately.

/// The result of rounding a float is a float. ///
public NDarray around(NDarray a, int? decimals = 0, NDarray @out = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (decimals!=0) kwargs["decimals"]=ToPython(decimals); if (@out!=null) kwargs["out"]=ToPython(@out); dynamic py = __self__.InvokeMethod("around", pyargs, kwargs); return ToCsharp(py); } /// /// Round elements of the array to the nearest integer. /// /// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Output array is same shape and type as x.

/// /// This is a scalar if x is a scalar. ///
public NDarray rint(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("rint", pyargs, kwargs); return ToCsharp(py); } /// /// Round to nearest integer towards zero.

/// /// Round an array of floats element-wise to nearest integer towards zero.

/// /// The rounded values are returned as floats. ///
/// /// An array of floats to be rounded /// /// /// Output array /// /// /// The array of rounded numbers /// public NDarray fix(NDarray x, NDarray y = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (y!=null) kwargs["y"]=ToPython(y); dynamic py = __self__.InvokeMethod("fix", pyargs, kwargs); return ToCsharp(py); } /// /// Return the floor of the input, element-wise.

/// /// The floor of the scalar x is the largest integer i, such that /// i <= x.

/// It is often denoted as . /// /// Notes /// /// Some spreadsheet programs calculate the “floor-towards-zero”, in other /// words floor(-2.5) == -2. NumPy instead uses the definition of /// floor where floor(-2.5) == -3. ///
/// /// Input data. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The floor of each element in x.

/// /// This is a scalar if x is a scalar. ///
public NDarray floor(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("floor", pyargs, kwargs); return ToCsharp(py); } /// /// Return the ceiling of the input, element-wise.

/// /// The ceil of the scalar x is the smallest integer i, such that /// i >= x.

/// It is often denoted as . ///
/// /// Input data. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The ceiling of each element in x, with float dtype.

/// /// This is a scalar if x is a scalar. ///
public NDarray ceil(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("ceil", pyargs, kwargs); return ToCsharp(py); } /// /// Return the truncated value of the input, element-wise.

/// /// The truncated value of the scalar x is the nearest integer i which /// is closer to zero than x is.

/// In short, the fractional part of the /// signed number x is discarded.

/// /// Notes ///
/// /// Input data. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The truncated value of each element in x.

/// /// This is a scalar if x is a scalar. ///
public NDarray trunc(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("trunc", pyargs, kwargs); return ToCsharp(py); } /// /// Return the product of array elements over a given axis.

/// /// Notes /// /// Arithmetic is modular when using integer types, and no error is /// raised on overflow.

/// That means that, on a 32-bit platform: /// /// The product of an empty array is the neutral element 1: ///
/// /// Input data. /// /// /// Axis or axes along which a product is performed.

/// The default, /// axis=None, will calculate the product of all the elements in the /// input array.

/// If axis is negative it counts from the last to the /// first axis.

/// /// If axis is a tuple of ints, a product is performed on all of the /// axes specified in the tuple instead of a single axis or all the /// axes as before. /// /// /// The type of the returned array, as well as of the accumulator in /// which the elements are multiplied.

/// The dtype of a is used by /// default unless a has an integer dtype of less precision than the /// default platform integer.

/// In that case, if a is signed then the /// platform integer is used while if a is unsigned then an unsigned /// integer of the same precision as the platform integer is used. /// /// /// Alternative output array in which to place the result.

/// It must have /// the same shape as the expected output, but the type of the output /// values will be cast if necessary. /// /// /// If this is set to True, the axes which are reduced are left in the /// result as dimensions with size one.

/// With this option, the result /// will broadcast correctly against the input array.

/// /// If the default value is passed, then keepdims will not be /// passed through to the prod method of sub-classes of /// ndarray, however any non-default value will be.

/// If the /// sub-class’ method does not implement keepdims any /// exceptions will be raised. /// /// /// The starting value for this product.

/// See reduce for details. /// /// /// An array shaped as a but with the specified axis removed.

/// /// Returns a reference to out if specified. ///
public NDarray prod(NDarray a, int[] axis = null, Dtype dtype = null, NDarray @out = null, bool? keepdims = null, ValueType initial = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (axis!=null) kwargs["axis"]=ToPython(axis); if (dtype!=null) kwargs["dtype"]=ToPython(dtype); if (@out!=null) kwargs["out"]=ToPython(@out); if (keepdims!=null) kwargs["keepdims"]=ToPython(keepdims); if (initial!=null) kwargs["initial"]=ToPython(initial); dynamic py = __self__.InvokeMethod("prod", pyargs, kwargs); return ToCsharp(py); } /// /// Sum of array elements over a given axis.

/// /// Notes /// /// Arithmetic is modular when using integer types, and no error is /// raised on overflow.

/// /// The sum of an empty array is the neutral element 0: ///
/// /// Elements to sum. /// /// /// Axis or axes along which a sum is performed.

/// The default, /// axis=None, will sum all of the elements of the input array.

/// If /// axis is negative it counts from the last to the first axis.

/// /// If axis is a tuple of ints, a sum is performed on all of the axes /// specified in the tuple instead of a single axis or all the axes as /// before. /// /// /// The type of the returned array and of the accumulator in which the /// elements are summed.

/// The dtype of a is used by default unless a /// has an integer dtype of less precision than the default platform /// integer.

/// In that case, if a is signed then the platform integer /// is used while if a is unsigned then an unsigned integer of the /// same precision as the platform integer is used. /// /// /// Alternative output array in which to place the result.

/// It must have /// the same shape as the expected output, but the type of the output /// values will be cast if necessary. /// /// /// If this is set to True, the axes which are reduced are left /// in the result as dimensions with size one.

/// With this option, /// the result will broadcast correctly against the input array.

/// /// If the default value is passed, then keepdims will not be /// passed through to the sum method of sub-classes of /// ndarray, however any non-default value will be.

/// If the /// sub-class’ method does not implement keepdims any /// exceptions will be raised. /// /// /// Starting value for the sum.

/// See reduce for details. /// /// /// An array with the same shape as a, with the specified /// axis removed.

/// If a is a 0-d array, or if axis is None, a scalar /// is returned.

/// If an output array is specified, a reference to /// out is returned. ///
public NDarray sum(NDarray a, int[] axis = null, Dtype dtype = null, NDarray @out = null, bool? keepdims = null, ValueType initial = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (axis!=null) kwargs["axis"]=ToPython(axis); if (dtype!=null) kwargs["dtype"]=ToPython(dtype); if (@out!=null) kwargs["out"]=ToPython(@out); if (keepdims!=null) kwargs["keepdims"]=ToPython(keepdims); if (initial!=null) kwargs["initial"]=ToPython(initial); dynamic py = __self__.InvokeMethod("sum", pyargs, kwargs); return ToCsharp(py); } /// /// Return the product of array elements over a given axis treating Not a /// Numbers (NaNs) as ones.

/// /// One is returned for slices that are all-NaN or empty. ///
/// /// Array containing numbers whose product is desired.

/// If a is not an /// array, a conversion is attempted. /// /// /// Axis or axes along which the product is computed.

/// The default is to compute /// the product of the flattened array. /// /// /// The type of the returned array and of the accumulator in which the /// elements are summed.

/// By default, the dtype of a is used.

/// An /// exception is when a has an integer type with less precision than /// the platform (u)intp.

/// In that case, the default will be either /// (u)int32 or (u)int64 depending on whether the platform is 32 or 64 /// bits.

/// For inexact inputs, dtype must be inexact. /// /// /// Alternate output array in which to place the result.

/// The default /// is None.

/// If provided, it must have the same shape as the /// expected output, but the type will be cast if necessary.

/// See /// doc.ufuncs for details.

/// The casting of NaN to integer can yield /// unexpected results. /// /// /// If True, the axes which are reduced are left in the result as /// dimensions with size one.

/// With this option, the result will /// broadcast correctly against the original arr. /// /// /// A new array holding the result is returned unless out is /// specified, in which case it is returned. /// public NDarray nanprod(NDarray a, int[] axis = null, Dtype dtype = null, NDarray @out = null, bool? keepdims = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (axis!=null) kwargs["axis"]=ToPython(axis); if (dtype!=null) kwargs["dtype"]=ToPython(dtype); if (@out!=null) kwargs["out"]=ToPython(@out); if (keepdims!=null) kwargs["keepdims"]=ToPython(keepdims); dynamic py = __self__.InvokeMethod("nanprod", pyargs, kwargs); return ToCsharp(py); } /// /// Return the sum of array elements over a given axis treating Not a /// Numbers (NaNs) as zero.

/// /// In NumPy versions <= 1.9.0 Nan is returned for slices that are all-NaN or /// empty.

/// In later versions zero is returned.

/// /// Notes /// /// If both positive and negative infinity are present, the sum will be Not /// A Number (NaN). ///
/// /// Array containing numbers whose sum is desired.

/// If a is not an /// array, a conversion is attempted. /// /// /// Axis or axes along which the sum is computed.

/// The default is to compute the /// sum of the flattened array. /// /// /// The type of the returned array and of the accumulator in which the /// elements are summed.

/// By default, the dtype of a is used.

/// An /// exception is when a has an integer type with less precision than /// the platform (u)intp.

/// In that case, the default will be either /// (u)int32 or (u)int64 depending on whether the platform is 32 or 64 /// bits.

/// For inexact inputs, dtype must be inexact. /// /// /// Alternate output array in which to place the result.

/// The default /// is None.

/// If provided, it must have the same shape as the /// expected output, but the type will be cast if necessary.

/// See /// doc.ufuncs for details.

/// The casting of NaN to integer can yield /// unexpected results. /// /// /// If this is set to True, the axes which are reduced are left /// in the result as dimensions with size one.

/// With this option, /// the result will broadcast correctly against the original a.

/// /// If the value is anything but the default, then /// keepdims will be passed through to the mean or sum methods /// of sub-classes of ndarray.

/// If the sub-classes methods /// does not implement keepdims any exceptions will be raised. /// /// /// A new array holding the result is returned unless out is /// specified, in which it is returned.

/// The result has the same /// size as a, and the same shape as a if axis is not None /// or a is a 1-d array. ///
public NDarray nansum(NDarray a, int[] axis = null, Dtype dtype = null, NDarray @out = null, bool? keepdims = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (axis!=null) kwargs["axis"]=ToPython(axis); if (dtype!=null) kwargs["dtype"]=ToPython(dtype); if (@out!=null) kwargs["out"]=ToPython(@out); if (keepdims!=null) kwargs["keepdims"]=ToPython(keepdims); dynamic py = __self__.InvokeMethod("nansum", pyargs, kwargs); return ToCsharp(py); } /// /// Return the cumulative product of elements along a given axis.

/// /// Notes /// /// Arithmetic is modular when using integer types, and no error is /// raised on overflow. ///
/// /// Input array. /// /// /// Axis along which the cumulative product is computed.

/// By default /// the input is flattened. /// /// /// Type of the returned array, as well as of the accumulator in which /// the elements are multiplied.

/// If dtype is not specified, it /// defaults to the dtype of a, unless a has an integer dtype with /// a precision less than that of the default platform integer.

/// In /// that case, the default platform integer is used instead. /// /// /// Alternative output array in which to place the result.

/// It must /// have the same shape and buffer length as the expected output /// but the type of the resulting values will be cast if necessary. /// /// /// A new array holding the result is returned unless out is /// specified, in which case a reference to out is returned. /// public NDarray cumprod(NDarray a, int? axis = null, Dtype dtype = null, NDarray @out = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (axis!=null) kwargs["axis"]=ToPython(axis); if (dtype!=null) kwargs["dtype"]=ToPython(dtype); if (@out!=null) kwargs["out"]=ToPython(@out); dynamic py = __self__.InvokeMethod("cumprod", pyargs, kwargs); return ToCsharp(py); } /// /// Return the cumulative sum of the elements along a given axis.

/// /// Notes /// /// Arithmetic is modular when using integer types, and no error is /// raised on overflow. ///
/// /// Input array. /// /// /// Axis along which the cumulative sum is computed.

/// The default /// (None) is to compute the cumsum over the flattened array. /// /// /// Type of the returned array and of the accumulator in which the /// elements are summed.

/// If dtype is not specified, it defaults /// to the dtype of a, unless a has an integer dtype with a /// precision less than that of the default platform integer.

/// In /// that case, the default platform integer is used. /// /// /// Alternative output array in which to place the result.

/// It must /// have the same shape and buffer length as the expected output /// but the type will be cast if necessary.

/// See doc.ufuncs /// (Section “Output arguments”) for more details. /// /// /// A new array holding the result is returned unless out is /// specified, in which case a reference to out is returned.

/// The /// result has the same size as a, and the same shape as a if /// axis is not None or a is a 1-d array. ///
public NDarray cumsum(NDarray a, int? axis = null, Dtype dtype = null, NDarray @out = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (axis!=null) kwargs["axis"]=ToPython(axis); if (dtype!=null) kwargs["dtype"]=ToPython(dtype); if (@out!=null) kwargs["out"]=ToPython(@out); dynamic py = __self__.InvokeMethod("cumsum", pyargs, kwargs); return ToCsharp(py); } /// /// Return the cumulative product of array elements over a given axis treating Not a /// Numbers (NaNs) as one.

/// The cumulative product does not change when NaNs are /// encountered and leading NaNs are replaced by ones.

/// /// Ones are returned for slices that are all-NaN or empty. ///
/// /// Input array. /// /// /// Axis along which the cumulative product is computed.

/// By default /// the input is flattened. /// /// /// Type of the returned array, as well as of the accumulator in which /// the elements are multiplied.

/// If dtype is not specified, it /// defaults to the dtype of a, unless a has an integer dtype with /// a precision less than that of the default platform integer.

/// In /// that case, the default platform integer is used instead. /// /// /// Alternative output array in which to place the result.

/// It must /// have the same shape and buffer length as the expected output /// but the type of the resulting values will be cast if necessary. /// /// /// A new array holding the result is returned unless out is /// specified, in which case it is returned. /// public NDarray nancumprod(NDarray a, int? axis = null, Dtype dtype = null, NDarray @out = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (axis!=null) kwargs["axis"]=ToPython(axis); if (dtype!=null) kwargs["dtype"]=ToPython(dtype); if (@out!=null) kwargs["out"]=ToPython(@out); dynamic py = __self__.InvokeMethod("nancumprod", pyargs, kwargs); return ToCsharp(py); } /// /// Return the cumulative sum of array elements over a given axis treating Not a /// Numbers (NaNs) as zero.

/// The cumulative sum does not change when NaNs are /// encountered and leading NaNs are replaced by zeros.

/// /// Zeros are returned for slices that are all-NaN or empty. ///
/// /// Input array. /// /// /// Axis along which the cumulative sum is computed.

/// The default /// (None) is to compute the cumsum over the flattened array. /// /// /// Type of the returned array and of the accumulator in which the /// elements are summed.

/// If dtype is not specified, it defaults /// to the dtype of a, unless a has an integer dtype with a /// precision less than that of the default platform integer.

/// In /// that case, the default platform integer is used. /// /// /// Alternative output array in which to place the result.

/// It must /// have the same shape and buffer length as the expected output /// but the type will be cast if necessary.

/// See doc.ufuncs /// (Section “Output arguments”) for more details. /// /// /// A new array holding the result is returned unless out is /// specified, in which it is returned.

/// The result has the same /// size as a, and the same shape as a if axis is not None /// or a is a 1-d array. ///
public NDarray nancumsum(NDarray a, int? axis = null, Dtype dtype = null, NDarray @out = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (axis!=null) kwargs["axis"]=ToPython(axis); if (dtype!=null) kwargs["dtype"]=ToPython(dtype); if (@out!=null) kwargs["out"]=ToPython(@out); dynamic py = __self__.InvokeMethod("nancumsum", pyargs, kwargs); return ToCsharp(py); } /// /// Calculate the n-th discrete difference along the given axis.

/// /// The first difference is given by out[n] = a[n+1] - a[n] along /// the given axis, higher differences are calculated by using diff /// recursively.

/// /// Notes /// /// Type is preserved for boolean arrays, so the result will contain /// False when consecutive elements are the same and True when they /// differ.

/// /// For unsigned integer arrays, the results will also be unsigned.

/// This /// should not be surprising, as the result is consistent with /// calculating the difference directly: /// /// If this is not desirable, then the array should be cast to a larger /// integer type first: ///
/// /// Input array /// /// /// The number of times values are differenced.

/// If zero, the input /// is returned as-is. /// /// /// The axis along which the difference is taken, default is the /// last axis. /// /// /// Values to prepend or append to “a” along axis prior to /// performing the difference.

/// Scalar values are expanded to /// arrays with length 1 in the direction of axis and the shape /// of the input array in along all other axes.

/// Otherwise the /// dimension and shape must match “a” except along axis. /// /// /// Values to prepend or append to “a” along axis prior to /// performing the difference.

/// Scalar values are expanded to /// arrays with length 1 in the direction of axis and the shape /// of the input array in along all other axes.

/// Otherwise the /// dimension and shape must match “a” except along axis. /// /// /// The n-th differences.

/// The shape of the output is the same as a /// except along axis where the dimension is smaller by n.

/// The /// type of the output is the same as the type of the difference /// between any two elements of a.

/// This is the same as the type of /// a in most cases.

/// A notable exception is datetime64, which /// results in a timedelta64 output array. ///
public NDarray diff(NDarray a, int? n = 1, int? axis = -1, NDarray append = null, NDarray prepend = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (n!=1) kwargs["n"]=ToPython(n); if (axis!=-1) kwargs["axis"]=ToPython(axis); if (append!=null) kwargs["append"]=ToPython(append); if (prepend!=null) kwargs["prepend"]=ToPython(prepend); dynamic py = __self__.InvokeMethod("diff", pyargs, kwargs); return ToCsharp(py); } /// /// The differences between consecutive elements of an array.

/// /// Notes /// /// When applied to masked arrays, this function drops the mask information /// if the to_begin and/or to_end parameters are used. ///
/// /// If necessary, will be flattened before the differences are taken. /// /// /// Number(s) to append at the end of the returned differences. /// /// /// Number(s) to prepend at the beginning of the returned differences. /// /// /// The differences.

/// Loosely, this is ary.flat[1:] - ary.flat[:-1]. ///
public NDarray ediff1d(NDarray ary, NDarray to_end = null, NDarray to_begin = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { ary, }); var kwargs=new PyDict(); if (to_end!=null) kwargs["to_end"]=ToPython(to_end); if (to_begin!=null) kwargs["to_begin"]=ToPython(to_begin); dynamic py = __self__.InvokeMethod("ediff1d", pyargs, kwargs); return ToCsharp(py); } /// /// Return the gradient of an N-dimensional array.

/// /// The gradient is computed using second order accurate central differences /// in the interior points and either first or second order accurate one-sides /// (forward or backwards) differences at the boundaries.

/// /// The returned gradient hence has the same shape as the input array.

/// /// Notes /// /// Assuming that (i.e., has at least 3 continuous /// derivatives) and let be a non-homogeneous stepsize, we /// minimize the “consistency error” between the true gradient /// and its estimate from a linear combination of the neighboring grid-points: /// /// By substituting and /// with their Taylor series expansion, this translates into solving /// the following the linear system: /// /// The resulting approximation of is the following: /// /// It is worth noting that if /// (i.e., data are evenly spaced) /// we find the standard second order approximation: /// /// With a similar procedure the forward/backward approximations used for /// boundaries can be derived.

/// /// References ///
/// /// An N-dimensional array containing samples of a scalar function. /// /// /// Spacing between f values.

/// Default unitary spacing for all dimensions.

/// /// Spacing can be specified using: /// /// If axis is given, the number of varargs must equal the number of axes.

/// /// Default: 1. /// /// /// Gradient is calculated using N-th order accurate differences /// at the boundaries.

/// Default: 1. /// /// /// Gradient is calculated only along the given axis or axes /// The default (axis = None) is to calculate the gradient for all the axes /// of the input array.

/// axis may be negative, in which case it counts from /// the last to the first axis. /// /// /// A set of ndarrays (or a single ndarray if there is only one dimension) /// corresponding to the derivatives of f with respect to each dimension.

/// /// Each derivative has the same shape as f. ///
public NDarray gradient(NDarray f, NDarray varargs = null, int? edge_order = null, int[] axis = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { f, }); var kwargs=new PyDict(); if (varargs!=null) kwargs["varargs"]=ToPython(varargs); if (edge_order!=null) kwargs["edge_order"]=ToPython(edge_order); if (axis!=null) kwargs["axis"]=ToPython(axis); dynamic py = __self__.InvokeMethod("gradient", pyargs, kwargs); return ToCsharp(py); } /// /// Return the cross product of two (arrays of) vectors.

/// /// The cross product of a and b in is a vector perpendicular /// to both a and b.

/// If a and b are arrays of vectors, the vectors /// are defined by the last axis of a and b by default, and these axes /// can have dimensions 2 or 3.

/// Where the dimension of either a or b is /// 2, the third component of the input vector is assumed to be zero and the /// cross product calculated accordingly.

/// In cases where both input vectors /// have dimension 2, the z-component of the cross product is returned.

/// /// Notes /// /// Supports full broadcasting of the inputs. ///
/// /// Components of the first vector(s). /// /// /// Components of the second vector(s). /// /// /// Axis of a that defines the vector(s).

/// By default, the last axis. /// /// /// Axis of b that defines the vector(s).

/// By default, the last axis. /// /// /// Axis of c containing the cross product vector(s).

/// Ignored if /// both input vectors have dimension 2, as the return is scalar.

/// /// By default, the last axis. /// /// /// If defined, the axis of a, b and c that defines the vector(s) /// and cross product(s).

/// Overrides axisa, axisb and axisc. /// /// /// Vector cross product(s). /// public NDarray cross(NDarray a, NDarray b, int? axisa = -1, int? axisb = -1, int? axisc = -1, int? axis = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, b, }); var kwargs=new PyDict(); if (axisa!=-1) kwargs["axisa"]=ToPython(axisa); if (axisb!=-1) kwargs["axisb"]=ToPython(axisb); if (axisc!=-1) kwargs["axisc"]=ToPython(axisc); if (axis!=null) kwargs["axis"]=ToPython(axis); dynamic py = __self__.InvokeMethod("cross", pyargs, kwargs); return ToCsharp(py); } /// /// Integrate along the given axis using the composite trapezoidal rule.

/// /// Integrate y (x) along given axis.

/// /// Notes /// /// Image [2] illustrates trapezoidal rule – y-axis locations of points /// will be taken from y array, by default x-axis distances between /// points will be 1.0, alternatively they can be provided with x array /// or with dx scalar.

/// Return value will be equal to combined area under /// the red lines.

/// /// References ///
/// /// Input array to integrate. /// /// /// The sample points corresponding to the y values.

/// If x is None, /// the sample points are assumed to be evenly spaced dx apart.

/// The /// default is None. /// /// /// The spacing between sample points when x is None.

/// The default is 1. /// /// /// The axis along which to integrate. /// /// /// Definite integral as approximated by trapezoidal rule. /// public float trapz(NDarray y, NDarray x = null, float? dx = 1.0f, int? axis = -1) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { y, }); var kwargs=new PyDict(); if (x!=null) kwargs["x"]=ToPython(x); if (dx!=1.0f) kwargs["dx"]=ToPython(dx); if (axis!=-1) kwargs["axis"]=ToPython(axis); dynamic py = __self__.InvokeMethod("trapz", pyargs, kwargs); return ToCsharp(py); } /// /// Calculate the exponential of all elements in the input array.

/// /// Notes /// /// The irrational number e is also known as Euler’s number.

/// It is /// approximately 2.718281, and is the base of the natural logarithm, /// ln (this means that, if , /// then . For real input, exp(x) is always positive.

/// /// For complex arguments, x = a + ib, we can write /// . The first term, , is already /// known (it is the real argument, described above).

/// The second term, /// , is , a function with /// magnitude 1 and a periodic phase.

/// /// References ///
/// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Output array, element-wise exponential of x.

/// /// This is a scalar if x is a scalar. ///
public NDarray exp(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("exp", pyargs, kwargs); return ToCsharp(py); } /// /// Calculate exp(x) - 1 for all elements in the array.

/// /// Notes /// /// This function provides greater precision than exp(x) - 1 /// for small values of x. ///
/// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Element-wise exponential minus one: out = exp(x) - 1.

/// /// This is a scalar if x is a scalar. ///
public NDarray expm1(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("expm1", pyargs, kwargs); return ToCsharp(py); } /// /// Calculate 2**p for all p in the input array.

/// /// Notes ///
/// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Element-wise 2 to the power x.

/// /// This is a scalar if x is a scalar. ///
public NDarray exp2(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("exp2", pyargs, kwargs); return ToCsharp(py); } /// /// Natural logarithm, element-wise.

/// /// The natural logarithm log is the inverse of the exponential function, /// so that log(exp(x)) = x.

/// The natural logarithm is logarithm in base /// e.

/// /// Notes /// /// Logarithm is a multivalued function: for each x there is an infinite /// number of z such that exp(z) = x.

/// The convention is to return the /// z whose imaginary part lies in [-pi, pi].

/// /// For real-valued input data types, log always returns real output.

/// For /// each value that cannot be expressed as a real number or infinity, it /// yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, log is a complex analytical function that /// has a branch cut [-inf, 0] and is continuous from above on it.

/// log /// handles the floating-point negative zero as an infinitesimal negative /// number, conforming to the C99 standard.

/// /// References ///
/// /// Input value. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The natural logarithm of x, element-wise.

/// /// This is a scalar if x is a scalar. ///
public NDarray log(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("log", pyargs, kwargs); return ToCsharp(py); } /// /// Return the base 10 logarithm of the input array, element-wise.

/// /// Notes /// /// Logarithm is a multivalued function: for each x there is an infinite /// number of z such that 10**z = x.

/// The convention is to return the /// z whose imaginary part lies in [-pi, pi].

/// /// For real-valued input data types, log10 always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, /// it yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, log10 is a complex analytical function that /// has a branch cut [-inf, 0] and is continuous from above on it.

/// /// log10 handles the floating-point negative zero as an infinitesimal /// negative number, conforming to the C99 standard.

/// /// References ///
/// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The logarithm to the base 10 of x, element-wise.

/// NaNs are /// returned where x is negative.

/// /// This is a scalar if x is a scalar. ///
public NDarray log10(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("log10", pyargs, kwargs); return ToCsharp(py); } /// /// Base-2 logarithm of x.

/// /// Notes /// /// Logarithm is a multivalued function: for each x there is an infinite /// number of z such that 2**z = x.

/// The convention is to return the z /// whose imaginary part lies in [-pi, pi].

/// /// For real-valued input data types, log2 always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, /// it yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, log2 is a complex analytical function that /// has a branch cut [-inf, 0] and is continuous from above on it.

/// log2 /// handles the floating-point negative zero as an infinitesimal negative /// number, conforming to the C99 standard. ///
/// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Base-2 logarithm of x.

/// /// This is a scalar if x is a scalar. ///
public NDarray log2(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("log2", pyargs, kwargs); return ToCsharp(py); } /// /// Return the natural logarithm of one plus the input array, element-wise.

/// /// Calculates log(1 + x).

/// /// Notes /// /// For real-valued input, log1p is accurate also for x so small /// that 1 + x == 1 in floating-point accuracy.

/// /// Logarithm is a multivalued function: for each x there is an infinite /// number of z such that exp(z) = 1 + x.

/// The convention is to return /// the z whose imaginary part lies in [-pi, pi].

/// /// For real-valued input data types, log1p always returns real output.

/// /// For each value that cannot be expressed as a real number or infinity, /// it yields nan and sets the invalid floating point error flag.

/// /// For complex-valued input, log1p is a complex analytical function that /// has a branch cut [-inf, -1] and is continuous from above on it.

/// /// log1p handles the floating-point negative zero as an infinitesimal /// negative number, conforming to the C99 standard.

/// /// References ///
/// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Natural logarithm of 1 + x, element-wise.

/// /// This is a scalar if x is a scalar. ///
public NDarray log1p(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("log1p", pyargs, kwargs); return ToCsharp(py); } /// /// Logarithm of the sum of exponentiations of the inputs.

/// /// Calculates log(exp(x1) + exp(x2)).

/// This function is useful in /// statistics where the calculated probabilities of events may be so small /// as to exceed the range of normal floating point numbers.

/// In such cases /// the logarithm of the calculated probability is stored.

/// This function /// allows adding probabilities stored in such a fashion.

/// /// Notes ///
/// /// Input values. /// /// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Logarithm of exp(x1) + exp(x2).

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray logaddexp(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("logaddexp", pyargs, kwargs); return ToCsharp(py); } /// /// Logarithm of the sum of exponentiations of the inputs in base-2. /// /// Calculates log2(2**x1 + 2**x2).

/// This function is useful in machine /// learning when the calculated probabilities of events may be so small as /// to exceed the range of normal floating point numbers.

/// In such cases /// the base-2 logarithm of the calculated probability can be used instead.

/// /// This function allows adding probabilities stored in such a fashion.

/// /// Notes ///
/// /// Input values. /// /// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Base-2 logarithm of 2**x1 + 2**x2. /// This is a scalar if both x1 and x2 are scalars. /// public NDarray logaddexp2(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("logaddexp2", pyargs, kwargs); return ToCsharp(py); } /// /// Return the sinc function.

/// /// The sinc function is . /// /// Notes /// /// sinc(0) is the limit value 1.

/// /// The name sinc is short for “sine cardinal” or “sinus cardinalis”. /// /// The sinc function is used in various signal processing applications, /// including in anti-aliasing, in the construction of a Lanczos resampling /// filter, and in interpolation.

/// /// For bandlimited interpolation of discrete-time signals, the ideal /// interpolation kernel is proportional to the sinc function.

/// /// References ///
/// /// Array (possibly multi-dimensional) of values for which to to /// calculate sinc(x). /// /// /// sinc(x), which has the same shape as the input. /// public NDarray sinc(NDarray x) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); dynamic py = __self__.InvokeMethod("sinc", pyargs, kwargs); return ToCsharp(py); } /// /// Returns element-wise True where signbit is set (less than zero). /// /// /// The input value(s). /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Output array, or reference to out if that was supplied.

/// /// This is a scalar if x is a scalar. ///
public NDarray signbit(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("signbit", pyargs, kwargs); return ToCsharp(py); } /// /// Change the sign of x1 to that of x2, element-wise.

/// /// If both arguments are arrays or sequences, they have to be of the same /// length.

/// If x2 is a scalar, its sign will be copied to all elements of /// x1. ///
/// /// Values to change the sign of. /// /// /// The sign of x2 is copied to x1. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The values of x1 with the sign of x2. /// This is a scalar if both x1 and x2 are scalars. /// public NDarray copysign(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("copysign", pyargs, kwargs); return ToCsharp(py); } /// /// Decompose the elements of x into mantissa and twos exponent.

/// /// Returns (mantissa, exponent), where x = mantissa * 2**exponent`. /// The mantissa is lies in the open interval(-1, 1), while the twos /// exponent is a signed integer.

/// /// Notes /// /// Complex dtypes are not supported, they will raise a TypeError. ///
/// /// Array of numbers to be decomposed. /// /// /// Output array for the mantissa.

/// Must have the same shape as x. /// /// /// Output array for the exponent.

/// Must have the same shape as x. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// A tuple of: /// mantissa /// Floating values between -1 and 1. /// This is a scalar if x is a scalar. /// exponent /// Integer exponents of 2. /// This is a scalar if x is a scalar. /// public (NDarray, NDarray) frexp(NDarray x, NDarray out1 = null, NDarray out2 = null, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (out1!=null) kwargs["out1"]=ToPython(out1); if (out2!=null) kwargs["out2"]=ToPython(out2); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("frexp", pyargs, kwargs); var t = py as PyTuple; return (ToCsharp(t[0]), ToCsharp(t[1])); } /// /// Returns x1 * 2**x2, element-wise.

/// /// The mantissas x1 and twos exponents x2 are used to construct /// floating point numbers x1 * 2**x2. /// /// Notes /// /// Complex dtypes are not supported, they will raise a TypeError.

/// /// ldexp is useful as the inverse of frexp, if used by itself it is /// more clear to simply use the expression x1 * 2**x2. ///
/// /// Array of multipliers. /// /// /// Array of twos exponents. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The result of x1 * 2**x2. /// This is a scalar if both x1 and x2 are scalars. /// public NDarray ldexp(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("ldexp", pyargs, kwargs); return ToCsharp(py); } /// /// Return the next floating-point value after x1 towards x2, element-wise. /// /// /// Values to find the next representable value of. /// /// /// The direction where to look for the next representable value of x1. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The next representable values of x1 in the direction of x2. /// This is a scalar if both x1 and x2 are scalars. /// public NDarray nextafter(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("nextafter", pyargs, kwargs); return ToCsharp(py); } /// /// Return the distance between x and the nearest adjacent number.

/// /// Notes /// /// It can be considered as a generalization of EPS: /// spacing(np.float64(1)) == np.finfo(np.float64).eps, and there /// should not be any representable number between x + spacing(x) and /// x for any finite x.

/// /// Spacing of +- inf and NaN is NaN. ///
/// /// Values to find the spacing of. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The spacing of values of x.

/// /// This is a scalar if x is a scalar. ///
public NDarray spacing(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("spacing", pyargs, kwargs); return ToCsharp(py); } /// /// Returns the lowest common multiple of |x1| and |x2| /// /// /// Arrays of values /// /// /// Arrays of values /// /// /// The lowest common multiple of the absolute value of the inputs /// This is a scalar if both x1 and x2 are scalars. /// public NDarray lcm(NDarray x2, NDarray x1) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); dynamic py = __self__.InvokeMethod("lcm", pyargs, kwargs); return ToCsharp(py); } /// /// Returns the greatest common divisor of |x1| and |x2| /// /// /// Arrays of values /// /// /// Arrays of values /// /// /// The greatest common divisor of the absolute value of the inputs /// This is a scalar if both x1 and x2 are scalars. /// public NDarray gcd(NDarray x2, NDarray x1) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); dynamic py = __self__.InvokeMethod("gcd", pyargs, kwargs); return ToCsharp(py); } /// /// Add arguments element-wise.

/// /// Notes /// /// Equivalent to x1 + x2 in terms of array broadcasting. ///
/// /// The arrays to be added.

/// If x1.shape != x2.shape, they must be /// broadcastable to a common shape (which may be the shape of one or /// the other). /// /// /// The arrays to be added.

/// If x1.shape != x2.shape, they must be /// broadcastable to a common shape (which may be the shape of one or /// the other). /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The sum of x1 and x2, element-wise.

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray @add(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("add", pyargs, kwargs); return ToCsharp(py); } /// /// Return the reciprocal of the argument, element-wise.

/// /// Calculates 1/x.

/// /// Notes /// /// For integer arguments with absolute value larger than 1 the result is /// always zero because of the way Python handles integer division.

/// For /// integer zero the result is an overflow. ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Return array.

/// /// This is a scalar if x is a scalar. ///
public NDarray reciprocal(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("reciprocal", pyargs, kwargs); return ToCsharp(py); } /// /// Numerical positive, element-wise.

/// /// Notes /// /// Equivalent to x.copy(), but only defined for types that support /// arithmetic. ///
/// /// Input array. /// /// /// Returned array or scalar: y = +x.

/// /// This is a scalar if x is a scalar. ///
public NDarray positive(NDarray x) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); dynamic py = __self__.InvokeMethod("positive", pyargs, kwargs); return ToCsharp(py); } /// /// Numerical negative, element-wise. /// /// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Returned array or scalar: y = -x.

/// /// This is a scalar if x is a scalar. ///
public NDarray negative(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("negative", pyargs, kwargs); return ToCsharp(py); } /// /// Multiply arguments element-wise.

/// /// Notes /// /// Equivalent to x1 * x2 in terms of array broadcasting. ///
/// /// Input arrays to be multiplied. /// /// /// Input arrays to be multiplied. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The product of x1 and x2, element-wise.

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray multiply(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("multiply", pyargs, kwargs); return ToCsharp(py); } /// /// Returns a true division of the inputs, element-wise.

/// /// Instead of the Python traditional ‘floor division’, this returns a true /// division.

/// True division adjusts the output type to present the best /// answer, regardless of input types.

/// /// Notes /// /// The floor division operator // was added in Python 2.2 making /// // and / equivalent operators.

/// The default floor division /// operation of / can be replaced by true division with from /// __future__ import division.

/// /// In Python 3.0, // is the floor division operator and / the /// true division operator.

/// The true_divide(x1, x2) function is /// equivalent to true division in Python. ///
/// /// Dividend array. /// /// /// Divisor array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// This is a scalar if both x1 and x2 are scalars. /// public NDarray divide(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("divide", pyargs, kwargs); return ToCsharp(py); } /// /// First array elements raised to powers from second array, element-wise.

/// /// Raise each base in x1 to the positionally-corresponding power in /// x2. x1 and x2 must be broadcastable to the same shape.

/// Note that an /// integer type raised to a negative integer power will raise a ValueError. ///
/// /// The bases. /// /// /// The exponents. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The bases in x1 raised to the exponents in x2. /// This is a scalar if both x1 and x2 are scalars. /// public NDarray power(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("power", pyargs, kwargs); return ToCsharp(py); } /// /// Subtract arguments, element-wise.

/// /// Notes /// /// Equivalent to x1 - x2 in terms of array broadcasting. ///
/// /// The arrays to be subtracted from each other. /// /// /// The arrays to be subtracted from each other. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The difference of x1 and x2, element-wise.

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray subtract(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("subtract", pyargs, kwargs); return ToCsharp(py); } /// /// Returns a true division of the inputs, element-wise.

/// /// Instead of the Python traditional ‘floor division’, this returns a true /// division.

/// True division adjusts the output type to present the best /// answer, regardless of input types.

/// /// Notes /// /// The floor division operator // was added in Python 2.2 making /// // and / equivalent operators.

/// The default floor division /// operation of / can be replaced by true division with from /// __future__ import division.

/// /// In Python 3.0, // is the floor division operator and / the /// true division operator.

/// The true_divide(x1, x2) function is /// equivalent to true division in Python. ///
/// /// Dividend array. /// /// /// Divisor array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// This is a scalar if both x1 and x2 are scalars. /// public NDarray true_divide(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("true_divide", pyargs, kwargs); return ToCsharp(py); } /// /// Return the largest integer smaller or equal to the division of the inputs.

/// /// It is equivalent to the Python // operator and pairs with the /// Python % (remainder), function so that b = a % b + b * (a // b) /// up to roundoff. ///
/// /// Numerator. /// /// /// Denominator. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// y = floor(x1/x2) /// This is a scalar if both x1 and x2 are scalars. /// public NDarray floor_divide(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("floor_divide", pyargs, kwargs); return ToCsharp(py); } /// /// First array elements raised to powers from second array, element-wise.

/// /// Raise each base in x1 to the positionally-corresponding power in x2. /// x1 and x2 must be broadcastable to the same shape.

/// This differs from /// the power function in that integers, float16, and float32 are promoted to /// floats with a minimum precision of float64 so that the result is always /// inexact.

/// The intent is that the function will return a usable result for /// negative powers and seldom overflow for positive powers. ///
/// /// The bases. /// /// /// The exponents. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The bases in x1 raised to the exponents in x2. /// This is a scalar if both x1 and x2 are scalars. /// public NDarray float_power(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("float_power", pyargs, kwargs); return ToCsharp(py); } /// /// Return the element-wise remainder of division.

/// /// This is the NumPy implementation of the C library function fmod, the /// remainder has the same sign as the dividend x1. It is equivalent to /// the Matlab(TM) rem function and should not be confused with the /// Python modulus operator x1 % x2. /// /// Notes /// /// The result of the modulo operation for negative dividend and divisors /// is bound by conventions.

/// For fmod, the sign of result is the sign of /// the dividend, while for remainder the sign of the result is the sign /// of the divisor.

/// The fmod function is equivalent to the Matlab(TM) /// rem function. ///
/// /// Dividend. /// /// /// Divisor. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The remainder of the division of x1 by x2. /// This is a scalar if both x1 and x2 are scalars. /// public NDarray fmod(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("fmod", pyargs, kwargs); return ToCsharp(py); } /// /// Return element-wise remainder of division.

/// /// Computes the remainder complementary to the floor_divide function.

/// It is /// equivalent to the Python modulus operator``x1 % x2`` and has the same sign /// as the divisor x2. The MATLAB function equivalent to np.remainder /// is mod.

/// /// Notes /// /// Returns 0 when x2 is 0 and both x1 and x2 are (arrays of) /// integers. ///
/// /// Dividend array. /// /// /// Divisor array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The element-wise remainder of the quotient floor_divide(x1, x2).

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray mod(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("mod", pyargs, kwargs); return ToCsharp(py); } /// /// Return the fractional and integral parts of an array, element-wise.

/// /// The fractional and integral parts are negative if the given number is /// negative.

/// /// Notes /// /// For integer input the return values are floats. ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// A tuple of: /// y1 /// Fractional part of x. /// This is a scalar if x is a scalar. /// y2 /// Integral part of x. /// This is a scalar if x is a scalar. /// public (NDarray, NDarray) modf(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("modf", pyargs, kwargs); var t = py as PyTuple; return (ToCsharp(t[0]), ToCsharp(t[1])); } /// /// Return element-wise remainder of division.

/// /// Computes the remainder complementary to the floor_divide function.

/// It is /// equivalent to the Python modulus operator``x1 % x2`` and has the same sign /// as the divisor x2. The MATLAB function equivalent to np.remainder /// is mod.

/// /// Notes /// /// Returns 0 when x2 is 0 and both x1 and x2 are (arrays of) /// integers. ///
/// /// Dividend array. /// /// /// Divisor array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The element-wise remainder of the quotient floor_divide(x1, x2).

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray remainder(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("remainder", pyargs, kwargs); return ToCsharp(py); } /// /// Return element-wise quotient and remainder simultaneously.

/// /// np.divmod(x, y) is equivalent to (x // y, x % y), but faster /// because it avoids redundant work.

/// It is used to implement the Python /// built-in function divmod on NumPy arrays. ///
/// /// Dividend array. /// /// /// Divisor array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// A tuple of: /// out1 /// Element-wise quotient resulting from floor division. /// This is a scalar if both x1 and x2 are scalars. /// out2 /// Element-wise remainder from floor division. /// This is a scalar if both x1 and x2 are scalars. /// public (NDarray, NDarray) divmod(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("divmod", pyargs, kwargs); var t = py as PyTuple; return (ToCsharp(t[0]), ToCsharp(t[1])); } /// /// Return the angle of the complex argument. /// /// /// A complex number or sequence of complex numbers. /// /// /// Return angle in degrees if True, radians if False (default). /// /// /// The counterclockwise angle from the positive real axis on /// the complex plane, with dtype as numpy.float64. /// public NDarray angle(NDarray z, bool? deg = false) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { z, }); var kwargs=new PyDict(); if (deg!=false) kwargs["deg"]=ToPython(deg); dynamic py = __self__.InvokeMethod("angle", pyargs, kwargs); return ToCsharp(py); } /// /// Return the real part of the complex argument. /// /// /// Input array. /// /// /// The real component of the complex argument.

/// If val is real, the type /// of val is used for the output.

/// If val has complex elements, the /// returned type is float. ///
public NDarray real(NDarray val) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { val, }); var kwargs=new PyDict(); dynamic py = __self__.InvokeMethod("real", pyargs, kwargs); return ToCsharp(py); } /// /// Return the imaginary part of the complex argument. /// /// /// Input array. /// /// /// The imaginary component of the complex argument.

/// If val is real, /// the type of val is used for the output.

/// If val has complex /// elements, the returned type is float. ///
public NDarray imag(NDarray val) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { val, }); var kwargs=new PyDict(); dynamic py = __self__.InvokeMethod("imag", pyargs, kwargs); return ToCsharp(py); } /// /// Return the complex conjugate, element-wise.

/// /// The complex conjugate of a complex number is obtained by changing the /// sign of its imaginary part. ///
/// /// Input value. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The complex conjugate of x, with same dtype as y.

/// /// This is a scalar if x is a scalar. ///
public NDarray conj(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("conj", pyargs, kwargs); return ToCsharp(py); } /// /// Returns the discrete, linear convolution of two one-dimensional sequences.

/// /// The convolution operator is often seen in signal processing, where it /// models the effect of a linear time-invariant system on a signal [1].

/// In /// probability theory, the sum of two independent random variables is /// distributed according to the convolution of their individual /// distributions.

/// /// If v is longer than a, the arrays are swapped before computation.

/// /// Notes /// /// The discrete convolution operation is defined as /// /// It can be shown that a convolution in time/space /// is equivalent to the multiplication in the Fourier /// domain, after appropriate padding (padding is necessary to prevent /// circular convolution).

/// Since multiplication is more efficient (faster) /// than convolution, the function scipy.signal.fftconvolve exploits the /// FFT to calculate the convolution of large data-sets.

/// /// References ///
/// /// First one-dimensional input array. /// /// /// Second one-dimensional input array. /// /// /// Discrete, linear convolution of a and v. /// public NDarray convolve(NDarray a, NDarray v, string mode = "full") { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, v, }); var kwargs=new PyDict(); if (mode!="full") kwargs["mode"]=ToPython(mode); dynamic py = __self__.InvokeMethod("convolve", pyargs, kwargs); return ToCsharp(py); } /// /// Clip (limit) the values in an array.

/// /// Given an interval, values outside the interval are clipped to /// the interval edges.

/// For example, if an interval of [0, 1] /// is specified, values smaller than 0 become 0, and values larger /// than 1 become 1. ///
/// /// Array containing elements to clip. /// /// /// Minimum value.

/// If None, clipping is not performed on lower /// interval edge.

/// Not more than one of a_min and a_max may be /// None. /// /// /// Maximum value.

/// If None, clipping is not performed on upper /// interval edge.

/// Not more than one of a_min and a_max may be /// None.

/// If a_min or a_max are array_like, then the three /// arrays will be broadcasted to match their shapes. /// /// /// The results will be placed in this array.

/// It may be the input /// array for in-place clipping.

/// out must be of the right shape /// to hold the output.

/// Its type is preserved. /// /// /// An array with the elements of a, but where values /// < a_min are replaced with a_min, and those > a_max /// with a_max. /// public NDarray clip(NDarray a, NDarray a_min, NDarray a_max, NDarray @out = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, a_min, a_max, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); dynamic py = __self__.InvokeMethod("clip", pyargs, kwargs); return ToCsharp(py); } /// /// Return the non-negative square-root of an array, element-wise.

/// /// Notes /// /// sqrt has–consistent with common convention–as its branch cut the /// real “interval” [-inf, 0), and is continuous from above on it.

/// /// A branch cut is a curve in the complex plane across which a given /// complex function fails to be continuous. ///
/// /// The values whose square-roots are required. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// An array of the same shape as x, containing the positive /// square-root of each element in x.

/// If any element in x is /// complex, a complex array is returned (and the square-roots of /// negative reals are calculated).

/// If all of the elements in x /// are real, so is y, with negative elements returning nan.

/// /// If out was provided, y is a reference to it.

/// /// This is a scalar if x is a scalar. ///
public NDarray sqrt(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("sqrt", pyargs, kwargs); return ToCsharp(py); } /// /// Return the cube-root of an array, element-wise. /// /// /// The values whose cube-roots are required. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// An array of the same shape as x, containing the cube /// cube-root of each element in x.

/// /// If out was provided, y is a reference to it.

/// /// This is a scalar if x is a scalar. ///
public NDarray cbrt(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("cbrt", pyargs, kwargs); return ToCsharp(py); } /// /// Return the element-wise square of the input. /// /// /// Input data. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// Element-wise x*x, of the same shape and dtype as x.

/// /// This is a scalar if x is a scalar. ///
public NDarray square(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("square", pyargs, kwargs); return ToCsharp(py); } /// /// Calculate the absolute value element-wise.

/// /// np.abs is a shorthand for this function. ///
/// /// Input array. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// An ndarray containing the absolute value of /// each element in x.

/// For complex input, a + ib, the /// absolute value is . /// This is a scalar if x is a scalar. ///
public NDarray absolute(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("absolute", pyargs, kwargs); return ToCsharp(py); } /// /// Compute the absolute values element-wise.

/// /// This function returns the absolute values (positive magnitude) of the /// data in x.

/// Complex values are not handled, use absolute to find the /// absolute values of complex data. ///
/// /// The array of numbers for which the absolute values are required.

/// If /// x is a scalar, the result y will also be a scalar. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The absolute values of x, the returned values are always floats.

/// /// This is a scalar if x is a scalar. ///
public NDarray fabs(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("fabs", pyargs, kwargs); return ToCsharp(py); } /// /// Returns an element-wise indication of the sign of a number.

/// /// The sign function returns -1 if x < 0, 0 if x==0, 1 if x > 0.

/// nan /// is returned for nan inputs.

/// /// For complex inputs, the sign function returns /// sign(x.real) + 0j if x.real != 0 else sign(x.imag) + 0j.

/// /// complex(nan, 0) is returned for complex nan inputs.

/// /// Notes /// /// There is more than one definition of sign in common use for complex /// numbers.

/// The definition used here is equivalent to /// which is different from a common alternative, . ///
/// /// Input values. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The sign of x.

/// /// This is a scalar if x is a scalar. ///
public NDarray sign(NDarray x, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("sign", pyargs, kwargs); return ToCsharp(py); } /// /// Compute the Heaviside step function.

/// /// The Heaviside step function is defined as: /// /// where x2 is often taken to be 0.5, but 0 and 1 are also sometimes used.

/// /// Notes /// /// References ///
/// /// Input values. /// /// /// The value of the function when x1 is 0. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The output array, element-wise Heaviside step function of x1. /// This is a scalar if both x1 and x2 are scalars. /// public NDarray heaviside(NDarray x1, NDarray x2, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x1, x2, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("heaviside", pyargs, kwargs); return ToCsharp(py); } /// /// Element-wise maximum of array elements.

/// /// Compare two arrays and returns a new array containing the element-wise /// maxima.

/// If one of the elements being compared is a NaN, then that /// element is returned.

/// If both elements are NaNs then the first is /// returned.

/// The latter distinction is important for complex NaNs, which /// are defined as at least one of the real or imaginary parts being a NaN.

/// /// The net effect is that NaNs are propagated.

/// /// Notes /// /// The maximum is equivalent to np.where(x1 >= x2, x1, x2) when /// neither x1 nor x2 are nans, but it is faster and does proper /// broadcasting. ///
/// /// The arrays holding the elements to be compared.

/// They must have /// the same shape, or shapes that can be broadcast to a single shape. /// /// /// The arrays holding the elements to be compared.

/// They must have /// the same shape, or shapes that can be broadcast to a single shape. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The maximum of x1 and x2, element-wise.

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray maximum(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("maximum", pyargs, kwargs); return ToCsharp(py); } /// /// Element-wise minimum of array elements.

/// /// Compare two arrays and returns a new array containing the element-wise /// minima.

/// If one of the elements being compared is a NaN, then that /// element is returned.

/// If both elements are NaNs then the first is /// returned.

/// The latter distinction is important for complex NaNs, which /// are defined as at least one of the real or imaginary parts being a NaN.

/// /// The net effect is that NaNs are propagated.

/// /// Notes /// /// The minimum is equivalent to np.where(x1 <= x2, x1, x2) when /// neither x1 nor x2 are NaNs, but it is faster and does proper /// broadcasting. ///
/// /// The arrays holding the elements to be compared.

/// They must have /// the same shape, or shapes that can be broadcast to a single shape. /// /// /// The arrays holding the elements to be compared.

/// They must have /// the same shape, or shapes that can be broadcast to a single shape. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The minimum of x1 and x2, element-wise.

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray minimum(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("minimum", pyargs, kwargs); return ToCsharp(py); } /// /// Element-wise maximum of array elements.

/// /// Compare two arrays and returns a new array containing the element-wise /// maxima.

/// If one of the elements being compared is a NaN, then the /// non-nan element is returned.

/// If both elements are NaNs then the first /// is returned.

/// The latter distinction is important for complex NaNs, /// which are defined as at least one of the real or imaginary parts being /// a NaN.

/// The net effect is that NaNs are ignored when possible.

/// /// Notes /// /// The fmax is equivalent to np.where(x1 >= x2, x1, x2) when neither /// x1 nor x2 are NaNs, but it is faster and does proper broadcasting. ///
/// /// The arrays holding the elements to be compared.

/// They must have /// the same shape. /// /// /// The arrays holding the elements to be compared.

/// They must have /// the same shape. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The maximum of x1 and x2, element-wise.

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray fmax(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("fmax", pyargs, kwargs); return ToCsharp(py); } /// /// Element-wise minimum of array elements.

/// /// Compare two arrays and returns a new array containing the element-wise /// minima.

/// If one of the elements being compared is a NaN, then the /// non-nan element is returned.

/// If both elements are NaNs then the first /// is returned.

/// The latter distinction is important for complex NaNs, /// which are defined as at least one of the real or imaginary parts being /// a NaN.

/// The net effect is that NaNs are ignored when possible.

/// /// Notes /// /// The fmin is equivalent to np.where(x1 <= x2, x1, x2) when neither /// x1 nor x2 are NaNs, but it is faster and does proper broadcasting. ///
/// /// The arrays holding the elements to be compared.

/// They must have /// the same shape. /// /// /// The arrays holding the elements to be compared.

/// They must have /// the same shape. /// /// /// A location into which the result is stored.

/// If provided, it must have /// a shape that the inputs broadcast to.

/// If not provided or None, /// a freshly-allocated array is returned.

/// A tuple (possible only as a /// keyword argument) must have length equal to the number of outputs. /// /// /// Values of True indicate to calculate the ufunc at that position, values /// of False indicate to leave the value in the output alone. /// /// /// The minimum of x1 and x2, element-wise.

/// /// This is a scalar if both x1 and x2 are scalars. ///
public NDarray fmin(NDarray x2, NDarray x1, NDarray @out = null, NDarray @where = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x2, x1, }); var kwargs=new PyDict(); if (@out!=null) kwargs["out"]=ToPython(@out); if (@where!=null) kwargs["where"]=ToPython(@where); dynamic py = __self__.InvokeMethod("fmin", pyargs, kwargs); return ToCsharp(py); } /// /// Replace NaN with zero and infinity with large finite numbers.

/// /// If x is inexact, NaN is replaced by zero, and infinity and -infinity /// replaced by the respectively largest and most negative finite floating /// point values representable by x.dtype.

/// /// For complex dtypes, the above is applied to each of the real and /// imaginary components of x separately.

/// /// If x is not inexact, then no replacements are made.

/// /// Notes /// /// NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic /// (IEEE 754).

/// This means that Not a Number is not equivalent to infinity. ///
/// /// Input data. /// /// /// Whether to create a copy of x (True) or to replace values /// in-place (False).

/// The in-place operation only occurs if /// casting to an array does not require a copy.

/// /// Default is True. /// /// /// x, with the non-finite values replaced.

/// If copy is False, this may /// be x itself. ///
public NDarray nan_to_num(NDarray x, bool? copy = true) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, }); var kwargs=new PyDict(); if (copy!=true) kwargs["copy"]=ToPython(copy); dynamic py = __self__.InvokeMethod("nan_to_num", pyargs, kwargs); return ToCsharp(py); } /// /// If complex input returns a real array if complex parts are close to zero.

/// /// “Close to zero” is defined as tol * (machine epsilon of the type for /// a).

/// /// Notes /// /// Machine epsilon varies from machine to machine and between data types /// but Python floats on most platforms have a machine epsilon equal to /// 2.2204460492503131e-16. You can use ‘np.finfo(float).eps’ to print /// out the machine epsilon for floats. ///
/// /// Input array. /// /// /// Tolerance in machine epsilons for the complex part of the elements /// in the array. /// /// /// If a is real, the type of a is used for the output.

/// If a /// has complex elements, the returned type is float. ///
public NDarray real_if_close(NDarray a, float tol = 100) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { a, }); var kwargs=new PyDict(); if (tol!=100) kwargs["tol"]=ToPython(tol); dynamic py = __self__.InvokeMethod("real_if_close", pyargs, kwargs); return ToCsharp(py); } /* /// /// One-dimensional linear interpolation.

/// /// Returns the one-dimensional piecewise linear interpolant to a function /// with given discrete data points (xp, fp), evaluated at x.

/// /// Notes /// /// Does not check that the x-coordinate sequence xp is increasing.

/// /// If xp is not increasing, the results are nonsense.

/// /// A simple check for increasing is: ///
/// /// The x-coordinates at which to evaluate the interpolated values. /// /// /// The x-coordinates of the data points, must be increasing if argument /// period is not specified.

/// Otherwise, xp is internally sorted after /// normalizing the periodic boundaries with xp = xp % period. /// /// /// The y-coordinates of the data points, same length as xp. /// /// /// Value to return for x < xp[0], default is fp[0]. /// /// /// Value to return for x > xp[-1], default is fp[-1]. /// /// /// A period for the x-coordinates.

/// This parameter allows the proper /// interpolation of angular x-coordinates.

/// Parameters left and right /// are ignored if period is specified. /// /// /// The interpolated values, same shape as x. /// public float or complex (corresponding to fp) or ndarray interp(NDarray x, 1-D sequence of floats xp, 1-D sequence of float or complex fp, optional float or complex corresponding to fp left = null, optional float or complex corresponding to fp right = null, None or float period = null) { //auto-generated code, do not change var __self__=self; var pyargs=ToTuple(new object[] { x, xp, fp, }); var kwargs=new PyDict(); if (left!=null) kwargs["left"]=ToPython(left); if (right!=null) kwargs["right"]=ToPython(right); if (period!=null) kwargs["period"]=ToPython(period); dynamic py = __self__.InvokeMethod("interp", pyargs, kwargs); return ToCsharp(py); } */ } }