4 ms·
lol don't blame the tools for your ignorance of them from scipy.sparse import eye, kron from scipy.spare import vstack as vs z = vs([
by mlevental 7y ago
lol don't blame the tools for your ignorance of them
from scipy.sparse import eye, kron
from scipy.spare import vstack as vs
z = vs([
kron(eye(y.shape[0]), x),
kron(y, eye(x.shape[1]))
])