Rank3Tensor
jsci.physics.relativity

Class Rank3Tensor

    • Constructor Detail

      • Rank3Tensor

        public Rank3Tensor()
        Constructs a 3rd rank tensor.
    • Method Detail

      • equals

        public boolean equals(Object a)
        Compares two tensors for equality.
        Overrides:
        equals in class Object
        Parameters:
        a - a 3rd rank tensor
      • getComponent

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

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

        public Rank3Tensor add(Rank3Tensor t)
        Returns the addition of this tensor and another.
        Parameters:
        t - a 3rd rank tensor
      • subtract

        public Rank3Tensor subtract(Rank3Tensor t)
        Returns the subtraction of this tensor by another.
        Parameters:
        t - a 3rd rank tensor
      • tensorProduct

        public Rank4Tensor tensorProduct(Rank1Tensor t)
        Returns the tensor product of this tensor and another.
        Parameters:
        t - a 1st rank tensor

SCaVis 1.7 © jWork.org