forked from sagemath/sage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemathgh-39346: some fixes after cython-lint
a few fixes in pyx files, according to suggestions of `cython-lint` ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. URL: sagemath#39346 Reported by: Frédéric Chapoton Reviewer(s): Dima Pasechnik, Frédéric Chapoton, Kwankyu Lee
- Loading branch information
Showing
10 changed files
with
124 additions
and
113 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
168 changes: 87 additions & 81 deletions
168
src/sage/dynamics/complex_dynamics/mandel_julia_helper.pyx
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,14 +5,14 @@ AUTHORS: | |
- Harald Schilly (2011-01-16): initial version (#9623) partially based on work by Lauri Ruotsalainen | ||
""" | ||
#***************************************************************************** | ||
# *************************************************************************** | ||
# Copyright (C) 2011 Harald Schilly <[email protected]> | ||
# | ||
# Distributed under the terms of the GNU General Public License (GPL) | ||
# as published by the Free Software Foundation; either version 2 of | ||
# the License, or (at your option) any later version. | ||
# https://www.gnu.org/licenses/ | ||
#***************************************************************************** | ||
# *************************************************************************** | ||
|
||
|
||
cpdef julia(ff_j, z, int iterations): | ||
|
@@ -97,11 +97,11 @@ cpdef cellular(rule, int N): | |
""" | ||
from numpy import zeros | ||
cdef int j, k, l | ||
M=zeros((N, 2*N+2), dtype=int) | ||
M[0,N]=1 | ||
M = zeros((N, 2*N+2), dtype=int) | ||
M[0, N] = 1 | ||
|
||
for j in range(1, N): | ||
for k in range(0, 2*N): | ||
l = 4 * M[j-1, k-1] + 2 * M[j-1, k] + M[j-1, k+1] | ||
M[j,k] = rule[l] | ||
M[j, k] = rule[l] | ||
return M |
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
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 |
---|---|---|
|
@@ -16,15 +16,15 @@ AUTHORS: | |
- John Cremona (2014): added some docstrings and doctests | ||
""" | ||
|
||
#***************************************************************************** | ||
# *************************************************************************** | ||
# Copyright (C) 2010 Robert Bradshaw <[email protected]> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 2 of the License, or | ||
# (at your option) any later version. | ||
# http://www.gnu.org/licenses/ | ||
#***************************************************************************** | ||
# https://www.gnu.org/licenses/ | ||
# *************************************************************************** | ||
|
||
import numpy as np | ||
cimport numpy as np | ||
|
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 |
---|---|---|
|
@@ -46,15 +46,15 @@ divisor representing a divisor class:: | |
""" | ||
|
||
|
||
#***************************************************************************** | ||
# *************************************************************************** | ||
# Copyright (C) 2010 Volker Braun <[email protected]> | ||
# Copyright (C) 2010 Andrey Novoseltsev <[email protected]> | ||
# Copyright (C) 2010 William Stein <[email protected]> | ||
# | ||
# Distributed under the terms of the GNU General Public License (GPL) | ||
# | ||
# https://www.gnu.org/licenses/ | ||
#***************************************************************************** | ||
# *************************************************************************** | ||
|
||
from sage.libs.gmp.mpq cimport * | ||
|
||
|
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 |
---|---|---|
|
@@ -6,19 +6,20 @@ This module demonstrate the usage of the various classes defined in | |
:mod:`~sage.structure.list_clone` | ||
""" | ||
|
||
#***************************************************************************** | ||
# *************************************************************************** | ||
# Copyright (C) 2011 Florent Hivert <[email protected]> | ||
# | ||
# Distributed under the terms of the GNU General Public License (GPL) | ||
# http://www.gnu.org/licenses/ | ||
#***************************************************************************** | ||
# https://www.gnu.org/licenses/ | ||
# *************************************************************************** | ||
|
||
from sage.categories.sets_cat import Sets | ||
from sage.structure.unique_representation import UniqueRepresentation | ||
from sage.structure.list_clone cimport ( | ||
ClonableArray, ClonableList, NormalizedClonableList, ClonableIntArray ) | ||
ClonableArray, ClonableList, NormalizedClonableList, ClonableIntArray) | ||
from sage.structure.parent import Parent | ||
|
||
|
||
cdef class IncreasingArray(ClonableArray): | ||
""" | ||
A small extension class for testing | ||
|
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