Exemplo n.º 1
0
 public static object Binary_Search(DVVectorLike vec, DeviceViewable value, Functor comp)
 {
     return(Native.binary_search(vec.m_cptr, value.m_cptr, comp.m_cptr));
 }
Exemplo n.º 2
0
 public static object Lower_Bound(DVVectorLike vec, DeviceViewable value)
 {
     return(Native.lower_bound(vec.m_cptr, value.m_cptr));
 }
Exemplo n.º 3
0
 public static object Upper_Bound(DVVectorLike vec, DeviceViewable value, Functor comp)
 {
     return(Native.upper_bound(vec.m_cptr, value.m_cptr, comp.m_cptr));
 }
Exemplo n.º 4
0
 public static bool Replace_If(DVVectorLike vec, Functor pred, DeviceViewable new_value)
 {
     return(Native.replace_if(vec.m_cptr, pred.m_cptr, new_value.m_cptr));
 }
Exemplo n.º 5
0
 public static object Transform_Reduce(DVVectorLike vec, Functor unary_op, DeviceViewable init, Functor binary_op)
 {
     return(Native.transform_reduce(vec.m_cptr, unary_op.m_cptr, init.m_cptr, binary_op.m_cptr));
 }
Exemplo n.º 6
0
 public static bool Exclusive_Scan_By_Key(DVVectorLike vec_key, DVVectorLike vec_value, DVVectorLike vec_out, DeviceViewable init, Functor binary_pred, Functor binary_op)
 {
     return(Native.exclusive_scan_by_key(vec_key.m_cptr, vec_value.m_cptr, vec_out.m_cptr, init.m_cptr, binary_pred.m_cptr, binary_op.m_cptr));
 }
Exemplo n.º 7
0
 public static long Remove(DVVectorLike vec, DeviceViewable value)
 {
     return((long)Native.remove(vec.m_cptr, value.m_cptr));
 }
Exemplo n.º 8
0
 public DVConstant(DeviceViewable dvobj, long size = -1)
     : base(Native.dvconstant_create(dvobj.m_cptr, (ulong)size))
 {
     m_dvobj = dvobj;
 }
Exemplo n.º 9
0
 public static object Reduce(DVVectorLike vec, DeviceViewable init)
 {
     return(Native.reduce(vec.m_cptr, init.m_cptr));
 }
Exemplo n.º 10
0
 public static bool Fill(DVVectorLike vec, DeviceViewable value)
 {
     return(Native.fiil(vec.m_cptr, value.m_cptr));
 }
Exemplo n.º 11
0
 public DVCounter(DeviceViewable dvobj_init, long size = -1)
     : base(Native.dvcounter_create(dvobj_init.m_cptr, (ulong)size))
 {
     m_dvobj_init = dvobj_init;
 }
Exemplo n.º 12
0
 public static bool Sequence(DVVectorLike vec, DeviceViewable value_init, DeviceViewable value_step)
 {
     return(Native.sequence(vec.m_cptr, value_init.m_cptr, value_step.m_cptr));
 }
Exemplo n.º 13
0
 public static bool Replace_Copy_If(DVVectorLike vec_in, DVVectorLike vec_out, Functor pred, DeviceViewable new_value)
 {
     return(Native.replace_copy_if(vec_in.m_cptr, vec_out.m_cptr, pred.m_cptr, new_value.m_cptr));
 }
Exemplo n.º 14
0
 public static bool Replace_Copy(DVVectorLike vec_in, DVVectorLike vec_out, DeviceViewable old_value, DeviceViewable new_value)
 {
     return(Native.replace_copy(vec_in.m_cptr, vec_out.m_cptr, old_value.m_cptr, new_value.m_cptr));
 }
Exemplo n.º 15
0
 public static object Find(DVVectorLike vec, DeviceViewable value)
 {
     return(Native.find(vec.m_cptr, value.m_cptr));
 }
Exemplo n.º 16
0
 public static object Reduce(DVVectorLike vec, DeviceViewable init, Functor binary_op)
 {
     return(Native.reduce(vec.m_cptr, init.m_cptr, binary_op.m_cptr));
 }
Exemplo n.º 17
0
 public static bool Exclusive_Scan(DVVectorLike vec_in, DVVectorLike vec_out, DeviceViewable init)
 {
     return(Native.exclusive_scan(vec_in.m_cptr, vec_out.m_cptr, init.m_cptr));
 }
Exemplo n.º 18
0
 public static long Count(DVVectorLike vec, DeviceViewable value)
 {
     return((long)Native.count(vec.m_cptr, value.m_cptr));
 }
Exemplo n.º 19
0
 public static bool Transform_Exclusive_Scan(DVVectorLike vec_in, DVVectorLike vec_out, Functor unary_op, DeviceViewable init, Functor binary_op)
 {
     return(Native.transform_exclusive_scan(vec_in.m_cptr, vec_out.m_cptr, unary_op.m_cptr, init.m_cptr, binary_op.m_cptr));
 }
Exemplo n.º 20
0
 public static object Inner_Product(DVVectorLike vec1, DVVectorLike vec2, DeviceViewable init, Functor binary_op1, Functor binary_op2)
 {
     return(Native.inner_product(vec1.m_cptr, vec2.m_cptr, init.m_cptr, binary_op1.m_cptr, binary_op2.m_cptr));
 }
Exemplo n.º 21
0
 public static long Remove_Copy(DVVectorLike vec_in, DVVectorLike vec_out, DeviceViewable value)
 {
     return((long)Native.remove_copy(vec_in.m_cptr, vec_out.m_cptr, value.m_cptr));
 }
Exemplo n.º 22
0
 public static bool Replace(DVVectorLike vec, DeviceViewable old_value, DeviceViewable new_value)
 {
     return(Native.replace(vec.m_cptr, old_value.m_cptr, new_value.m_cptr));
 }