[#mp_units-quantity_tensor_order]
= xref:mp_units.adoc[mp&lowbar;units]::quantity&lowbar;tensor&lowbar;order
:relfileprefix: ../
:mrdocs:

The tensor order axis of a quantity&apos;s character

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;quantity&lowbar;character&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class quantity&lowbar;tensor&lowbar;order : int8&lowbar;t;
----

== Description

A quantity&apos;s character splits into two orthogonal axes&colon; its _tensor order_ (scalar, vector, tensor) and its _numeric field_ (real, complex)&period; The enumerators are declared in increasing rank so that the underlying comparison orders them (scalar &lt; vector &lt; tensor, real &lt; complex)&period;

== Members

[cols="1,4"]
|===
| Name| Description
| `scalar` 
| A quantity with magnitude but no direction&period;
| `vector` 
| A quantity with both magnitude and direction&period;
| `tensor` 
| A quantity that additionally carries orientation (e&period;g&period; the Cauchy stress tensor)&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
