funclp.use_shapes module

funclp.use_shapes(variables, data, parameters)[source]

Defines data shape (nmodels, npoints) from inputs.

Parameters:
  • variables (list) – List of variables arrays.

  • data (list) – List of data arrays.

  • parameters (list) – List of parameters arrays.

Returns:

  • (nomodel, nopoint) (tuple of bool) – True if the dimension of corresponding is 1 but should be removed at output

  • (nmodels, npoints) (tuple of int) – Output shape.

  • (variables_shape, data_shape, parameters_shape) (tuple of tuple) – Shapes of inputs