Ejemplo n.º 1
0
        public unsafe override void ATan(float[] value, ref float[] returnValue)
        {
            if (value.Length != returnValue.Length)
            {
                throw new Exception("Length of src is not equal to the length of dest");
            }

            fixed(float *pSrc = value, pDst = returnValue)
            {
                IPPNative.ippsAtan_32f_A24(pSrc, pDst, 1);
            }
        }
Ejemplo n.º 2
0
 public unsafe override void ATan(float value, ref float returnValue)
 {
     float[] input = new float[1] {
         value
     };
     float[] output = new float[1] {
         returnValue
     };
     fixed(float *pSrc = input, pDst = output)
     {
         IPPNative.ippsAtan_32f_A24(pSrc, pDst, 1);
     }
 }