using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples()
{
void Example()
{
TOpenCLValue a,b,c;
clMtxVec.CreateIt(
out a,
out b,
out c);
try
{
a.Copy(2);
// a = [2] //magnitude
b.Copy(3);
// b = [1] /phase
c.PolarToCart(a,b);
// result stored in c = projections to Re and Im axis
}
finally
{
clMtxVec.FreeIt(
ref a,
ref b,
ref c);
}
}
}