I'm trying to augment a matrix to solve an equation, yet have been unable to. And yes, I saw the "Augment a matrix in NumPy" question; it is not what I need.
So my problem: create an augmented matrix [ A b1 b2 ]
import numpy
a = numpy.array([[1,2],[5,12]])
b1 = numpy.array([-1,3]).T
b2 = numpy.array([1,-5]).T
I've tried the numpy.concatenate function, returns
ValueError: all the input arrays must have same number of dimensions
Is there a way to augment the matrix, such that I have one array of
[ 1 2 -1 1
5 12 3 -5 ]
If anyone knows, please inform me! Note that I was doing this in the IPython notebook
(btw, I know that I can't row reduce it with Numpy, it's a university problem, and just was doing the rest in IPython)
Thanks Matt