L3ノルムの算出
Namespace: fvalgcliAssembly: fvalgcli (in fvalgcli.dll) Version: 3.1.0.0 (3.1.0.11)
Syntax
C# |
---|
public static double fnFIE_vect_norm_l3(
FVECTOR_PTR v
) |
Visual Basic |
---|
Public Shared Function fnFIE_vect_norm_l3 (
v As FVECTOR_PTR
) As Double |
Return Value
Type:
DoubleL3ノルムの値 不正なベクトルが与えられた場合または、 ライセンスエラーが発生した場合には、0.0を返します。
Remarks
Examples
C# | Copy |
---|
using System;
using System.Collections.Generic;
using System.Text;
using fvalgcli;
namespace TC
{
public partial class FIE
{
[FvPluginExecute]
public void fnFIE_vect_norm_l3()
{
FVECTOR_PTR v1 = FVECTOR_PTR.Zero;
try
{
v1 = api.fnFIE_mat_valloc(3);
Assert.IsTrue(v1 != FVECTOR_PTR.Zero, "エラーが発生しました。");
v1[0] = 3.0; v1[1] = 6.0; v1[2] = 8.0;
double result = api.fnFIE_vect_norm_l3(v1);
Assert.IsTrue(result != 0.0, "エラーが発生しました。({0})");
Console.WriteLine("fnFIE_vect_norm_l3={0}", result);
}
catch (System.Exception ex)
{
Assert.Fail(ex.Message);
}
finally
{
api.fnFIE_mat_vfree(v1);
}
}
}
} |
Visual Basic | Copy |
---|
Imports System.Collections.Generic
Imports System.Text
Imports fvalgcli
Public Partial Class FIE
<FvPluginExecute> _
Public Sub fnFIE_vect_norm_l3()
Dim v1 As FVECTOR_PTR = FVECTOR_PTR.Zero
Try
v1 = api.fnFIE_mat_valloc(3)
Assert.IsTrue(v1 <> FVECTOR_PTR.Zero, "エラーが発生しました。")
v1(0) = 3.0
v1(1) = 6.0
v1(2) = 8.0
Dim result As Double = api.fnFIE_vect_norm_l3(v1)
Assert.IsTrue(result <> 0.0, "エラーが発生しました。({0})")
Console.WriteLine("fnFIE_vect_norm_l3={0}", result)
Catch ex As System.Exception
Assert.Fail(ex.Message)
Finally
api.fnFIE_mat_vfree(v1)
End Try
End Sub
End Class |
See Also