SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17
accelerate_tools contains the interface for on-the-fly building of C++ equivalents to Python functions.
functiondefs = { Tuple([Name('len'), Tuple([Name('String')])]) : CallFunc(Name('Function_Descriptor'), [Keyword('code', Const('strlen(%s)')), Keyword('return_type', Name('Integer'))], None, None), Tuple([Name('len'), Tuple([Name('LongVector')])]) : CallFunc(Name('Function_Descriptor'), [Keyword('code', Const('PyArray_Size((PyObject*)%s)')), Keyword('return_type', Name('Integer'))], None, None), Tuple([Name('float'), Tuple([Name('Integer')])]) : CallFunc(Name('Function_Descriptor'), [Keyword('code', Const('(double)(%s)')), Keyword('return_type', Name('Double'))], None, None), Tuple([Name('range'), Tuple([Name('Integer'), Name('Integer')])]) : CallFunc(Name('Function_Descriptor'), [Keyword('code', Const('XRange(%s)')), Keyword('return_type', Name('XRange'))], None, None), Tuple([Name('range'), Name('Integer')]) : CallFunc(Name('Function_Descriptor'), [Keyword('code', Const('XRange(%s)')), Keyword('return_type', Name('XRange'))], None, None), Tuple([Getattr(Name('math'), 'sin'), Tuple([Name('Double')])]) : CallFunc(Name('Function_Descriptor'), [Keyword('code', Const('sin(%s)')), Keyword('return_type', Name('Double'))], None, None), Tuple([Getattr(Name('math'), 'cos'), Tuple([Name('Double')])]) : CallFunc(Name('Function_Descriptor'), [Keyword('code', Const('cos(%s)')), Keyword('return_type', Name('Double'))], None, None), Tuple([Getattr(Name('math'), 'sqrt'), Tuple([Name('Double')])]) : CallFunc(Name('Function_Descriptor'), [Keyword('code', Const('sqrt(%s)')), Keyword('return_type', Name('Double'))], None, None) }
typedefs = { Name('int') : Name('Integer'), Name('float') : Name('Double'), Name('str') : Name('String'), Tuple([Getattr(Name('nx'), 'ndarray'), Const(1), Name('int')]) : Name('IntegerVector'), Tuple([Getattr(Name('nx'), 'ndarray'), Const(2), Name('int')]) : Name('Integermatrix'), Tuple([Getattr(Name('nx'), 'ndarray'), Const(1), Getattr(Name('nx'), 'long')]) : Name('LongVector'), Tuple([Getattr(Name('nx'), 'ndarray'), Const(2), Getattr(Name('nx'), 'long')]) : Name('Longmatrix'), Tuple([Getattr(Name('nx'), 'ndarray'), Const(1), Name('float')]) : Name('DoubleVector'), Tuple([Getattr(Name('nx'), 'ndarray'), Const(2), Name('float')]) : Name('Doublematrix'), Name('XRangeType') : Name('XRange') }
Double = Double()
DoubleVector = DoubleVector()
Doublematrix = Doublematrix()
Integer = Integer()
IntegerVector = IntegerVector()
Integermatrix = Integermatrix()
LongVector = LongVector()
Longmatrix = Longmatrix()
String = String()
XRange = XRange()
Hacky way to get legal C string from Python string
| Local name | Refers to |
|---|---|
| CXXCoder | SciPy.weave.bytecodecompiler.CXXCoder |
| Function_Descriptor | SciPy.weave.bytecodecompiler.Function_Descriptor |
| inspect | inspect |
| InstanceType | types.InstanceType |
| math | math |
| md5 | md5 |
| nx | numpy |
| Type_Descriptor | SciPy.weave.bytecodecompiler.Type_Descriptor |
| weave | scipy.weave |
| XRangeType | types.XRangeType |