/// <summary> /// Initializes this R matrix, using the values in a rectangular array. /// </summary> /// <param name="matrix"></param> protected override void InitMatrixFastDirect(Complex[,] matrix) { var vectorCplx = ArrayConverter.ArrayConvertOneDim(matrix); var data = RTypesUtil.SerializeComplexToDouble(vectorCplx); Marshal.Copy(data, 0, DataPointer, data.Length); }
/// <summary> /// Initializes this R matrix, using the values in a rectangular array. /// </summary> /// <param name="matrix"></param> protected override void InitMatrixFastDirect(byte[,] matrix) { var values = ArrayConverter.ArrayConvertOneDim(matrix); Marshal.Copy(values, 0, DataPointer, values.Length); }