Uses of Class
org.djunits.quantity.def.Quantity
Packages that use Quantity
Package
Description
The quantity package stores information about quantities with their units.
Definition classes for quantities.
Base classes to encode and store units.
1-element vector and matrix classes with a unit.
2-element vector and matrix classes with a unit.
3-element vector and matrix classes with a unit.
Definition classes for vectors and matrices.
Copyright (c) 2025-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands.
Copyright (c) 2025-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands.
Square vector and matrix implementations with dimension N.
Rectangular matrix implementations with dimension NxM.
Interfaces for Vector and Matrix operations.
Storage objects for larger vectors and matrices (dense/sparse, double/float).
Two-dimensonal tables with quantities.
-
Uses of Quantity in org.djunits.quantity
Subclasses of Quantity in org.djunits.quantityModifier and TypeClassDescriptionclassAbsorbed dose is the energy deposited by ionizing radiation per unit mass, measured in grays (Gy).classAcceleration is the rate of change of velocity over time, measured in meters per second squared (m/s2).classAmount of substance is the quantity representing the number of entities, measured in moles (mol).classAngle is the measure of rotation between two intersecting lines, expressed in radians (rad) or degrees.classAngular acceleration is the rate of change of angular velocity over time, measured in radians per second squared (rad/s2).classAngular velocity is the rate of rotation around an axis, measured in radians per second (rad/s).classArea is a measure of a two-dimensional surface, expressed in square meters (m2).classAreal object density counts the number of objects per unit of area, measured in number per square meter (/m2).classCatalytic Activty is the rate of catalytic reaction per unit amount of catalyst, and is expressed in katal (kat), which is mol/s.classDensity is mass per unit volume of a substance, measured in kilograms per cubic meter (kg/m3).classDimensionless quantity.classDuration is the interval of time between two events, measured in seconds (s).classElectricalCapacitance denotes the ability of an object to store electric charge, and is expressed in farad.classElectrical conductance measures the ease with which an electric current passes, and is expressed in siemens.classInductance is the tendency of an electrical conductor to oppose a change in the electric current flowing through it.classElectrical resistence measures the opposition to the flow of an electric current, and is expressed in ohm.classElectric charge denotes the electrostatic attraction or repulsion in the presence of other matter with charge, and is expressed in coulomb.classElectricCurrent is the net rate of flow of electric charge through a surface.classElectricPotential is the difference in electric potential energy per unit of electric charge between two points in a static electric field.classEnergy is a physical quantity representing the capacity to do work, measured in joules (J).classEquivalent dose is a measure of radiation exposure accounting for biological effect, expressed in sieverts (Sv).classFlow mass: The rate of mass passing through a surface per unit time, measured in kilograms per second (kg/s).classFlow volume is the rate of volume passing through a surface per unit time, measured in cubic meters per second (m3/s).classForce is an interaction that changes the motion of an object, measured in newtons (N).classFrequency encodes the number of events per unit of duration.classIlluminance is the luminous flux incident on a surface per unit area, measured in lux (lx).classLength is the measure of distance between two points, expressed in meters (m).classLinear density is mass per unit length of an object, measured in kilograms per meter (kg/m).classLinear object density counts the number of objects per unit of length, measured in number per meter (/m).classLuminous flux is the total perceived power of light emitted by a source, measured in lumens (lm).classLuminous intensity is the luminous flux emitted per unit solid angle, measured in candelas (cd).classMagnetic flux is the total magnetic field passing through a given area, measured in webers (Wb).classMagnetic flux density is the strength of the magnetic field per unit area, measured in teslas (T).classMass is the amount of matter in an object, measured in kilograms (kg).classMomentum is the product of an object's mass and velocity, measured in kilogram meters per second (kgm/s).classPower is the rate of energy transfer or work done per unit time, measured in watts (W).classPressure is the force exerted per unit area, measured in pascals (Pa).classRadioactivity is the rate of nuclear decay events, measured in becquerels (Bq).classSI quantity, with arbitrary SI unit.classSolid angle is the two-dimensional angle in three-dimensional space, measured in steradians (sr).classSpeed is the rate of change of position over time.classTemperatureDifference is a measure of (difference in) thermal state or average kinetic energy of particles, measured in kelvins (K).classTorque is a measure of rotational force about an axis, measured in newton meters (Nm).classVolume is the amount of three-dimensional space occupied by matter, measured in cubic meters (m3).classVolumetric object density counts the number of objects per unit of volume, measured in number per cubic meter (/m3). -
Uses of Quantity in org.djunits.quantity.def
Classes in org.djunits.quantity.def with type parameters of type QuantityModifier and TypeClassDescriptionclassAbsoluteQuantity<A extends AbsoluteQuantity<A,Q, U, R>, Q extends Quantity<Q, U>, U extends UnitInterface<U, Q>, R extends AbstractReference<R, Q>> AbsoluteQuantity is an abstract class that stores the basic information about a absolute quantity.classAbstractReference<R extends AbstractReference<R,Q>, Q extends Quantity<Q, ?>> Reference contains information about the reference point or origin / zero point of an absolute quantity.classQuantity<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Quantity is an abstract class that stores the basic information about a quantity.Methods in org.djunits.quantity.def with type parameters of type QuantityModifier and TypeMethodDescription<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
TQQuantity.as(TU targetUnit) Return the quantity 'as' a known quantity, using a unit to express the result in.static <A extends AbsoluteQuantity<A,Q, U, R>, Q extends Quantity<Q, U>, U extends UnitInterface<U, Q>, R extends AbstractReference<R, Q>>
AAbsoluteQuantity.interpolate(A zero, A one, double ratio) Interpolate between two absolute quantities.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.interpolate(Q zero, Q one, double ratio) Interpolate between two quantities.static <A extends AbsoluteQuantity<A,Q, U, R>, Q extends Quantity<Q, U>, U extends UnitInterface<U, Q>, R extends AbstractReference<R, Q>>
AAbsoluteQuantity.max(A quantity1, A... quantities) Return the maximum value of one or more quantities.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.max(Q quantity1, Q... quantities) Return the maximum value of one or more quantities.static <A extends AbsoluteQuantity<A,Q, U, R>, Q extends Quantity<Q, U>, U extends UnitInterface<U, Q>, R extends AbstractReference<R, Q>>
AAbsoluteQuantity.mean(A quantity1, A... quantities) Return the mean of one or more quantities.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.mean(Q quantity1, Q... quantities) Return the mean of one or more quantities.static <A extends AbsoluteQuantity<A,Q, U, R>, Q extends Quantity<Q, U>, U extends UnitInterface<U, Q>, R extends AbstractReference<R, Q>>
AAbsoluteQuantity.min(A quantity1, A... quantities) Return the minimum value of one or more quantities.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.min(Q quantity1, Q... quantities) Return the minimum value of one or more quantities.static <A extends AbsoluteQuantity<A,Q, U, R>, Q extends Quantity<Q, U>, U extends UnitInterface<U, Q>, R extends AbstractReference<R, Q>>
AReturns an absolute quantity based on a value and the textual representation of the unit, which can be localized.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QReturns a quantity based on a value and the textual representation of the unit, which can be localized.static <A extends AbsoluteQuantity<A,Q, U, R>, Q extends Quantity<Q, U>, U extends UnitInterface<U, Q>, R extends AbstractReference<R, Q>>
AAbsoluteQuantity.sum(A quantity1, A... quantities) Return the sum of one or more quantities.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.sum(Q quantity1, Q... quantities) Return the sum of one or more quantities.static <A extends AbsoluteQuantity<A,Q, U, R>, Q extends Quantity<Q, U>, U extends UnitInterface<U, Q>, R extends AbstractReference<R, Q>>
AReturns an absolute quantity for the textual representation of a value with a unit.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QReturns a quantity for the textual representation of a value with a unit.Methods in org.djunits.quantity.def that return QuantityModifier and TypeMethodDescriptionQuantity<?,?> Quantity.reciprocal()Return the reciprocal of this quantity (1/q).Methods in org.djunits.quantity.def with parameters of type QuantityModifier and TypeMethodDescriptionDivide this quantity by another quantity, and return a SIQuantity as the result.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.max(Q quantity1, Q... quantities) Return the maximum value of one or more quantities.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.mean(Q quantity1, Q... quantities) Return the mean of one or more quantities.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.min(Q quantity1, Q... quantities) Return the minimum value of one or more quantities.Multiply this quantity with another quantity, and return a SIQuantity as the result.static SIQuantityReturn the product of one or more quantities.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QQuantity.sum(Q quantity1, Q... quantities) Return the sum of one or more quantities. -
Uses of Quantity in org.djunits.unit
Classes in org.djunits.unit with type parameters of type QuantityModifier and TypeClassDescriptionclassAbstractUnit<U extends UnitInterface<U,Q>, Q extends Quantity<Q, U>> The AbstractUnit is the parent class of all units, and encodes the common behavior of the units.interfaceUnitInterface<U extends UnitInterface<U,Q>, Q extends Quantity<Q, U>> UnitInterface defines the contract for a unit. -
Uses of Quantity in org.djunits.vecmat.d1
Classes in org.djunits.vecmat.d1 with type parameters of type QuantityModifier and TypeClassDescriptionclassMatrix1x1<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Matrix1x1 implements a matrix with 1x1 real-valued entries.classVector1<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Vector1 implements a vector with one real-valued entry.Methods in org.djunits.vecmat.d1 with type parameters of type QuantityModifier and TypeMethodDescription<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
Matrix1x1<TQ,TU> Matrix1x1.as(TU targetUnit) Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
Vector1<TQ,TU> Vector1.as(TU targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Matrix1x1<Q,U> Matrix1x1.of(double[][] gridInUnit, U displayUnit) Create a new Matrix1x1 with a unit, based on a 2-dimensional grid.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Matrix1x1<Q,U> Matrix1x1.of(double[] arrayInUnit, U displayUnit) Create a new Matrix1x1 with a unit, based on a 1-dimensional array.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Vector1<Q,U> Vector1.of(double xInUnit, U displayUnit) Create a Vector1 without needing generics.Methods in org.djunits.vecmat.d1 that return QuantityMethods in org.djunits.vecmat.d1 with parameters of type Quantity -
Uses of Quantity in org.djunits.vecmat.d2
Classes in org.djunits.vecmat.d2 with type parameters of type QuantityModifier and TypeClassDescriptionclassMatrix2x2<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Matrix2x2 implements a matrix with 2x2 real-valued entries.classVector2<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>, V extends Vector2<Q, U, V, SI, H>, SI extends Vector2<SIQuantity, SIUnit, SI, ?, ?>, H extends Vector2<?, ?, ?, ?, ?>> Vector2 implements a vector with two real-valued entries.static classVector2.Col<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Vector2.Col implements a column vector with two real-valued entries.static classVector2.Row<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Vector2.Row implements a row vector with two real-valued entries.Methods in org.djunits.vecmat.d2 with type parameters of type QuantityModifier and TypeMethodDescription<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
Matrix2x2<TQ,TU> Matrix2x2.as(TU targetUnit) Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
Vector2.Col<TQ,TU> Vector2.Col.as(TU targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
Vector2.Row<TQ,TU> Vector2.Row.as(TU targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Matrix2x2<Q,U> Matrix2x2.of(double[][] gridInUnit, U displayUnit) Create a new Matrix2x2 with a unit, based on a 2-dimensional grid.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Matrix2x2<Q,U> Matrix2x2.of(double[] arrayInUnit, U displayUnit) Create a new Matrix2x2 with a unit, based on a 1-dimensional array.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Vector2.Col<Q,U> Vector2.Col.of(double xInUnit, double yInUnit, U displayUnit) Create a Vector2 column vector without needing generics.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Vector2.Row<Q,U> Vector2.Row.of(double xInUnit, double yInUnit, U displayUnit) Create a Vector2 row vector without needing generics.Methods in org.djunits.vecmat.d2 that return QuantityMethods in org.djunits.vecmat.d2 with parameters of type QuantityModifier and TypeMethodDescriptionMatrix2x2.multiplyElements(Quantity<?, ?> quantity) Vector2.Col.multiplyElements(Quantity<?, ?> quantity) Vector2.Row.multiplyElements(Quantity<?, ?> quantity) -
Uses of Quantity in org.djunits.vecmat.d3
Classes in org.djunits.vecmat.d3 with type parameters of type QuantityModifier and TypeClassDescriptionclassMatrix3x3<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Matrix3x3 implements a matrix with 3x3 real-valued entries.classVector3<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>, V extends Vector3<Q, U, V, SI, H>, SI extends Vector3<SIQuantity, SIUnit, SI, ?, ?>, H extends Vector3<?, ?, ?, ?, ?>> Vector3 implements a vector with three real-valued entries.static classVector3.Col<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Vector3.Col implements a column vector with three real-valued entries.static classVector3.Row<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Vector3.Row implements a row vector with three real-valued entries.Methods in org.djunits.vecmat.d3 with type parameters of type QuantityModifier and TypeMethodDescription<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
Matrix3x3<TQ,TU> Matrix3x3.as(TU targetUnit) Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
Vector3.Col<TQ,TU> Vector3.Col.as(TU targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
Vector3.Row<TQ,TU> Vector3.Row.as(TU targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Matrix3x3<Q,U> Matrix3x3.of(double[][] gridInUnit, U displayUnit) Create a new Matrix3x3 with a unit, based on a 2-dimensional grid.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Matrix3x3<Q,U> Matrix3x3.of(double[] arrayInUnit, U displayUnit) Create a new Matrix3x3 with a unit, based on a 1-dimensional array.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Vector3.Col<Q,U> Vector3.Col.of(double xInUnit, double yInUnit, double zInUnit, U displayUnit) Create a Vector3 column vector without needing generics.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
Vector3.Row<Q,U> Vector3.Row.of(double xInUnit, double yInUnit, double zInUnit, U displayUnit) Create a Vector3 row vector without needing generics.Methods in org.djunits.vecmat.d3 that return QuantityMethods in org.djunits.vecmat.d3 with parameters of type QuantityModifier and TypeMethodDescriptionMatrix3x3.multiplyElements(Quantity<?, ?> quantity) Vector3.Col.multiplyElements(Quantity<?, ?> quantity) Vector3.Row.multiplyElements(Quantity<?, ?> quantity) -
Uses of Quantity in org.djunits.vecmat.def
Classes in org.djunits.vecmat.def with type parameters of type QuantityModifier and TypeClassDescriptionclassMatrix<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>, M extends Matrix<Q, U, M, SI, H>, SI extends Matrix<SIQuantity, SIUnit, SI, ?, ?>, H extends Matrix<?, ?, ?, ?, ?>> Matrix contains a number of standard operations on matrices of relative quantities.classSquareDenseMatrix<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>, M extends SquareDenseMatrix<Q, U, M, SI, H>, SI extends SquareDenseMatrix<SIQuantity, SIUnit, SI, ?, ?>, H extends SquareDenseMatrix<?, ?, ?, ?, ?>> SquareDenseMatrix implements the core functions for a matrix with n x n real-valued entries.classSquareMatrix<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>, M extends SquareMatrix<Q, U, M, SI, H>, SI extends SquareMatrix<SIQuantity, SIUnit, SI, ?, ?>, H extends SquareMatrix<?, ?, ?, ?, ?>> SquareMatrix defines a number of operations that can be applied to square matrixes, such as transpose, invert, and determinant.classVector<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>, V extends Vector<Q, U, V, SI, H>, SI extends Vector<SIQuantity, SIUnit, SI, ?, ?>, H extends Vector<?, ?, ?, ?, ?>> Vector contains the contract for Vector classes.classVectorMatrix<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>, VM extends VectorMatrix<Q, U, VM, SI, H>, SI extends VectorMatrix<SIQuantity, SIUnit, SI, ?, ?>, H extends VectorMatrix<?, ?, ?, ?, ?>> VectorMatrix contains a number of standard operations on vectors and matrices of relative quantities.Methods in org.djunits.vecmat.def that return QuantityModifier and TypeMethodDescriptionQ[]VectorMatrix.getColumnScalars(int col) Retrieve a column (0-based) from the matrix as an array of scalars.Q[]SquareMatrix.getDiagonalScalars()Retrieve the main diagonal of the matrix as an array of scalars.Q[]VectorMatrix.getRowScalars(int row) Retrieve a row (0-based) from the matrix as an array of scalars.abstract Q[]Vector.getScalarArray()Return the vector as an array of scalars.Q[][]VectorMatrix.getScalarGrid()Return the vector or matrix as a 2D array of scalars.Q[]VectorMatrix.mgetColumnScalars(int mCol) Retrieve a column (1-based) from the matrix as an array of scalars.Q[]VectorMatrix.mgetRowScalars(int mRow) Retrieve a row (1-based) from the matrix as an array of scalars.Methods in org.djunits.vecmat.def with parameters of type Quantity -
Uses of Quantity in org.djunits.vecmat.dn
Classes in org.djunits.vecmat.dn with type parameters of type QuantityModifier and TypeClassDescriptionclassMatrixNxN<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> MatrixNxN implements a square matrix with NxN real-valued entries.classVectorN<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>, V extends VectorN<Q, U, V, SI, H>, SI extends VectorN<SIQuantity, SIUnit, SI, ?, ?>, H extends VectorN<?, ?, ?, ?, ?>> VectorN.java.static classVectorN.Col<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> VectorN.Col implements a column vector with real-valued entries.static classVectorN.Row<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> VectorN.Row implements a row vector with real-valued entries.Methods in org.djunits.vecmat.dn with type parameters of type QuantityModifier and TypeMethodDescription<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
MatrixNxN<TQ,TU> MatrixNxN.as(TU targetUnit) Return the matrix "as" a matrix with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
VectorN.Col<TQ,TU> VectorN.Col.as(TU targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
VectorN.Row<TQ,TU> VectorN.Row.as(TU targetUnit) Return the vector 'as' a vector with a known quantity, using a unit to express the result in.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
MatrixNxN<Q,U> MatrixNxN.of(double[][] valueGridInUnit, U displayUnit) Create a new MatrixNxN with a unit, based on a 2-dimensional grid.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
MatrixNxN<Q,U> MatrixNxN.of(double[] valueArrayInUnit, U displayUnit) Create a new MatrixNxN with a unit, based on a 1-dimensional array.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Col<Q,U> VectorN.Col.of(double[] data, U unit) Create a new column VectorN with a unit, based on a double[] array that contains data in the given unit.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Col<Q,U> Create a new column VectorN with a unit, based on a quantity list that contains data.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Col<Q,U> VectorN.Col.of(Q[] data, U displayUnit) Create a new column VectorN with a unit, based on a quantity array that contains data.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Row<Q,U> VectorN.Row.of(double[] data, U unit) Create a new row VectorN with a unit, based on a double[] array that contains data in the given unit.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Row<Q,U> Create a new row VectorN with a unit, based on a quantity list that contains data.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Row<Q,U> VectorN.Row.of(Q[] data, U displayUnit) Create a new row VectorN with a unit, based on a quantity array that contains data.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Col<Q,U> VectorN.Col.ofSi(double[] dataSi, U displayUnit) Create a new column VectorN with a unit, based on a double[] array that contains SI data.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Col<Q,U> VectorN.Col.ofSi(DataGridSi<?> dataSi, U displayUnit) Create a new column VectorN with a unit, based on a DataGridSi storage object that contains SI data.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Row<Q,U> VectorN.Row.ofSi(double[] dataSi, U displayUnit) Create a new row VectorN with a unit, based on a double[] array that contains SI data.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Row<Q,U> VectorN.Row.ofSi(DataGridSi<?> dataSi, U displayUnit) Create a new row VectorN with a unit, based on a DataGridSi storage object that contains SI data.Methods in org.djunits.vecmat.dn that return QuantityMethods in org.djunits.vecmat.dn with parameters of type QuantityModifier and TypeMethodDescriptionMatrixNxN.multiplyElements(Quantity<?, ?> quantity) VectorN.Col.multiplyElements(Quantity<?, ?> quantity) VectorN.Row.multiplyElements(Quantity<?, ?> quantity) static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Col<Q,U> VectorN.Col.of(Q[] data, U displayUnit) Create a new column VectorN with a unit, based on a quantity array that contains data.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
VectorN.Row<Q,U> VectorN.Row.of(Q[] data, U displayUnit) Create a new row VectorN with a unit, based on a quantity array that contains data. -
Uses of Quantity in org.djunits.vecmat.dnxm
Classes in org.djunits.vecmat.dnxm with type parameters of type QuantityModifier and TypeClassDescriptionclassMatrixNxM<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> MatrixNxM implements a matrix with NxM real-valued entries.Methods in org.djunits.vecmat.dnxm with type parameters of type QuantityModifier and TypeMethodDescription<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
MatrixNxM<TQ,TU> MatrixNxM.as(TU targetUnit) Return the matrix 'as' a matrix with a known quantity, using a unit to express the result in.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
MatrixNxM<Q,U> MatrixNxM.of(double[][] valueGridInUnit, U displayUnit) Create a new MatrixNxM with a unit, based on a 2-dimensional double grid.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
MatrixNxM<Q,U> MatrixNxM.of(double[] valueArrayInUnit, int rows, int cols, U displayUnit) Create a new MatrixNxM with a unit, based on a 1-dimensional double array.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
MatrixNxM<Q,U> MatrixNxM.of(Q[][] quantityGrid, U displayUnit) Create a new MatrixNxM with a unit, based on a 2-dimensional quantity grid.Methods in org.djunits.vecmat.dnxm with parameters of type QuantityModifier and TypeMethodDescriptionstatic <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
MatrixNxM<Q,U> MatrixNxM.of(Q[][] quantityGrid, U displayUnit) Create a new MatrixNxM with a unit, based on a 2-dimensional quantity grid. -
Uses of Quantity in org.djunits.vecmat.operations
Classes in org.djunits.vecmat.operations with type parameters of type QuantityModifier and TypeInterfaceDescriptioninterfaceNormed<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Normed calculates a norm of an element, expressed as a quantity.Methods in org.djunits.vecmat.operations with parameters of type QuantityModifier and TypeMethodDescriptiondefault SIHadamard.divideElements(Quantity<?, ?> quantity) Divide the elements of this vector, matrix or table by the given quantity.Hadamard.multiplyElements(Quantity<?, ?> quantity) Multiply the elements of this vector, matrix or table by the given quantity. -
Uses of Quantity in org.djunits.vecmat.storage
Classes in org.djunits.vecmat.storage with type parameters of type QuantityModifier and TypeClassDescriptionclassDoubleSparseValue<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Double-precision data point for a matrix that can be used for constructing sparse matrices.classFloatSparseValue<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> Float-precision data point for a matrix that can be used for constructing sparse matrices.Methods in org.djunits.vecmat.storage with type parameters of type QuantityModifier and TypeMethodDescription<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
voidSparseDoubleDataSi.storeSparse(Q[] denseData) Store sparse data[] and indexes[].<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
voidSparseDoubleDataSi.storeSparse(Q[][] denseData) Store sparse data[] and indexes[].<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
voidSparseFloatDataSi.storeSparse(Q[] denseData) Store sparse data[] and indexes[].<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
voidSparseFloatDataSi.storeSparse(Q[][] denseData) Store sparse data[] and indexes[].Methods in org.djunits.vecmat.storage with parameters of type QuantityModifier and TypeMethodDescription<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
voidSparseDoubleDataSi.storeSparse(Q[] denseData) Store sparse data[] and indexes[].<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
voidSparseDoubleDataSi.storeSparse(Q[][] denseData) Store sparse data[] and indexes[].<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
voidSparseFloatDataSi.storeSparse(Q[] denseData) Store sparse data[] and indexes[].<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
voidSparseFloatDataSi.storeSparse(Q[][] denseData) Store sparse data[] and indexes[].Constructors in org.djunits.vecmat.storage with parameters of type QuantityModifierConstructorDescriptionDenseDoubleDataSi(Q[][] data) Instantiate a data object with a Q[rows][cols].DenseFloatDataSi(Q[][] data) Instantiate a data object with a Q[rows][cols].SparseDoubleDataSi(Q[][] denseData) Instantiate a data object with a dense double[rows][cols].SparseDoubleDataSi(Q[] sparseData, int[] indexes, int rows, int cols) Instantiate a data object with one array in row-major format.SparseDoubleDataSi(Q[] denseData, int rows, int cols) Instantiate a data object with one array in row-major format.SparseFloatDataSi(Q[][] denseData) Instantiate a data object with a dense double[rows][cols].SparseFloatDataSi(Q[] sparseData, int[] indexes, int rows, int cols) Instantiate a data object with one array in row-major format.SparseFloatDataSi(Q[] denseData, int rows, int cols) Instantiate a data object with one array in row-major format. -
Uses of Quantity in org.djunits.vecmat.table
Classes in org.djunits.vecmat.table with type parameters of type QuantityModifier and TypeClassDescriptionclassQuantityTable<Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>> QuantityTable is a two-dimensonal table with quantities.Methods in org.djunits.vecmat.table with type parameters of type QuantityModifier and TypeMethodDescription<TQ extends Quantity<TQ,TU>, TU extends UnitInterface<TU, TQ>>
QuantityTable<TQ,TU> QuantityTable.as(TU targetUnit) Return the QuantityTable 'as' a QuantityTable with a known quantity, using a unit to express the result in.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QuantityTable<Q,U> QuantityTable.of(double[][] valueGridInUnit, U displayUnit) Create a new NxM QuantityTable with a unit, based on a 2-dimensional double grid.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QuantityTable<Q,U> QuantityTable.of(double[] valueArrayInUnit, int rows, int cols, U displayUnit) Create a new NxM QuantityTable with a unit, based on a 1-dimensional double array.static <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QuantityTable<Q,U> QuantityTable.of(Q[][] quantityGrid, U displayUnit) Create a new NxM QuantityTable with a unit, based on a 2-dimensional quantity grid.Methods in org.djunits.vecmat.table with parameters of type QuantityModifier and TypeMethodDescriptionstatic <Q extends Quantity<Q,U>, U extends UnitInterface<U, Q>>
QuantityTable<Q,U> QuantityTable.of(Q[][] quantityGrid, U displayUnit) Create a new NxM QuantityTable with a unit, based on a 2-dimensional quantity grid.