This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vector_double_dense: Factor through new class Vector_numpy_dense
- Loading branch information
Matthias Koeppe
committed
Oct 12, 2021
1 parent
cde4e54
commit 2ffb118
Showing
4 changed files
with
319 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
from .free_module_element cimport FreeModuleElement | ||
cimport numpy | ||
from .vector_numpy_dense cimport Vector_numpy_dense | ||
|
||
cdef class Vector_double_dense(FreeModuleElement): | ||
cdef object _numpy_dtype | ||
cdef int _numpy_dtypeint | ||
cdef object _python_dtype | ||
cdef object _sage_dtype | ||
cdef object _sage_vector_dtype | ||
cdef numpy.ndarray _vector_numpy | ||
cdef Vector_double_dense _new(self, numpy.ndarray vector_numpy) | ||
cdef _replace_self_with_numpy(self, numpy.ndarray numpy_array) | ||
cdef class Vector_double_dense(Vector_numpy_dense): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from .free_module_element cimport FreeModuleElement | ||
cimport numpy | ||
|
||
cdef class Vector_numpy_dense(FreeModuleElement): | ||
cdef object _numpy_dtype | ||
cdef int _numpy_dtypeint | ||
cdef object _python_dtype | ||
cdef object _sage_dtype | ||
cdef object _sage_vector_dtype | ||
cdef numpy.ndarray _vector_numpy | ||
cdef Vector_numpy_dense _new(self, numpy.ndarray vector_numpy) | ||
cdef _replace_self_with_numpy(self, numpy.ndarray numpy_array) |
Oops, something went wrong.