我想使用 ILNumerics 库中的 FFT 函数,但它引发了异常。什么可能是错的。我正在使用 VB.NET (VB EXpress 2010)
Imports System.Math
Imports OpenTK
Imports ILNumerics.ILMath
Imports System.Runtime.InteropServices
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim a As ILNumerics.ILInArray(Of Double) = {10, 20, 30, 40, 89, 90, 98, 90}
Dim result As ILNumerics.ILRetArray(Of ILNumerics.complex)
Try
result = fft(a)
Catch ex As Exception
Dim s As Integer
s = 5 + 5
End Try
End Sub
<DllImport("ilnumerics_32_x86\mkl_custom.dll")> _
Private Shared Function fft(ByVal a As ILNumerics.ILInArray(Of Double)) As ILNumerics.ILRetArray(Of ILNumerics.complex)
End Function