Documentation of 'jsci.physics.relativity.Rank4Tensor' Java class
Rank4Tensor
jsci.physics.relativity

Class Rank4Tensor

  • All Implemented Interfaces:
    java.io.Serializable, Member
    Direct Known Subclasses:
    LeviCivita


    public class Rank4Tensor
    extends Tensor
    The Rank4Tensor class encapsulates 4th rank tensors.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Rank4Tensor()
      Constructs a 4th rank tensor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Rank4Tensor add(Rank4Tensor t)
      Returns the addition of this tensor and another.
      boolean equals(java.lang.Object a)
      Compares two tensors for equality.
      double getComponent(int i, int j, int k, int l)
      Returns a component of this tensor.
      void setComponent(int i, int j, int k, int l, double x)
      Sets the value of a component of this tensor.
      Rank4Tensor subtract(Rank4Tensor t)
      Returns the subtraction of this tensor by another.
      • Methods inherited from class jsci.physics.relativity.Tensor

        getSet
      • Methods inherited from class java.lang.Object

        getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rank4Tensor

        public Rank4Tensor()
        Constructs a 4th rank tensor.
    • Method Detail

      • equals

        public boolean equals(java.lang.Object a)
        Compares two tensors for equality.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        a - a 4th rank tensor
      • getComponent

        public double getComponent(int i,
                                   int j,
                                   int k,
                                   int l)
        Returns a component of this tensor.
        Parameters:
        i - 1st index
        j - 2nd index
        k - 3rd index
        l - 4th index
        Throws:
        DimensionException - If attempting to access an invalid component.
      • setComponent

        public void setComponent(int i,
                                 int j,
                                 int k,
                                 int l,
                                 double x)
        Sets the value of a component of this tensor.
        Parameters:
        i - 1st index
        j - 2nd index
        k - 3rd index
        l - 4th index
        x - value
        Throws:
        DimensionException - If attempting to access an invalid component.
      • add

        public Rank4Tensor add(Rank4Tensor t)
        Returns the addition of this tensor and another.
        Parameters:
        t - a 4th rank tensor
      • subtract

        public Rank4Tensor subtract(Rank4Tensor t)
        Returns the subtraction of this tensor by another.
        Parameters:
        t - a 4th rank tensor

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.