Skip to content

Commit

Permalink
[refactor] Re-expose important implementation classes
Browse files Browse the repository at this point in the history
  • Loading branch information
strongoier committed Feb 14, 2022
1 parent 150097e commit 4fba029
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions python/taichi/lang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

from taichi._lib import core as _ti_core
from taichi.lang import impl
from taichi.lang._ndarray import *
from taichi.lang._ndrange import ndrange
from taichi.lang.enums import Layout
from taichi.lang.exception import *
from taichi.lang.field import *
from taichi.lang.impl import *
from taichi.lang.kernel_impl import *
from taichi.lang.matrix import *
Expand Down
2 changes: 1 addition & 1 deletion python/taichi/lang/_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,4 @@ def setter(value):
self.setter = setter


__all__ = []
__all__ = ["Ndarray", "ScalarNdarray"]
2 changes: 1 addition & 1 deletion python/taichi/lang/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,4 @@ def __init__(self, accessor, key):
self.key = key


__all__ = []
__all__ = ["Field", "ScalarField"]
2 changes: 1 addition & 1 deletion python/taichi/lang/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -1431,4 +1431,4 @@ def __repr__(self):
return f'<{self.n} {self.layout} ti.Vector.ndarray>'


__all__ = ["Matrix", "Vector"]
__all__ = ["Matrix", "Vector", "MatrixField", "MatrixNdarray", "VectorNdarray"]
2 changes: 1 addition & 1 deletion python/taichi/lang/snode.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,5 +422,5 @@ def get_addr(f, indices):

__all__ = [
'activate', 'append', 'deactivate', 'get_addr', 'is_active', 'length',
'rescale_index'
'rescale_index', "SNode"
]
2 changes: 1 addition & 1 deletion python/taichi/lang/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,4 +514,4 @@ def field(self, **kwargs):
return Struct.field(self.members, **kwargs)


__all__ = ["Struct"]
__all__ = ["Struct", "StructField"]

0 comments on commit 4fba029

Please sign in to comment.