Skip to main content

Toolbox

PyPi

This repositories offers a toolbox across platforms.

How to use

  • MatlabFuncHelper: this class simulate all Matlab functions in python (batch is supported).
    • batch
      • setBatchSize(batch_size) or setBS(batch_size)
      • getBatchSize() or getBS()
    • data type selectors
      • toNP(): to numpy
      • toPT(): to pytorch
      • toTF(): to tensorflow
    • checkers
      • isvector(mat)
      • ismatrix(mat)
      • isnan(mat)
    • generators
      • zeros(d1, d2, ...)
      • ones(d1, d2, ...)
      • eye(d1, ...): eye(d1) or eye(d1, d2)
      • seq(): generate a sequence, seq(end), seq(beg, end), seq(beg, step, end)
      • rand(d1, d2, ...):
      • randn(d1, d2, ...):
      • dftmtx(d1): generate the discrete transform matrix
    • transformers
      • squeeze(mat): remove redundant dimension except for the batch_size
      • reshape(mat, d1, d2, ...):
      • repmat1(mat, d1, d2, ...): repeat the matrix in the given dimension (the batch dim is repeated as 1)
      • repmatN(mat, d1, d2, ...): repeat the matrix in the given dimension (the batch dim is repeated as batch_size)
      • diag(mat): generate a matrix based on its diag or get a diagonal matrix from its vector
        @mat: a vector as [(batch_size), n, 1] or [(batch_size), 1, n]; if n == 1, it will be taken as [(batch_size), n, 1]. Or a square matrix [(batch_size), n, n]
      • circshift(mat, step): circular shift (1st index except for the batch size)
    • Maths
      • sum(): sum along the last axis
      • max(): return the maximum of a matrix or the maximum of two matrices (for complex value, we compare the magnitude)
        self.max(mat1, axis=-1);    // return the maximum of a matrix, axis tells which axis to look at
        self.max(mat1, 4);          // return the maximum of a matrix and the given value
        self.max(mat1, mat2);       // return the maximum of two matrices
        
      • kron(a, b): Kronecker produc

Metadata

Release files for whatshow-toolbox 1.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whatshow-toolbox 1.0.10
File Size Uploaded Provenance
whatshow_toolbox-1.0.10.tar.gz 4.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for whatshow-toolbox 1.0.10
File Interpreter ABI Platform
whatshow_toolbox-1.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / whatshow_toolbox-1.0.10.tar.gz

Download URL whatshow_toolbox-1.0.10.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ae7f49f492e1bb667bbd79e78493957c886efd34576b375373ace80f5a208e4b
BLAKE2b-256 checksum
How to use checksums
1af2061a7be9f057bd07c376b619bb3ec0f540a7cda9317f66efda47bd4da346
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.17

Release files / whatshow_toolbox-1.0.10-py3-none-any.whl

Download URL whatshow_toolbox-1.0.10-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17b75e315ad1db9fa2dd925ee31b3cd500a31fede2cf8824747b96e2cdb9cfb0
BLAKE2b-256 checksum
How to use checksums
d70f47dfad1f62449717835fddd971f7247f972c2bb29cddfafc3b0c0cda984b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.17

Security for whatshow-toolbox 1.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page