Constructors

ScalarList(int n)

Builds a list of length n, with each entry initialized to 0.0.

ScalarList(Scalar s, int n)

Builds a list of length n, with each entry initialized to s. CAUTION: Note that it is very easy to confuse this constructor with the one that takes two scalars as arguments.

ScalarList(Scalar s)
ScalarList(Scalar s1, Scalar s2)
ScalarList(Scalar s1, Scalar s2, Scalar s3)
ScalarList(Scalar s1, Scalar s2, Scalar s3, Scalar s4)
Each builds a list and initializes it with the specified values.