scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef

Notes

For full details of the DST types and normalization modes, as well as references, see dst .

Parameters

x : array_like

The input array.

type : {1, 2, 3, 4}, optional

Type of the DST (see Notes). Default type is 2.

s : int or array_like of ints or None, optional

The shape of the result. If both s and :None:None:`axes` (see below) are None, s is x.shape ; if s is None but :None:None:`axes` is not None, then s is numpy.take(x.shape, axes, axis=0) . If s[i] > x.shape[i] , the ith dimension is padded with zeros. If s[i] < x.shape[i] , the ith dimension is truncated to length s[i] . If any element of :None:None:`shape` is -1, the size of the corresponding dimension of x is used.

axes : int or array_like of ints or None, optional

Axes over which the DST is computed. If not given, the last len(s) axes are used, or all axes if s is also not specified.

norm : {"backward", "ortho", "forward"}, optional

Normalization mode (see Notes). Default is "backward".

overwrite_x : bool, optional

If True, the contents of x can be destroyed; the default is False.

workers : int, optional

Maximum number of workers to use for parallel computation. If negative, the value wraps around from os.cpu_count() . See ~scipy.fft.fft for more details.

orthogonalize : bool, optional

Whether to use the orthogonalized DST variant (see Notes). Defaults to True when norm=="ortho" and False otherwise.

versionadded

Returns

y : ndarray of real

The transformed input array.

Return multidimensional Discrete Sine Transform along the specified axes.

See Also

idstn

Inverse multidimensional DST

Examples

>>> from scipy.fft import dstn, idstn
... rng = np.random.default_rng()
... y = rng.standard_normal((16, 16))
... np.allclose(y, idstn(dstn(y))) True
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.fft._realtransforms.idstn

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/fft/_realtransforms.py#136
type: <class 'uarray._Function'>
Commit: