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`
IsMetric
​
IsMetric
indicates if the
STensor
is a metric.
​
Examples  
(3)
Basic Examples  
(3)
IsMetric is an option of CreateTensor, which creates a (0,2)-rank symmetric tensor with default symbol g:
In[1]:=
g=
CreateTensor

IsMetric
True
Out[1]=
STensor
Symbol: g
Rank: {0,2}

Get g's metric, i.e. itself:
In[2]:=
g["Metric"]
Out[2]=
STensor
Symbol: g
Rank: {0,2}

​
If the IsMetric is set True, then the argument "Rank" can be reduce:
In[1]:=
η=
CreateTensor
"η",{x,y},Array["η",{2,2}],
IsMetric
True
Out[1]=
STensor
Symbol: η
Rank: {0,2}

Its components will be automatically symmetrized in and only in this case:
In[2]:=
η["Components"]
Out[2]=
SymmetrizedArray
Dimensions: {2,2}
Symmetry: Symmetric[{1,2}]

​
The symbol could be used as a default symbol "g" when IsMetric is set true:
In[1]:=
g=
CreateTensor
{x,y},Array[
"g"
##
&,{2,2}],
IsMetric
True
Out[1]=
STensor
Symbol: g
Rank: {0,2}

SeeAlso
CreateTensor
 
▪
STensor
 
▪
Inverse
RelatedGuides
▪
Get Started
""

© 2025 Wolfram. All rights reserved.

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