Interface Vector.Abs<AU extends AbsoluteLinearUnit<AU,​RU>,​A extends Scalar<AU,​A>,​AV extends Vector.Abs<AU,​A,​AV,​RU,​R,​RV>,​RU extends Unit<RU>,​R extends Scalar<RU,​R>,​RV extends Vector.RelWithAbs<AU,​A,​AV,​RU,​R,​RV>>

    • Method Detail

      • plus

        AV plus​(RV increment)
         throws ValueRuntimeException
        Add a relative vector to this absolute vector. A new absolute vector is returned. The display unit of the new vector is the display unit of this absolute vector. The addition is done value by value and the result is stored in a new vector. If both operands are sparse, the result is a sparse vector, otherwise the result is a dense vector.
        Parameters:
        increment - RV; the relative vector (mutable or immutable, sparse or dense) to add to this absolute vector
        Returns:
        AIV; the sum of this value and the operand as a new absolute, immutable vector
        Throws:
        ValueRuntimeException - in case this vector and the operand have a different size
      • minus

        AV minus​(RV decrement)
          throws ValueRuntimeException
        Subtract a relative vector from this absolute vector. A new absolute vector is returned. The display unit of the new vector is the display unit of this absolute vector. The subtraction is done value by value and the result is stored in a new vector. If both operands are sparse, the result is a sparse vector, otherwise the result is a dense vector.
        Parameters:
        decrement - RV; the relative vector (mutable or immutable, sparse or dense) to subtract from this absolute vector
        Returns:
        AIV; the difference of this value and the operand as a new absolute, immutable vector
        Throws:
        ValueRuntimeException - in case this vector and the operand have a different size
      • minus

        RV minus​(AV decrement)
          throws ValueRuntimeException
        Subtract an absolute vector from this absolute vector. A new relative vector is returned. The display unit of the new vector is the display unit of relative counterpart of the display unit of this absolute vector. The subtraction is done value by value and the result is stored in a new vector. If both operands are sparse, the result is a sparse vector, otherwise the result is a dense vector.
        Parameters:
        decrement - AV; the absolute vector (mutable or immutable, sparse or dense) to subtract from this absolute vector
        Returns:
        RIV; the difference of this value and the operand as a new relative, immutable vector
        Throws:
        ValueRuntimeException - in case this vector and the operand have a different size