public unsafe override void Cos(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.ippsCos_32f_A24(pSrc, pDst, 1); } }
public unsafe override void Cos(float value, ref float returnValue) { float[] input = new float[1] { value }; float[] output = new float[1] { returnValue }; fixed(float *pSrc = input, pDst = output) { IPPNative.ippsCos_32f_A24(pSrc, pDst, 1); } }