from org.ujmp.core import SparseMatrix
from org.ujmp.core.util import MathUtil
# first matrix
m1=SparseMatrix.Factory.zeros(10000, 5000)
m1.setAsDouble(MathUtil.nextGaussian(), 0, 0)
m1.setAsDouble(MathUtil.nextGaussian(), 1, 1)
# second
m2=SparseMatrix.Factory.zeros(10000, 5000)
for i in range(10000):
m2.setAsDouble(MathUtil.nextGaussian(), MathUtil.nextInteger(0, 10000), MathUtil.nextInteger(0, 5000))
m1.setAsDouble(MathUtil.nextGaussian(), MathUtil.nextInteger(0, 10000), MathUtil.nextInteger(0, 5000))
m2.showGUI()
m3 = m1.mtimes(m2.transpose())
Ads help maintain this website.