import("libm3")

template("matrix")


Generic_module("Matrix")
Generic_module("MatrixSupport")

Generic_module("MatrixFast")
Generic_module("MatrixBasic")
MatrixFast ("Real",            "RealBasic")
MatrixFast ("LongReal",        "LongRealBasic")
MatrixFast ("Extended",        "ExtendedBasic")
MatrixBasic("LongRealComplex", "LongRealComplex")
MatrixBasic("Integer32",       "Integer32Basic")
MatrixBasic("BigInteger",      "BigInteger")

Generic_module("MatrixTrans")
MatrixTrans("Real",            "Real")
MatrixTrans("LongReal",        "LongReal")
% no EXTENDED EigenSystem
%MatrixTrans("Extended",        "Extended")
% no Complex EigenSystem
%MatrixTrans("RealComplex",     "Real")
%MatrixTrans("LongRealComplex", "LongReal")
%MatrixTrans("ExtendedComplex", "Extended")

Generic_module("MatrixDecomposition")
MatrixDecomposition("Real",     "RealBasic")
MatrixDecomposition("LongReal", "LongRealBasic")
MatrixDecomposition("Extended", "ExtendedBasic")

Generic_module("EigenSystem")
EigenSystem("Real",     "RealBasic",     "RealComplex")
EigenSystem("LongReal", "LongRealBasic", "LongRealComplex")
%EigenSystem("Extended", "ExtendedBasic", "ExtendedComplex")

Generic_module("CharPolynomial")
CharPolynomial("Real",            "RealBasic")
CharPolynomial("LongReal",        "LongRealBasic")
CharPolynomial("Extended",        "ExtendedBasic")
CharPolynomial("LongRealComplex", "LongRealComplex")
CharPolynomial("Integer32",       "Integer32Basic")
CharPolynomial("BigInteger",      "BigInteger")

Generic_module("MatrixFmtLex")
MatrixFmtLex("Real",            "RealBasic")
MatrixFmtLex("LongReal",        "LongRealBasic")
MatrixFmtLex("Extended",        "ExtendedBasic")
MatrixFmtLex("LongRealComplex", "LongRealComplex")
MatrixFmtLex("Integer32",       "Integer32Basic")
MatrixFmtLex("BigInteger",      "BigInteger")
