Add CudaMatrix block, setBlock, setBlockValue.
This commit is contained in:
@@ -90,3 +90,13 @@ void unaryPow(float* in1, float N,float* out, unsigned long length){
|
||||
thrust::transform(thrust::device,in1,in1+length,out,PowOperator(N));
|
||||
}
|
||||
|
||||
void thrustFill(float* aBegin, float* aEnd, float aValue)
|
||||
{
|
||||
thrust::fill(thrust::device, aBegin, aEnd, aValue);
|
||||
}
|
||||
|
||||
void thrustFill(float* aBegin, float* aEnd, std::complex<float> aValue)
|
||||
{
|
||||
thrust::fill(thrust::device, (std::complex<float>*)aBegin, (std::complex<float>*)aEnd, aValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user