コード例 #1
0
ファイル: RFunctionsTest.cs プロジェクト: xposure/rdotnet
 private void checkInvoke(SymbolicExpression result, string expected)
 {
     Assert.Equal(expected, result.AsCharacter().ToArray()[0]);
 }
コード例 #2
0
 private void WriteSymbolicExpression(SymbolicExpression sexp, IntPtr pointer, int offset)
 {
     Marshal.WriteIntPtr(pointer, offset, sexp.DangerousGetHandle());
 }
コード例 #3
0
 /// <summary>
 /// Converts the specified expression to a GenericVector.
 /// </summary>
 /// <param name="expression">The expression.</param>
 /// <returns>The GenericVector. Returns <c>null</c> if the specified expression is not vector.</returns>
 public static GenericVector AsList(this SymbolicExpression expression)
 {
     return(asList(expression));
 }
コード例 #4
0
 /// <summary>
 /// Assign a value to a name in the global environment.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="expression">The symbol.</param>
 public void SetSymbol(string name, SymbolicExpression expression)
 {
     CheckEngineIsRunning();
     GlobalEnvironment.SetSymbol(name, expression);
 }
コード例 #5
0
 public SymbolicExpression LoadHistory(Language call, SymbolicExpression operation, Pairlist args, REnvironment environment)
 {
     throw new NotImplementedException();
 }