Skip to main content

LinearSystemsSolverUtils

Functions

solve

LinearSystemsSolverUtils.solve(
mutSystem{{number}},
mutOutput{number}
) → {number}
like this
[a  b | y]
[c  d | z]

mutSystem = {
	{a, b},
	{c, d},
}

mutOutput = {y, z}

returns solution {x0, x1}
warning

System and output get destroyed in the process

solveTridiagonal

LinearSystemsSolverUtils.solveTridiagonal(
mutMainDiagtable,
mutUpperDiagtable,
mutLowerDiagtable,
mutOutputtable
) → table
Show raw api
{
    "functions": [
        {
            "name": "solve",
            "desc": "```\nlike this\n[a  b | y]\n[c  d | z]\n\nmutSystem = {\n\t{a, b},\n\t{c, d},\n}\n\nmutOutput = {y, z}\n\nreturns solution {x0, x1}\n```\n\n:::warning\nSystem and output get destroyed in the process\n:::",
            "params": [
                {
                    "name": "mutSystem",
                    "desc": "",
                    "lua_type": "{ { number } }"
                },
                {
                    "name": "mutOutput",
                    "desc": "",
                    "lua_type": "{ number }"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ number }"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 31,
                "path": "src/linearsystemssolver/src/Shared/LinearSystemsSolverUtils.lua"
            }
        },
        {
            "name": "solveTridiagonal",
            "desc": "",
            "params": [
                {
                    "name": "mutMainDiag",
                    "desc": "",
                    "lua_type": "table"
                },
                {
                    "name": "mutUpperDiag",
                    "desc": "",
                    "lua_type": "table"
                },
                {
                    "name": "mutLowerDiag",
                    "desc": "",
                    "lua_type": "table"
                },
                {
                    "name": "mutOutput",
                    "desc": "",
                    "lua_type": "table"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "table"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 101,
                "path": "src/linearsystemssolver/src/Shared/LinearSystemsSolverUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "LinearSystemsSolverUtils",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/linearsystemssolver/src/Shared/LinearSystemsSolverUtils.lua"
    }
}