我必須實現一個看起來像這樣的功能: MyList * sum (MyList * l1, MyList * l2) {
MyList * newlist = new MyList();
//Adds two objects and place the result in a third new list
return newlist;
}
功能了兩個列表,並放置
我試着用python的arrayfire。 我有一個GTX550Ti並使用opencl後端,因爲我似乎沒有得到cuda工作(不知道550Ti的計算版本2.1是否對arrayfire來說太低)。 我嘗試釋放正在使用的語句分配如 import numpy as np
import arrayfire as af
arr_h = np.arange(2**15,dtype=np.complex64