12 lines
251 B
Cython
12 lines
251 B
Cython
|
|
from libcpp.memory cimport shared_ptr, make_shared, dynamic_pointer_cast
|
|
from array cimport cpp_CArrayBase
|
|
|
|
cdef class Array:
|
|
cdef shared_ptr[cpp_CArrayBase[double]] cpp_array
|
|
|
|
def size(self):
|
|
return self.cpp_array.get().size()
|
|
|
|
|