Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 68d5863

Browse files
authored
add Cython directives to pxd files (#175)
1 parent cd63bad commit 68d5863

File tree

7 files changed

+45
-1
lines changed

7 files changed

+45
-1
lines changed

lightning/impl/dataset_fast.pxd

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# encoding: utf-8
2+
# cython: cdivision=True
3+
# cython: boundscheck=False
4+
# cython: wraparound=False
5+
# cython: language_level=3
6+
#
17
# Author: Mathieu Blondel
28
# License: BSD
39

lightning/impl/prox_fast.pxd

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# encoding: utf-8
2+
# cython: cdivision=True
3+
# cython: boundscheck=False
4+
# cython: wraparound=False
5+
# cython: language_level=3
6+
#
7+
# Authors: Fabian Pedregosa
8+
# License: BSD
19

210
cimport numpy as np
311
from cython cimport floating

lightning/impl/prox_fast.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# cython: language_level=3
66
#
77
# Authors: Fabian Pedregosa
8-
#
8+
# License: BSD
99

1010
"""
1111
These are some helper functions to compute the proximal operator of some common penalties

lightning/impl/randomkit/random_fast.pxd

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# encoding: utf-8
2+
# cython: cdivision=True
3+
# cython: boundscheck=False
4+
# cython: wraparound=False
5+
# cython: language_level=3
6+
#
7+
# Copyright 2005 Robert Kern ([email protected])
18

29
cdef extern from "randomkit.h":
310

lightning/impl/randomkit/random_fast.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# encoding: utf-8
2+
# cython: cdivision=True
3+
# cython: boundscheck=False
4+
# cython: wraparound=False
5+
# cython: language_level=3
6+
#
17
# Copyright 2005 Robert Kern ([email protected])
28

39
from libc cimport stdlib

lightning/impl/sag_fast.pxd

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# encoding: utf-8
2+
# cython: cdivision=True
3+
# cython: boundscheck=False
4+
# cython: wraparound=False
5+
# cython: language_level=3
6+
#
7+
# Authors: Mathieu Blondel
8+
# Fabian Pedregosa
9+
# Arnaud Rachez
10+
# License: BSD
111

212
cimport numpy as np
313

lightning/impl/sgd_fast.pxd

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
# encoding: utf-8
2+
# cython: cdivision=True
3+
# cython: boundscheck=False
4+
# cython: wraparound=False
5+
# cython: language_level=3
6+
#
17
# Author: Mathieu Blondel
8+
# Peter Prettenhofer (loss functions)
29
# License: BSD
310

411
cdef class LossFunction:

0 commit comments

Comments
 (0)