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
cdef class GeneticAlgorithm(object): | |
cdef: | |
public BasicGeneticFunction genetics | |
Population* population | |
cpdef run(self) | |
cpdef iteration(self) | |
cpdef stat(self) |
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
# encoding: utf-8 | |
# cython: profile=False | |
# cython: wraparound=False | |
# cython: boundscheck=False | |
# filename: fastpnn.pyx | |
from libc.stdlib cimport malloc, realloc, free, rand | |
cimport cython | |
from cython.parallel import parallel, prange | |
from cython.view cimport array as cvarray |
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
# encoding: utf-8 | |
# cython: profile=True | |
# cython: wraparound=False | |
# cython: boundscheck=False | |
# cython: infer_types=True | |
# filename: pyforge.pyx | |
from libc.stdlib cimport malloc, free, rand | |
cimport cython |