Skip to main content

Add your description here

Project description

This is a package with two subpackages:

  1. Differential -> function diff to calculate discrete time derivative differentialial -> discrete -> diff (x,t) It does discrete time derivative of two vectors (list) x and t and returs a list v

  2. Matrix-> function rowswap(matrix: torch.Tensor, i: int, j: int) -> torch.Tensor Swap row i and row j in a matrix.

    Args: matrix: Input matrix. i : Index of the first row. j : Index of the second row.

    Returns: torch.Tensor: matrix with row i,j swapped.

         function rowscale(matrix: torch.Tensor, i: int, s_f: float) -> torch.Tensor
    

    Scale row i by a factor s_f.

    Args: matrix: input matrix. i : Index of the row to scale. s_f (float): Scaling factor.

    Returns: torch.Tensor: matrix with the scaled row i by factor s_f

         function rowreplacement(matrix: torch.Tensor, i: int, j: int, sf_a: float, sf_b: float) -> torch.Tensor
    

    Replace the ith row with: iRi + jRj.

    Args: matrix (torch.Tensor): input matrix. i (int): Index of the row to be replaced. j (int): Index of the source row. sf_a (float): Scaling factor for row i. sf_b (float): Scaling factor for row j.

    Returns: torch.Tensor: Result Matrix

         function rref(matrix: torch.Tensor) -> torch.Tensor
    

    Performs Reduced Row Echelion Form or Gausian Elemination on Marix

    Args: matrix (torch.Tensor): input matrix Returns: torch.Tensor: Result matrix RREF of input

         function uniform(a: float = 0.0, b: float = 1.0)
     Returns uniform values between 0 and 1
     E.G Use uniform(0,1)
    
         function exponentialdist(lmbd: float)
     Returns exponential distribution
    

    Args: Lambda value for exponential distribution E.G. Use exponentialdist(lmbd)

         function poissondist(lmbd: float):
     Returns poisson distribution
    

    Args: Lambda value for poisson distribution E.G. Use poissondist(lmbd)

    Added class LinearRegression, CauchyRegression, LogisticRegression Added class TorchNet

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sayancpe586fa25-5.0.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sayancpe586fa25-5.0.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file sayancpe586fa25-5.0.0.tar.gz.

File metadata

  • Download URL: sayancpe586fa25-5.0.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for sayancpe586fa25-5.0.0.tar.gz
Algorithm Hash digest
SHA256 ce1780ba6191d12ce122cf4706ac04e46b6c2fdc6b2f6bcd31d586d2db27a9a3
MD5 1b2b52b2990af7d205530ffae1cef161
BLAKE2b-256 8266f73d0c094a49251328e4d27dbb59c1fbcab109ef36d3e0464394e225f766

See more details on using hashes here.

File details

Details for the file sayancpe586fa25-5.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sayancpe586fa25-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 826807fc5686fe0b4264cbf12e025a2af605966fec91bc7b90fe55bf7746fc19
MD5 bec7d7db41d3220144535b8796b7892a
BLAKE2b-256 9091f5a28c98e058d4b3a1538e07e67352619490ccbf6255e0bdd81d149f9779

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page