differt-core 0.7.0__tar.gz → 0.8.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {differt_core-0.7.0 → differt_core-0.8.1}/Cargo.lock +1 -1
- {differt_core-0.7.0 → differt_core-0.8.1}/PKG-INFO +1 -1
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/Cargo.toml +1 -1
- {differt_core-0.7.0 → differt_core-0.8.1}/python/differt_core/__init__.py +0 -1
- differt_core-0.7.0/differt-core/python/differt_core/__init__.py +0 -25
- differt_core-0.7.0/python/differt_core/_differt_core/__init__.pyi +0 -8
- differt_core-0.7.0/python/differt_core/_differt_core/geometry/triangle_mesh.pyi +0 -17
- differt_core-0.7.0/python/differt_core/_differt_core/rt/__init__.pyi +0 -0
- differt_core-0.7.0/python/differt_core/_differt_core/rt/graph.pyi +0 -104
- differt_core-0.7.0/python/differt_core/_differt_core/scene/sionna.pyi +0 -18
- differt_core-0.7.0/python/differt_core/_differt_core/scene/triangle_scene.pyi +0 -7
- differt_core-0.7.0/python/differt_core/geometry/__init__.py +0 -5
- differt_core-0.7.0/python/differt_core/geometry/_triangle_mesh.py +0 -5
- differt_core-0.7.0/python/differt_core/py.typed +0 -0
- differt_core-0.7.0/python/differt_core/rt/__init__.py +0 -19
- differt_core-0.7.0/python/differt_core/rt/_graph.py +0 -19
- differt_core-0.7.0/python/differt_core/scene/__init__.py +0 -6
- differt_core-0.7.0/python/differt_core/scene/_sionna.py +0 -7
- differt_core-0.7.0/python/differt_core/scene/_triangle_scene.py +0 -5
- {differt_core-0.7.0 → differt_core-0.8.1}/Cargo.toml +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/LICENSE.md +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/README.md +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/LICENSE.md +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/README.md +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/benches/bench_main.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/benches/benchmarks/graph_iterators.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/benches/benchmarks/mod.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/geometry/mod.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/geometry/triangle_mesh.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/lib.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/rt/graph.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/rt/mod.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/scene/mod.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/scene/sionna.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/src/scene/triangle_scene.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/tests/__init__.py +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/tests/rt/__init__.py +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/tests/rt/test_graph.py +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/differt-core/tests/test_version.py +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/pyproject.toml +1 -1
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/__init__.pyi +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/geometry/triangle_mesh.pyi +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/rt/__init__.pyi +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/rt/graph.pyi +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/scene/sionna.pyi +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/_differt_core/scene/triangle_scene.pyi +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/geometry/__init__.py +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/geometry/_triangle_mesh.py +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/py.typed +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/rt/__init__.py +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/rt/_graph.py +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/scene/__init__.py +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/scene/_sionna.py +0 -0
- {differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/scene/_triangle_scene.py +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/src/geometry/mod.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/src/geometry/triangle_mesh.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/src/lib.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/src/rt/graph.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/src/rt/mod.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/src/scene/mod.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/src/scene/sionna.rs +0 -0
- {differt_core-0.7.0 → differt_core-0.8.1}/src/scene/triangle_scene.rs +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# ruff: noqa: RUF067
|
|
2
|
-
"""
|
|
3
|
-
Core package written in Rust and re-exported here.
|
|
4
|
-
|
|
5
|
-
The present package only provides lower-level utilities with
|
|
6
|
-
a focus on performances.
|
|
7
|
-
|
|
8
|
-
Currently, Rust uses NumPy's C API to communicate between Python
|
|
9
|
-
and Rust, hence casting NumPy arrays to JAX arrays in the process,
|
|
10
|
-
thus making it impossible to trace variables used in Rust code.
|
|
11
|
-
|
|
12
|
-
In the future, we plan on providing XLA-compatible functions,
|
|
13
|
-
so that one can use :mod:`differt_core` and still be able to differentiate
|
|
14
|
-
its code. We welcome any contribution on that topic!
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
from differt_core._differt_core import __version__ as _version
|
|
18
|
-
from differt_core._differt_core import __version_info__ as _version_info
|
|
19
|
-
|
|
20
|
-
__all__ = ("__version__", "__version_info__")
|
|
21
|
-
|
|
22
|
-
__version__ = _version
|
|
23
|
-
"""The current full version of this module."""
|
|
24
|
-
__version_info__ = _version_info
|
|
25
|
-
"""The current short version of this module as a tuple (major, minor, patch)."""
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# pyright: reportMissingTypeArgument=false
|
|
2
|
-
import numpy as np
|
|
3
|
-
from jaxtyping import Float, Int, UInt
|
|
4
|
-
|
|
5
|
-
class TriangleMesh:
|
|
6
|
-
vertices: Float[np.ndarray, "num_vertices 3"]
|
|
7
|
-
triangles: UInt[np.ndarray, "num_triangles 3"]
|
|
8
|
-
face_colors: Float[np.ndarray, "num_triangles 3"] | None
|
|
9
|
-
face_materials: Int[np.ndarray, " num_triangles"] | None
|
|
10
|
-
material_names: list[str]
|
|
11
|
-
object_bounds: UInt[np.ndarray, "num_objects 2"] | None
|
|
12
|
-
|
|
13
|
-
def append(self, other: TriangleMesh) -> None: ...
|
|
14
|
-
@classmethod
|
|
15
|
-
def load_obj(cls, file: str) -> TriangleMesh: ...
|
|
16
|
-
@classmethod
|
|
17
|
-
def load_ply(cls, file: str) -> TriangleMesh: ...
|
|
File without changes
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# pyright: reportMissingTypeArgument=false
|
|
2
|
-
from collections.abc import Iterator, Sized
|
|
3
|
-
|
|
4
|
-
import numpy as np
|
|
5
|
-
from jaxtyping import Bool, UInt
|
|
6
|
-
|
|
7
|
-
class CompleteGraph:
|
|
8
|
-
@property
|
|
9
|
-
def num_nodes(self) -> int: ...
|
|
10
|
-
def __init__(self, num_nodes: int) -> None: ...
|
|
11
|
-
def all_paths(
|
|
12
|
-
self,
|
|
13
|
-
from_: int,
|
|
14
|
-
to: int,
|
|
15
|
-
depth: int,
|
|
16
|
-
*,
|
|
17
|
-
include_from_and_to: bool = True,
|
|
18
|
-
) -> AllPathsFromCompleteGraphIter: ...
|
|
19
|
-
def all_paths_array(
|
|
20
|
-
self,
|
|
21
|
-
from_: int,
|
|
22
|
-
to: int,
|
|
23
|
-
depth: int,
|
|
24
|
-
*,
|
|
25
|
-
include_from_and_to: bool = True,
|
|
26
|
-
) -> UInt[np.ndarray, "num_paths path_depth"]: ...
|
|
27
|
-
def all_paths_array_chunks(
|
|
28
|
-
self,
|
|
29
|
-
from_: int,
|
|
30
|
-
to: int,
|
|
31
|
-
depth: int,
|
|
32
|
-
*,
|
|
33
|
-
include_from_and_to: bool = True,
|
|
34
|
-
chunk_size: int,
|
|
35
|
-
) -> AllPathsFromCompleteGraphChunksIter: ...
|
|
36
|
-
|
|
37
|
-
class DiGraph:
|
|
38
|
-
@property
|
|
39
|
-
def num_nodes(self) -> int: ...
|
|
40
|
-
@classmethod
|
|
41
|
-
def from_adjacency_matrix(
|
|
42
|
-
cls,
|
|
43
|
-
adjacency_matrix: Bool[np.ndarray, "num_nodes num_nodes"],
|
|
44
|
-
) -> DiGraph: ...
|
|
45
|
-
@classmethod
|
|
46
|
-
def from_complete_graph(cls, graph: CompleteGraph) -> DiGraph: ...
|
|
47
|
-
def insert_from_and_to_nodes(
|
|
48
|
-
self,
|
|
49
|
-
*,
|
|
50
|
-
direct_path: bool = True,
|
|
51
|
-
from_adjacency: Bool[np.ndarray, " num_nodes"],
|
|
52
|
-
to_adjacency: Bool[np.ndarray, " num_nodes"],
|
|
53
|
-
) -> tuple[int, int]: ...
|
|
54
|
-
def disconnect_nodes(self, *nodes: int, fast_mode: bool = True) -> None: ...
|
|
55
|
-
def filter_by_mask(
|
|
56
|
-
self, mask: Bool[np.ndarray, " num_nodes"], fast_mode: bool = True
|
|
57
|
-
) -> None: ...
|
|
58
|
-
def all_paths(
|
|
59
|
-
self,
|
|
60
|
-
from_: int,
|
|
61
|
-
to: int,
|
|
62
|
-
depth: int,
|
|
63
|
-
*,
|
|
64
|
-
include_from_and_to: bool = True,
|
|
65
|
-
) -> AllPathsFromDiGraphIter: ...
|
|
66
|
-
def all_paths_array(
|
|
67
|
-
self,
|
|
68
|
-
from_: int,
|
|
69
|
-
to: int,
|
|
70
|
-
depth: int,
|
|
71
|
-
*,
|
|
72
|
-
include_from_and_to: bool = True,
|
|
73
|
-
) -> UInt[np.ndarray, "num_paths path_depth"]: ...
|
|
74
|
-
def all_paths_array_chunks(
|
|
75
|
-
self,
|
|
76
|
-
from_: int,
|
|
77
|
-
to: int,
|
|
78
|
-
depth: int,
|
|
79
|
-
*,
|
|
80
|
-
include_from_and_to: bool = True,
|
|
81
|
-
chunk_size: int,
|
|
82
|
-
) -> AllPathsFromDiGraphChunksIter: ...
|
|
83
|
-
|
|
84
|
-
class AllPathsFromCompleteGraphIter(Iterator, Sized):
|
|
85
|
-
def __iter__(self) -> AllPathsFromCompleteGraphIter: ...
|
|
86
|
-
def __next__(self) -> UInt[np.ndarray, " path_depth"]: ...
|
|
87
|
-
def __len__(self) -> int: ...
|
|
88
|
-
def count(self) -> int: ...
|
|
89
|
-
|
|
90
|
-
class AllPathsFromCompleteGraphChunksIter(Iterator, Sized):
|
|
91
|
-
def __iter__(self) -> AllPathsFromCompleteGraphChunksIter: ...
|
|
92
|
-
def __next__(self) -> UInt[np.ndarray, "chunk_size path_depth"]: ...
|
|
93
|
-
def __len__(self) -> int: ...
|
|
94
|
-
def count(self) -> int: ...
|
|
95
|
-
|
|
96
|
-
class AllPathsFromDiGraphIter(Iterator):
|
|
97
|
-
def __iter__(self) -> AllPathsFromDiGraphIter: ...
|
|
98
|
-
def __next__(self) -> UInt[np.ndarray, " path_depth"]: ...
|
|
99
|
-
def count(self) -> int: ...
|
|
100
|
-
|
|
101
|
-
class AllPathsFromDiGraphChunksIter(Iterator):
|
|
102
|
-
def __iter__(self) -> AllPathsFromDiGraphChunksIter: ...
|
|
103
|
-
def __next__(self) -> UInt[np.ndarray, "chunk_size path_depth"]: ...
|
|
104
|
-
def count(self) -> int: ...
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
class SionnaScene:
|
|
2
|
-
shapes: dict[str, Shape]
|
|
3
|
-
materials: dict[str, Material]
|
|
4
|
-
|
|
5
|
-
@classmethod
|
|
6
|
-
def load_xml(cls, file: str) -> SionnaScene: ...
|
|
7
|
-
|
|
8
|
-
class Material:
|
|
9
|
-
name: str
|
|
10
|
-
id: str
|
|
11
|
-
color: tuple[float, float, float]
|
|
12
|
-
thickness: float | None
|
|
13
|
-
|
|
14
|
-
class Shape:
|
|
15
|
-
type: str
|
|
16
|
-
id: str
|
|
17
|
-
file: str
|
|
18
|
-
material_id: str
|
|
File without changes
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"""Ray Tracing utilities used by :mod:`differt.rt`."""
|
|
2
|
-
|
|
3
|
-
__all__ = (
|
|
4
|
-
"AllPathsFromCompleteGraphChunksIter",
|
|
5
|
-
"AllPathsFromCompleteGraphIter",
|
|
6
|
-
"AllPathsFromDiGraphChunksIter",
|
|
7
|
-
"AllPathsFromDiGraphIter",
|
|
8
|
-
"CompleteGraph",
|
|
9
|
-
"DiGraph",
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
from ._graph import (
|
|
13
|
-
AllPathsFromCompleteGraphChunksIter,
|
|
14
|
-
AllPathsFromCompleteGraphIter,
|
|
15
|
-
AllPathsFromDiGraphChunksIter,
|
|
16
|
-
AllPathsFromDiGraphIter,
|
|
17
|
-
CompleteGraph,
|
|
18
|
-
DiGraph,
|
|
19
|
-
)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
__all__ = (
|
|
2
|
-
"AllPathsFromCompleteGraphChunksIter",
|
|
3
|
-
"AllPathsFromCompleteGraphIter",
|
|
4
|
-
"AllPathsFromDiGraphChunksIter",
|
|
5
|
-
"AllPathsFromDiGraphIter",
|
|
6
|
-
"CompleteGraph",
|
|
7
|
-
"DiGraph",
|
|
8
|
-
)
|
|
9
|
-
|
|
10
|
-
from differt_core import _differt_core
|
|
11
|
-
|
|
12
|
-
AllPathsFromCompleteGraphChunksIter = (
|
|
13
|
-
_differt_core.rt.graph.AllPathsFromCompleteGraphChunksIter
|
|
14
|
-
)
|
|
15
|
-
AllPathsFromCompleteGraphIter = _differt_core.rt.graph.AllPathsFromCompleteGraphIter
|
|
16
|
-
AllPathsFromDiGraphChunksIter = _differt_core.rt.graph.AllPathsFromDiGraphChunksIter
|
|
17
|
-
AllPathsFromDiGraphIter = _differt_core.rt.graph.AllPathsFromDiGraphIter
|
|
18
|
-
CompleteGraph = _differt_core.rt.graph.CompleteGraph
|
|
19
|
-
DiGraph = _differt_core.rt.graph.DiGraph
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{differt_core-0.7.0 → differt_core-0.8.1}/differt-core/benches/benchmarks/graph_iterators.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/geometry/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/scene/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{differt_core-0.7.0/differt-core → differt_core-0.8.1}/python/differt_core/scene/_triangle_scene.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|