def test1(): print('format vector') x = Variable(4) print(x.getLinear(4).todense())
from lsqpy.exprs.variable import Variable z = Variable() z.broadcast(3,3).printme()
def test3(): print('format matrix') x = Variable(4,3) print(x.getLinear(12).todense())
from lsqpy.exprs.variable import Variable n = 3 print('\nscalar var') z = Variable() z.printme() print('\nvector var') y = Variable(n) y.printme() print('\nmatrix var') x = Variable(n,n) x.printme()