Observation.permute_source_index: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/observation.bend as Observation Lines 444-447 of bendtorch-core@0.1.0.0/src/tensor/observation.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/observation.bend&start_line=444&end_line=447 import Base import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape # The row-major source index that `permute_source` names for output index # `index`, as a natural (0 where it names none). def permute_source_index(+input: Shape.Shape, +axes: List<&2, U32>, +index: Nat) -> Nat: U32.to_nat(Maybe.default(&2, U32, permute_source(input, axes, U32.from_nat(index)), 0)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe.default https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=Shape https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/observation.bend&name=permute_source