from blaze.blfuncs import BlazeFunc
from blaze.datashape import double, complex128 as c128
from blaze.blaze_kernels import BlazeElementKernel
import blaze

def _add(a,b):
    return a + b

def _mul(a,b):
    return a * b

add = BlazeFunc('add',[(_add, 'f8(f8,f8)'),
                       (_add, 'c16(c16,c16)')])

mul = BlazeFunc('mul', {(double,)*3: _mul})

a = blaze.array([1,2,3],dshape=double)
b = blaze.array([2,3,4],dshape=double)

c = add(a,b)
d = mul(c,c)
d._data = d._data.fuse()




from blaze.blfuncs import BlazeFunc
from blaze.datashape import double, complex128 as c128
from blaze.blaze_kernels import BlazeElementKernel
import blaze

def _add(a,b):
    return a + b

def _mul(a,b):
    return a * b

add = BlazeFunc('add',[('f8(f8,f8)', _add),
                       ('c16(c16,c16)', _add)])

mul = BlazeFunc('mul', {(double,)*3: _mul})

a = blaze.array([1,2,3],dshape=double)
b = blaze.array([2,3,4],dshape=double)

c = add(a,b)
d = mul(c,c)
d._data = d._data.fuse()




Fix usage of urlparse. and re-order list of key, value dict specification.