{
  "node": {
    "id": "block:native-permute-dimensions",
    "type": "Block",
    "label": "Permute array dimensions",
    "properties": {
      "id": "native-permute-dimensions",
      "name": "Permute array dimensions",
      "kind": "studio",
      "summary": "Reorders array axes while preserving each element’s coordinates.",
      "behavior": "output coordinate on axis j maps to input axis permutation[j]. The worked example connects this operation to signals in Lemonergy Studio.",
      "ports": [
        {
          "name": "in0",
          "direction": "input",
          "unit": "1",
          "description": "Values; real 2 × 3 array.",
          "shape": [
            2,
            3
          ],
          "elementType": "real"
        },
        {
          "name": "out0",
          "direction": "output",
          "unit": "1",
          "description": "Result; real 3 × 2 array.",
          "shape": [
            3,
            2
          ],
          "elementType": "real"
        }
      ],
      "parameters": [
        {
          "key": "params[0]",
          "label": "First output axis",
          "unit": "1",
          "default": 1,
          "description": "Zero-based input-axis index."
        },
        {
          "key": "params[1]",
          "label": "Second output axis",
          "unit": "1",
          "default": 0,
          "description": "Configured finite numerical parameter."
        }
      ],
      "equations": [
        "output coordinate on axis j maps to input axis permutation[j]"
      ],
      "example": {
        "title": "Permute array dimensions — worked example",
        "text": "Values = [1,2,3,4,5,6]. Result at 0 s = [1,3,5,2,4,6].",
        "url": "https://design.lemonergy.com/cosim.html?example=block-native-permute-dimensions",
        "label": "Open Studio example",
        "inputs": [
          {
            "port": "in0",
            "label": "Values",
            "value": [
              1,
              2,
              3,
              4,
              5,
              6
            ],
            "unit": "1"
          }
        ],
        "checks": [
          {
            "port": "out0",
            "label": "Result",
            "atS": 0,
            "value": [
              1,
              3,
              5,
              2,
              4,
              6
            ],
            "unit": "1",
            "tolerance": 1e-08
          }
        ]
      },
      "limits": [
        "Shapes and element types are explicit. Values must be finite; automatic reshaping and unit conversion are not performed."
      ],
      "references": [],
      "referenceNote": "This software operation and its numerical conventions are defined by the public contract and worked example; no external research result is claimed.",
      "caseIds": [
        "native-native-permute-dimensions"
      ],
      "availability": {
        "status": "released",
        "label": "Available in Lemonergy Studio",
        "detail": "The bundled example is available in the production release verified on 28 October 2026. The parameters and examples here are synthetic teaching fixtures, not a characterized cell or a validated operating limit."
      },
      "evidence": [
        "docs/glossary/native-block-verification.json"
      ],
      "sourceRepository": "Lemonergy Studio public contract",
      "sourceRevision": "verification-2026-10-27",
      "exampleTraces": [
        {
          "id": "native-permute-dimensions",
          "url": "https://lemonergy.com/learn/glossary/api/traces/native-permute-dimensions.json?v=04ae4fa13c3a",
          "title": "Permute array dimensions recorded example",
          "exampleId": "block-native-permute-dimensions",
          "source": "Executed synthetic Lemonergy Studio example",
          "recordedOn": "2026-10-28",
          "points": 2,
          "channels": 6,
          "omittedChannels": 0,
          "interpolation": "linear",
          "solver": {
            "method": "dormand-prince-45",
            "reason": "no-continuous-states"
          }
        }
      ],
      "type": "native-permute-dimensions",
      "implementationId": "native-permute-dimensions",
      "url": "https://lemonergy.com/learn/glossary/blocks/native-permute-dimensions/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/native-permute-dimensions/",
      "sourceFile": "block-library.json",
      "reviewed": "2026-10-27",
      "releaseEvidence": {
        "environment": "production",
        "status": "verified",
        "revision": "e76cadfc203e15eb41f3478d8b1044a5b851953d",
        "verifiedOn": "2026-10-28",
        "exampleUrls": [
          "https://design.lemonergy.com/cosim.html?example=block-native-permute-dimensions"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-native-permute-dimensions/0",
      "type": "usesBlock",
      "source": "workflow:native-native-permute-dimensions",
      "target": "block:native-permute-dimensions",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "Permute array dimensions",
        "type": "native-permute-dimensions",
        "role": "output coordinate on axis j maps to input axis permutation[j]. The worked example connects this operation to signals in Lemonergy Studio.",
        "settings": [
          "Use the block reference for settings and connections.",
          "Bundled example verified on the production release of 28 October 2026."
        ]
      }
    }
  ],
  "outgoing": [],
  "neighbors": [
    {
      "id": "workflow:native-native-permute-dimensions",
      "type": "Workflow",
      "label": "Permute array dimensions — worked example",
      "properties": {
        "id": "native-native-permute-dimensions",
        "title": "Permute array dimensions — worked example",
        "kind": "studio",
        "summary": "Reorders array axes while preserving each element’s coordinates.",
        "steps": [
          "Review the interface, units and model limits.",
          "Open the Studio example and run its bundled model.",
          "Compare outputs with the numerical checks; change one input and run again."
        ],
        "example": "Values = [1,2,3,4,5,6]. Result at 0 s = [1,3,5,2,4,6].",
        "observe": "Inspect the output channels and checks on the block reference page.",
        "limits": "Shapes and element types are explicit. Values must be finite; automatic reshaping and unit conversion are not performed.",
        "url": "https://design.lemonergy.com/cosim.html?example=block-native-permute-dimensions",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    }
  ]
}
