Skip to content

Instantly share code, notes, and snippets.

View daxiongshu's full-sized avatar
😀
try to write some comments.

Jiwei Liu daxiongshu

😀
try to write some comments.
View GitHub Profile
got = df.groupby('object_id').apply_grouped(compute_skew,
incols=['flux'],
outcols={'skew_flux': np.float64}
tpb=32)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cuda.jit(device=True)
def compute_skew_with_mean(array,skew,mean):
# skew is a shared memory array
# mean is a scaler, the mean value of array
# len(skew) == TPB+1
# TPB: constant, threads per block, 32 in this case
# the kernel has only one thread block, so no global sync required.
# the final result is in skew[0]
tid = cuda.threadIdx.x
initialize(skew,0,len(skew))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.