FUNCTION shape_of_array

(* SCHEMA step_merged_ap_schema; *)
-- IN AP238 STEP-NC/AP242
FUNCTION shape_of_array
      (func : maths_function ) : LIST OF positive_integer;
   LOCAL
      tspace : tuple_space;
      temp : maths_space;
      result : LIST OF positive_integer := [];
   END_LOCAL;
      IF schema_prefix + 'EXPLICIT_TABLE_FUNCTION' IN TYPEOF(func) THEN
         RETURN (func\explicit_table_function.shape);
      END_IF;
      tspace := func.domain;
      IF (space_dimension(tspace) = 1) AND (schema_prefix + 'TUPLE_SPACE' IN TYPEOF(factor1(tspace))) THEN
         tspace := factor1(tspace);
      END_IF;
      REPEAT i := 1 TO space_dimension(tspace);
         temp := factor_space(tspace, i);
         IF NOT (schema_prefix + 'FINITE_INTEGER_INTERVAL' IN TYPEOF(temp)) THEN
            RETURN (?);
         END_IF;
         INSERT( result, temp\finite_integer_interval.size, i - 1 );
      END_REPEAT;
      RETURN (result);
END_FUNCTION;

Referenced By

Defintion shape_of_array is references by the following definitions:
DefinitionType
 b_spline_function ENTITY
 compare_basis_and_coef FUNCTION
 derive_function_domain FUNCTION
 reindexed_array_function ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00