コード例 #1
0
ファイル: chunked.py プロジェクト: pelson/blaze
 def empty(self, dshape):
     """ Create a CArraySource from a datashape specification,
     downcasts into Numpy dtype and shape tuples if possible
     otherwise raises an exception.
     """
     shape, dtype = from_numpy(dshape)
     return CArraySource(carray([], dtype))
コード例 #2
0
ファイル: chunked.py プロジェクト: garfee/blaze
 def empty(self, dshape):
     """ Create a CArraySource from a datashape specification,
     downcasts into Numpy dtype and shape tuples if possible
     otherwise raises an exception.
     """
     shape, dtype = from_numpy(dshape)
     return CArraySource(carray([], dtype))
コード例 #3
0
ファイル: chunked.py プロジェクト: garfee/blaze
 def empty(self, dshape):
     shape, dtype = from_numpy(dshape)
     return CTableSource(carray([[]], dtype))
コード例 #4
0
ファイル: chunked.py プロジェクト: dlbrittain/blaze-core
 def empty(self, dshape):
     shape, dtype = from_numpy(dshape)
     return CTableSource(carray([[]], dtype))