Class Float64Vector

    • Field Detail

      • XML

        protected static final javolution.xml.XMLFormat<Float64Vector> XML
        Holds the default XML representation. For example: [code] [/code]
    • Method Detail

      • valueOf

        public static Float64Vector valueOf​(double... values)
        Returns a new vector holding the specified double values.
        Parameters:
        values - the vector values.
        Returns:
        the vector having the specified values.
      • valueOf

        public static Float64Vector valueOf​(List<Float64> elements)
        Returns a new vector holding the elements from the specified collection.
        Parameters:
        elements - the collection of floating-points numbers.
        Returns:
        the vector having the specified elements.
      • valueOf

        public static Float64Vector valueOf​(Vector<Float64> that)
        Returns a Float64Vector instance equivalent to the specified vector.
        Parameters:
        that - the vector to convert.
        Returns:
        that or new equivalent Float64Vector.
      • getValue

        public double getValue​(int i)
        Returns the value of a floating point number from this vector (fast).
        Parameters:
        i - the floating point number index.
        Returns:
        the value of the floating point number at i.
        Throws:
        IndexOutOfBoundsException - (i < 0) || (i >= dimension())
      • normValue

        public double normValue()
        Returns the norm() value of this vector.
        Returns:
        this.norm().doubleValue().
      • getDimension

        public int getDimension()
        Description copied from class: Vector
        Returns the number of elements held by this vector.
        Specified by:
        getDimension in class Vector<Float64>
        Returns:
        this vector dimension.
      • get

        public Float64 get​(int i)
        Description copied from class: Vector
        Returns a single element from this vector.
        Specified by:
        get in class Vector<Float64>
        Parameters:
        i - the element index (range [0..n[).
        Returns:
        the element at i.
      • minus

        public Float64Vector minus​(Vector<Float64> that)
        Description copied from class: Vector
        Returns the difference between this vector and the one specified.
        Overrides:
        minus in class Vector<Float64>
        Parameters:
        that - the vector to be subtracted.
        Returns:
        this - that.
      • times

        public Float64Vector times​(double k)
        Equivalent to this.times(Float64.valueOf(k))
        Parameters:
        k - the coefficient.
        Returns:
        this * k
      • cross

        public Float64Vector cross​(Vector<Float64> that)
        Description copied from class: Vector
        Returns the cross product of two 3-dimensional vectors.
        Overrides:
        cross in class Vector<Float64>
        Parameters:
        that - the vector multiplier.
        Returns:
        this x that
      • copy

        public Float64Vector copy()
        Description copied from class: Vector
        Returns a copy of this vector allocated by the calling thread (possibly on the stack).
        Specified by:
        copy in interface javolution.lang.ValueType
        Specified by:
        copy in class Vector<Float64>
        Returns:
        an identical and independant copy of this matrix.