Exemple #1
0
 /// <param name="S">Specification.</param>
 /// <param name="FT">Float type</param>
 /// <param name="fromOutsideRuntimeNamespace">When calling the function from outside the runtime namespace, set this param to true.</param>
 /// <returns>The name of the function used to compute the geometric product in real-time (depends only on the floating point type)</returns>
 public static string GetRuntimeComputeGpFuncName(G25.Specification S, G25.FloatType FT, bool fromOutsideRuntimeNamespace)
 {
     if (S.OutputCppOrC())
     {
         string prefix = "";
         if (fromOutsideRuntimeNamespace && (S.OutputCpp()))
             prefix = Main.RUNTIME_NAMESPACE + "::";
         return prefix + S.m_namespace + "_runtimeComputeGp_" + FT.type;
     }
     else if (S.OutputCSharp())
     {
         return "RuntimeComputeGp_" + FT.type;
     }
     else
     {
         return "runtimeComputeGp_" + FT.type;
     }
 }
Exemple #2
0
 public static string GetNamespaceName(G25.Specification S)
 {
     if (S.OutputJava()) return S.m_namespace + "_pkg";
     else if (S.OutputCSharp()) return S.m_namespace + "_ns";
     else return S.m_namespace;
 }