package natlab.backends.vrirGen;

import java.util.HashMap;
import java.util.Map;

public class LibFuncMapper {
	private static Map<String, String> libFuncMap = new HashMap<String, String>();
	static {
		libFuncMap = new HashMap<>();
		libFuncMap.put("sqrt", "sqrt");
		libFuncMap.put("sin", "sin");
		libFuncMap.put("asin", "asin");
		libFuncMap.put("cos", "cos");
		libFuncMap.put("acos", "acos");
		libFuncMap.put("atan", "tan");
		libFuncMap.put("abs", "abs");
		libFuncMap.put("pow", "pow");
		libFuncMap.put("log", "loge");
		libFuncMap.put("log10", "log10");
		libFuncMap.put("exp", "expe");
		libFuncMap.put("sqrt", "sqrt");
		libFuncMap.put("power", "pow");
		libFuncMap.put("mtimes", "mmult");
		libFuncMap.put("trans", "trans");
		libFuncMap.put("plus", "plus");
		libFuncMap.put("minus", "minus");
		libFuncMap.put("times", "mult");
		libFuncMap.put("div", "div");
	}

	public static String getFunc(String key) {
		return libFuncMap.get(key);
	}

	private static void putFunc(String key, String val) {
		libFuncMap.put(key, val);
	}

	public static boolean containsFunc(String key) {
		return libFuncMap.containsKey(key);
	}

}

@@ -870,16 +870,52 @@
 %22div%22);%0A
+%09%09libFuncMap.put(%22trans%22, %22trans%22);%0A
 %09%7D%0A%0A%09pub

Transpose library function added to LibFuncTypeMapper