Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] Remove unnecessary exposure related to matrix and mesh #4152

Merged
merged 2 commits into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]