Skip to content

LinearSolve default handling for non-square #177

@alex-s-gardner

Description

@alex-s-gardner

If I want to solve a 12 parameter model:

A = rand(100,12)
b = rand(100,1)
x = A\b

works just fine in Julia or matlab. But the following does not work in LinearSolve:

using LinearSolve
prob = LinearProblem(A,b)
sol = solve(prob)

as it requires A to be a square matrix.

I'm just curious why this is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions