Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

STensor

Guides

  • Get Started

Tech Notes

  • Basic Tensor Computation
  • ComputationWithMetric

Symbols

  • ChristoffelSymbol
  • CreateTensor
  • EinsteinTensor
  • Inverse
  • IsMetric
  • LineElement
  • RicciScalar
  • RicciTensor
  • RiemannTensor
  • SCoordinateTransform
  • STensor
  • STensorQ
  • Symmetrize
  • TensorRank
  • TensorSymmetry
  • Tr
  • VolumeElement
  • WeylTensor
BowenPing`STensor`
STensor
​
STensor
is an integrated tensor object.
​
Details and Options

Examples  
(3)
Basic Examples  
(1)
STensor can be created by
CreateTensor
.
In[1]:=
CreateTensor
["T",{0,2}]
Out[1]=
STensor
Symbol: T
Rank: {0,2}

A STensor followed by bracket with indices string can be used in computation:
In[2]:=
T=
CreateTensor
["T",{0,2},{x,y},Array[
"T"
##
&,{2,2}]];​​S=
CreateTensor
["S",{0,1},{x,y},Array[
"S"
##
&,{2}]];
In[3]:=
t
2
T["ab"]+S["a"]S["b"]
Out[3]=
STensor
Symbol: (t/2) T+S S
Rank: {0,2}
[,ab]
Get its components:
In[4]:=
t
2
T["ab"]+S["a"]S["b"]["Components"]//MatrixForm
Out[4]//MatrixForm=
2
S
1
+
1
2
t
T
1,1
S
1
S
2
+
1
2
t
T
1,2
S
1
S
2
+
1
2
t
T
2,1
2
S
2
+
1
2
t
T
2,2
The symbol of the result will be the expression:
In[5]:=
t
2
T["ab"]+S["a"]S["b"]["Symbol"]
Out[5]=
(t/2) T+S S
Scope  
(1)

Possible Issues  
(1)

SeeAlso
CreateTensor
 
▪
IsMetric
RelatedGuides
▪
Get Started
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com