提交 4fd68401 authored 作者: James Bergstra's avatar James Bergstra

cifarSC2011 editing by Fred and James

上级 215328da
...@@ -41,6 +41,8 @@ Background Questionaire ...@@ -41,6 +41,8 @@ Background Questionaire
* Using OpenCL / PyOpenCL ? * Using OpenCL / PyOpenCL ?
* Using cudamat / gnumpy ?
* Other? * Other?
* Who has used Cython? * Who has used Cython?
...@@ -98,17 +100,21 @@ Python in one slide ...@@ -98,17 +100,21 @@ Python in one slide
print b[1:3] # slicing syntax print b[1:3] # slicing syntax
class Foo(object): # Defining a class class Foo(object): # Defining a class
a = 1 def __init__(self):
self.a = 5
def hello(self): def hello(self):
return self.a return self.a
f = Foo() # Creating a class instance
print f.hello() # Calling methods of objects
# -> 5
class Bar(Foo): # Defining a subclass class Bar(Foo): # Defining a subclass
def __init__(self): def __init__(self, a):
self.a = 6 self.a = a
f = Foo() # Creating a class instance print Bar(99).hello() # Creating an instance of Bar
b = Bar() # Creating an instance of Bar # -> 99
f.hello(); b.hello() # Calling methods of objects
Numpy in one slide Numpy in one slide
------------------ ------------------
...@@ -308,7 +314,14 @@ Project status ...@@ -308,7 +314,14 @@ Project status
* Unofficial RPMs for Mandriva * Unofficial RPMs for Mandriva
* Downloads (January 2011 - June 8 2011): Pypi 780, MLOSS: 483, Assembla (`bleeding edge` repository): unknown * Downloads (January 2011 - June 8 2011):
* Pypi 780
* MLOSS: 483
* Assembla (`bleeding edge` repository): unknown
Why scripting for GPUs? Why scripting for GPUs?
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论