Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

symmetric-tensor-to-string

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

symmetric-tensor-to-string

Converts symmetric tensors into human readable/LaTeX parseable strings

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

symmetric-tensor-to-string

Converts symmetric tensors into pretty-printable LaTeX polynomial expressions.

Use

console.log(require("symmetric-tensor-to-string")(2, 2, [1, 1, 1]))

//Prints:
//
//  x_{0}^2 + 2 x_{0} x_{1} + x_{1}^2
//

Install

npm install symmetric-tensor-to-string

require("symmetric-tensor-to-string")(dimension, rank, coeffs)

Converts a symmetric tensor into a human readable LaTeX expression.

  • dimension is the dimension of the vector space
  • rank is the order of the tensor
  • coeffs are the tensor coefficients

Returns A human readable string

Credits

(c) 2013 Mikola Lysenko. MIT License

Keywords

tensor

FAQs

Package last updated on 09 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts