Class SuanShuIntegration.AbstractVector

java.lang.Object
io.deephaven.numerics.suanshu.SuanShuIntegration.AbstractVector
All Implemented Interfaces:
com.numericalmethod.suanshu.DeepCopyable, com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>, com.numericalmethod.suanshu.mathstructure.BanachSpace<com.numericalmethod.suanshu.vector.doubles.Vector,com.numericalmethod.suanshu.number.Real>, com.numericalmethod.suanshu.mathstructure.HilbertSpace<com.numericalmethod.suanshu.vector.doubles.Vector,com.numericalmethod.suanshu.number.Real>, com.numericalmethod.suanshu.mathstructure.VectorSpace<com.numericalmethod.suanshu.vector.doubles.Vector,com.numericalmethod.suanshu.number.Real>, com.numericalmethod.suanshu.vector.doubles.Vector, Serializable
Enclosing class:
SuanShuIntegration

public abstract static class SuanShuIntegration.AbstractVector extends Object implements com.numericalmethod.suanshu.vector.doubles.Vector, Serializable
The abstract implementation of Vector.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.numericalmethod.suanshu.vector.doubles.Vector
    add(double v)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    add(com.numericalmethod.suanshu.vector.doubles.Vector vector)
     
    double
    angle(com.numericalmethod.suanshu.vector.doubles.Vector vector)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    divide(com.numericalmethod.suanshu.vector.doubles.Vector vector)
     
    abstract double
    get(int i)
    Gets the ith indexed (1-based) value from vector.
    double
    innerProduct(com.numericalmethod.suanshu.vector.doubles.Vector vector)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    minus(double v)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    minus(com.numericalmethod.suanshu.vector.doubles.Vector vector)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    multiply(com.numericalmethod.suanshu.vector.doubles.Vector vector)
     
    double
     
    double
    norm(int i)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    pow(double v)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    scaled(double v)
     
    com.numericalmethod.suanshu.vector.doubles.Vector
    scaled(com.numericalmethod.suanshu.number.Real real)
     
    void
    set(int index, double value)
     
    Returns the String representation of whole Vector
    double[]
     
    Returns the compact String representation of Vector.
    com.numericalmethod.suanshu.vector.doubles.Vector
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.numericalmethod.suanshu.vector.doubles.Vector

    size
  • Constructor Details

    • AbstractVector

      public AbstractVector()
  • Method Details

    • get

      public abstract double get(int i)
      Gets the ith indexed (1-based) value from vector.
      Specified by:
      get in interface com.numericalmethod.suanshu.vector.doubles.Vector
      Parameters:
      i - 1-based index
      Returns:
      ith indexed (1-based) value
    • set

      public void set(int index, double value)
      Specified by:
      set in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • add

      public com.numericalmethod.suanshu.vector.doubles.Vector add(com.numericalmethod.suanshu.vector.doubles.Vector vector)
      Specified by:
      add in interface com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
      Specified by:
      add in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • minus

      public com.numericalmethod.suanshu.vector.doubles.Vector minus(com.numericalmethod.suanshu.vector.doubles.Vector vector)
      Specified by:
      minus in interface com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
      Specified by:
      minus in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • multiply

      public com.numericalmethod.suanshu.vector.doubles.Vector multiply(com.numericalmethod.suanshu.vector.doubles.Vector vector)
      Specified by:
      multiply in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • divide

      public com.numericalmethod.suanshu.vector.doubles.Vector divide(com.numericalmethod.suanshu.vector.doubles.Vector vector)
      Specified by:
      divide in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • add

      public com.numericalmethod.suanshu.vector.doubles.Vector add(double v)
      Specified by:
      add in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • minus

      public com.numericalmethod.suanshu.vector.doubles.Vector minus(double v)
      Specified by:
      minus in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • innerProduct

      public double innerProduct(com.numericalmethod.suanshu.vector.doubles.Vector vector)
      Specified by:
      innerProduct in interface com.numericalmethod.suanshu.mathstructure.HilbertSpace<com.numericalmethod.suanshu.vector.doubles.Vector,com.numericalmethod.suanshu.number.Real>
      Specified by:
      innerProduct in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • pow

      public com.numericalmethod.suanshu.vector.doubles.Vector pow(double v)
      Specified by:
      pow in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • scaled

      public com.numericalmethod.suanshu.vector.doubles.Vector scaled(double v)
      Specified by:
      scaled in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • scaled

      public com.numericalmethod.suanshu.vector.doubles.Vector scaled(com.numericalmethod.suanshu.number.Real real)
      Specified by:
      scaled in interface com.numericalmethod.suanshu.vector.doubles.Vector
      Specified by:
      scaled in interface com.numericalmethod.suanshu.mathstructure.VectorSpace<com.numericalmethod.suanshu.vector.doubles.Vector,com.numericalmethod.suanshu.number.Real>
    • norm

      public double norm()
      Specified by:
      norm in interface com.numericalmethod.suanshu.mathstructure.BanachSpace<com.numericalmethod.suanshu.vector.doubles.Vector,com.numericalmethod.suanshu.number.Real>
      Specified by:
      norm in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • norm

      public double norm(int i)
      Specified by:
      norm in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • angle

      public double angle(com.numericalmethod.suanshu.vector.doubles.Vector vector)
      Specified by:
      angle in interface com.numericalmethod.suanshu.mathstructure.HilbertSpace<com.numericalmethod.suanshu.vector.doubles.Vector,com.numericalmethod.suanshu.number.Real>
      Specified by:
      angle in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • opposite

      public com.numericalmethod.suanshu.vector.doubles.Vector opposite()
      Specified by:
      opposite in interface com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
      Specified by:
      opposite in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • ZERO

      public com.numericalmethod.suanshu.vector.doubles.Vector ZERO()
      Specified by:
      ZERO in interface com.numericalmethod.suanshu.mathstructure.AbelianGroup<com.numericalmethod.suanshu.vector.doubles.Vector>
      Specified by:
      ZERO in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • toArray

      public double[] toArray()
      Specified by:
      toArray in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • deepCopy

      public com.numericalmethod.suanshu.vector.doubles.Vector deepCopy()
      Specified by:
      deepCopy in interface com.numericalmethod.suanshu.DeepCopyable
      Specified by:
      deepCopy in interface com.numericalmethod.suanshu.vector.doubles.Vector
    • toString

      public String toString()
      Returns the compact String representation of Vector. If you want to have String representation of the whole Vector, please use show() method.
      Overrides:
      toString in class Object
      Returns:
      Compact string representation of Vector
    • show

      public String show()
      Returns the String representation of whole Vector
      Returns:
      String representation of Vector