Class Vector1<Q extends Quantity<Q>>

Type Parameters:
Q - the quantity type
All Implemented Interfaces:
Serializable, Iterable<Q>, Additive<Vector1<Q>>, Scalable<Vector1<Q>>, Value<Vector1<Q>,Q>, Vector.Row<Vector1<Q>,Q>, Hadamard<Vector1<?>,Vector1<SIQuantity>>, Normed<Q>

public class Vector1<Q extends Quantity<Q>> extends Vector<Q,Vector1<Q>,Vector1<SIQuantity>,Vector1<?>,Vector1<Q>> implements Vector.Row<Vector1<Q>,Q>
Vector1 implements a vector with one real-valued entry. The vector is immutable, except for the display unit, which can be changed. Some of the method that have been defined already for a generic vector have been re-implemented for efficiency.

Copyright (c) 2025-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.

Author:
Alexander Verbraeck
See Also:
  • Constructor Details

    • Vector1

      public Vector1(double xSi, Unit<?,Q> displayUnit)
      Create a new Vector1 with a display unit.
      Parameters:
      xSi - the x-value expressed in the SI unit for the quantity
      displayUnit - the display unit of the vector
  • Method Details