14.2.33 Class Set

mosek.fusion.Set

This class contains static methods for creating and manipulating shape specifications.

Static members:

Set.Make – Creates a shape.

Set.Scalar – Create a shape of size 1.

Set.Strides – Compute the strides from a shape.

Set.Make
int[] Set.Make(string[] names)
int[] Set.Make(int sz)
int[] Set.Make(int s1, int s2)
int[] Set.Make(int s1, int s2, int s3)
int[] Set.Make(int[] sizes)
int[] Set.Make(int[] set1, int[] set2)

This static method is a factory for different kind of set objects:

  • A (multi-dimensional) set of integers (shape).

  • A set whose elements are strings.

  • A set obtained as Cartesian product of sets given in a list.

Parameters:
  • names (string[]) – A list of strings for a set of strings.

  • sz (int) – The size of a one-dimensional set of integers.

  • s1 (int) – Size of the first dimension.

  • s2 (int) – Size of the second dimension.

  • s3 (int) – Size of the third dimension.

  • sizes (int[]) – The sizes of dimensions for a multi-dimensional integer set.

  • set1 (int[]) – First factor in a Cartesian product.

  • set2 (int[]) – Second factor in a Cartesian product.

Return:

(int[])

Set.Scalar
int[] Set.Scalar()

Create a shape of size 1.

Return:

(int[])

Set.Strides
long[] Set.Strides(int[] shape)

Compute the strides from a shape.

Parameters:

shape (int[])

Return:

(long[])