Esempio n. 1
0
def test1():
	print('format vector')
	x = Variable(4)
	print(x.getLinear(4).todense())
Esempio n. 2
0
from lsqpy.exprs.variable import Variable

z = Variable()

z.broadcast(3,3).printme()
Esempio n. 3
0
def test3():
	print('format matrix')
	x = Variable(4,3)
	print(x.getLinear(12).todense())
Esempio n. 4
0
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()