This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1031 from slacgismo/develop
Release beauharnois-29
- Loading branch information
Showing
222 changed files
with
364,379 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[[/Absolute]] -- Calculate the absolute value element-wise. | ||
|
||
~~~ | ||
Syntax | ||
------ | ||
matrix absolute <matrix> [where=<boollist>] [axes=<tuplelist>] [axis=<inttuple>] [keepdims=<boolstr>] [casting=<str>] [order=<str>] [dtype=<str>] [subok=<boolstr>] | ||
Parameters | ||
---------- | ||
x : array_like | ||
Input array. | ||
out : ndarray, None, or tuple of ndarray and None, optional | ||
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. | ||
where : array_like, optional | ||
This condition is broadcast over the input. At locations where the | ||
condition is True, the `out` array will be set to the ufunc result. | ||
Elsewhere, the `out` array will retain its original value. | ||
Note that if an uninitialized `out` array is created via the default | ||
``out=None``, locations within it where the condition is False will | ||
remain uninitialized. | ||
**kwargs | ||
For other keyword-only arguments, see the | ||
:ref:`ufunc docs <ufuncs.kwargs>`. | ||
Returns | ||
------- | ||
absolute : ndarray | ||
An ndarray containing the absolute value of | ||
each element in `x`. For complex input, ``a + ib``, the | ||
absolute value is :math:`\sqrt{ a^2 + b^2 }`. | ||
This is a scalar if `x` is a scalar. | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[[/Add]] -- Add arguments element-wise. | ||
|
||
~~~ | ||
Syntax | ||
------ | ||
matrix add <matrix> <matrix> [where=<boollist>] [axes=<tuplelist>] [axis=<inttuple>] [keepdims=<boolstr>] [casting=<str>] [order=<str>] [dtype=<str>] [subok=<boolstr>] | ||
Parameters | ||
---------- | ||
x1, x2 : array_like | ||
The arrays to be added. | ||
If ``x1.shape != x2.shape``, they must be broadcastable to a common | ||
shape (which becomes the shape of the output). | ||
out : ndarray, None, or tuple of ndarray and None, optional | ||
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. | ||
where : array_like, optional | ||
This condition is broadcast over the input. At locations where the | ||
condition is True, the `out` array will be set to the ufunc result. | ||
Elsewhere, the `out` array will retain its original value. | ||
Note that if an uninitialized `out` array is created via the default | ||
``out=None``, locations within it where the condition is False will | ||
remain uninitialized. | ||
**kwargs | ||
For other keyword-only arguments, see the | ||
:ref:`ufunc docs <ufuncs.kwargs>`. | ||
Returns | ||
------- | ||
add : ndarray or scalar | ||
The sum of `x1` and `x2`, element-wise. | ||
This is a scalar if both `x1` and `x2` are scalars. | ||
Notes | ||
----- | ||
Equivalent to `x1` + `x2` in terms of array broadcasting. | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[[/Angle]] | ||
|
||
~~~ | ||
Syntax | ||
------ | ||
matrix angle <matrix> deg=<boolstr> | ||
Return the angle of the complex argument. | ||
Parameters | ||
---------- | ||
z : array_like | ||
A complex number or sequence of complex numbers. | ||
deg : bool, optional | ||
Return angle in degrees if True, radians if False (default). | ||
Returns | ||
------- | ||
angle : ndarray or scalar | ||
The counterclockwise angle from the positive real axis on the complex | ||
plane in the range ``(-pi, pi]``, with dtype as numpy.float64. | ||
.. versionchanged:: 1.16.0 | ||
This function works on subclasses of ndarray like `ma.array`. | ||
See Also | ||
-------- | ||
arctan2 | ||
absolute | ||
Notes | ||
----- | ||
Although the angle of the complex number 0 is undefined, ``numpy.angle(0)`` | ||
returns the value 0. | ||
Examples | ||
-------- | ||
>>> np.angle([1.0, 1.0j, 1+1j]) # in radians | ||
array([ 0. , 1.57079633, 0.78539816]) # may vary | ||
>>> np.angle(1+1j, deg=True) # in degrees | ||
45.0 | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[[/Arange]] | ||
|
||
~~~ | ||
Syntax | ||
------ | ||
matrix arange <float> stop=<float> step=<float> [subok=<boolstr>] | ||
arange([start,] stop[, step,], dtype=None, *, like=None) | ||
Return evenly spaced values within a given interval. | ||
Values are generated within the half-open interval ``[start, stop)`` | ||
(in other words, the interval including `start` but excluding `stop`). | ||
For integer arguments the function is equivalent to the Python built-in | ||
`range` function, but returns an ndarray rather than a list. | ||
When using a non-integer step, such as 0.1, the results will often not | ||
be consistent. It is better to use `numpy.linspace` for these cases. | ||
Parameters | ||
---------- | ||
start : integer or real, optional | ||
Start of interval. The interval includes this value. The default | ||
start value is 0. | ||
stop : integer or real | ||
End of interval. The interval does not include this value, except | ||
in some cases where `step` is not an integer and floating point | ||
round-off affects the length of `out`. | ||
step : integer or real, optional | ||
Spacing between values. For any output `out`, this is the distance | ||
between two adjacent values, ``out[i+1] - out[i]``. The default | ||
step size is 1. If `step` is specified as a position argument, | ||
`start` must also be given. | ||
dtype : dtype | ||
The type of the output array. If `dtype` is not given, infer the data | ||
type from the other input arguments. | ||
like : array_like | ||
Reference object to allow the creation of arrays which are not | ||
NumPy arrays. If an array-like passed in as ``like`` supports | ||
the ``__array_function__`` protocol, the result will be defined | ||
by it. In this case, it ensures the creation of an array object | ||
compatible with that passed in via this argument. | ||
.. versionadded:: 1.20.0 | ||
Returns | ||
------- | ||
arange : ndarray | ||
Array of evenly spaced values. | ||
For floating point arguments, the length of the result is | ||
``ceil((stop - start)/step)``. Because of floating point overflow, | ||
this rule may result in the last element of `out` being greater | ||
than `stop`. | ||
See Also | ||
-------- | ||
numpy.linspace : Evenly spaced numbers with careful handling of endpoints. | ||
numpy.ogrid: Arrays of evenly spaced numbers in N-dimensions. | ||
numpy.mgrid: Grid-shaped arrays of evenly spaced numbers in N-dimensions. | ||
Examples | ||
-------- | ||
>>> np.arange(3) | ||
array([0, 1, 2]) | ||
>>> np.arange(3.0) | ||
array([ 0., 1., 2.]) | ||
>>> np.arange(3,7) | ||
array([3, 4, 5, 6]) | ||
>>> np.arange(3,7,2) | ||
~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
[[/Arccos]] -- Trigonometric inverse cosine, element-wise. | ||
|
||
~~~ | ||
Syntax | ||
------ | ||
matrix arccos <matrix> [where=<boollist>] [axes=<tuplelist>] [axis=<inttuple>] [keepdims=<boolstr>] [casting=<str>] [order=<str>] [dtype=<str>] [subok=<boolstr>] | ||
Parameters | ||
---------- | ||
x : array_like | ||
`x`-coordinate on the unit circle. | ||
For real arguments, the domain is [-1, 1]. | ||
out : ndarray, None, or tuple of ndarray and None, optional | ||
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. | ||
where : array_like, optional | ||
This condition is broadcast over the input. At locations where the | ||
condition is True, the `out` array will be set to the ufunc result. | ||
Elsewhere, the `out` array will retain its original value. | ||
Note that if an uninitialized `out` array is created via the default | ||
``out=None``, locations within it where the condition is False will | ||
remain uninitialized. | ||
**kwargs | ||
For other keyword-only arguments, see the | ||
:ref:`ufunc docs <ufuncs.kwargs>`. | ||
Returns | ||
------- | ||
angle : ndarray | ||
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. | ||
See Also | ||
-------- | ||
cos, arctan, arcsin, emath.arccos | ||
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/ | ||
~~~ |
Oops, something went wrong.