Skip to content

Commit

Permalink
[Refactor] Remove unnecessary exposure related to matrix and mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-hitonami committed Jan 26, 2022
1 parent 3305f66 commit 0056369
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/taichi/lang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@
static, static_assert, static_print, stop_grad,
subscript, ti_assert, ti_float, ti_format,
ti_int, ti_print, zero)
from taichi.lang.kernel_arguments import SparseMatrixProxy
from taichi.lang.kernel_impl import (KernelArgError, KernelDefError,
data_oriented, func, kernel, pyfunc)
from taichi.lang.matrix import Matrix, MatrixField, Vector
from taichi.lang.mesh import Mesh, MeshElementFieldProxy, TetMesh, TriMesh
from taichi.lang.matrix import *
from taichi.lang.mesh import *
from taichi.lang.ops import * # pylint: disable=W0622
from taichi.lang.quant_impl import quant
from taichi.lang.runtime_ops import async_flush, sync
Expand Down
3 changes: 3 additions & 0 deletions python/taichi/lang/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -1429,3 +1429,6 @@ def fill_by_kernel(self, val):

def __repr__(self):
return f'<{self.n} {self.layout} ti.Vector.ndarray>'


__all__ = ["Matrix", "Vector"]
3 changes: 3 additions & 0 deletions python/taichi/lang/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,3 +528,6 @@ def subscript(self, *indices):
entry_expr.type_check()
return MeshElementFieldProxy(self.mesh, self.to_element_type,
entry_expr)


__all__ = ["Mesh", "TetMesh", "TriMesh"]

0 comments on commit 0056369

Please sign in to comment.