From 670106976fea5f195bbd4018184ceb803d81d46e Mon Sep 17 00:00:00 2001 From: HOS Date: Tue, 3 Oct 2023 15:19:22 +0200 Subject: [PATCH] Trying to clarify array introduction - covering all cases. Closes #3414 --- chapters/arrays.tex | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/chapters/arrays.tex b/chapters/arrays.tex index 7e4d2322b..9e72ebc10 100644 --- a/chapters/arrays.tex +++ b/chapters/arrays.tex @@ -1,12 +1,10 @@ \chapter{Arrays}\label{arrays} -A non-record array can be regarded as a collection of type compatible values, \cref{type-compatible-expressions}. -An array of records may contain scalar record values whose elements differ in their dimension sizes, but apart from that they must be of the same type. +An array of the specialized classes type, record, and connector can be regarded as a collection of type compatible values, \cref{type-compatible-expressions}. +Thus an array of the specialized classes record or connector may contain scalar values whose elements differ in their dimension sizes, but apart from that they must be of the same type. Such heterogenous arrays may only be used completely, sliced as specified, or indexed. -An array of arrays must have the same dimension sizes for all of the arrays (with the same exception for records). -Modelica arrays can be multidimensional and are ``rectangular'', -which in the case of matrices has the consequence that all rows in a -matrix have equal length, and all columns have equal length. +An array of other specialized classes can only be used sliced as specified, or indexed. +Modelica arrays can be multidimensional and are ``rectangular'', which in the case of matrices has the consequence that all rows in a matrix have equal length, and all columns have equal length. Each array has a certain dimensionality, i.e., number of dimensions. The degenerate case of a \firstuse{scalar} variable is not really an array, but can be regarded as an array with zero dimensions.