user73233
user73233

Reputation: 11

How to solve x'A=b' instead of Ax=b?

I solve Ax=b by using

solve(A, b) 

which is faster than

solve(A) %*% b

Then, how do i solve (' is a transpose)

x'A=b'? 

I don't like to use

b' %*% solve(A) 

since this is slow. Is there any way I can solve by just one solve() function?

Upvotes: 0

Views: 1431

Answers (1)

Aziz
Aziz

Reputation: 20745

x' A = b' 

is the same as:

A' x = b

So you can basically use solve(t(A), b) and take the result's transpose to get x'.

Upvotes: 4

Related Questions