本文整理了Java中org.ujmp.core.Matrix.getMetaData()
方法的一些代码示例,展示了Matrix.getMetaData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.getMetaData()
方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:getMetaData
暂无
代码示例来源:origin: ujmp/universal-java-matrix-package
public AbstractCalculation(int dimension, Matrix... sources) {
this.sources = sources;
this.annotation = sources.length == 0 ? null : sources[0].getMetaData();
this.dimension = dimension;
}
代码示例来源:origin: org.ujmp/ujmp-lucene
public LuceneSparseObjectMatrix(Matrix matrix) throws IOException {
super(new LuceneMap<Coordinates, Object>(), matrix);
if (matrix.getMetaData() != null) {
setMetaData(matrix.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-jscience
public JScienceDenseDoubleMatrix2D(Matrix matrix) {
super(matrix.getRowCount(), matrix.getColumnCount());
this.matrix = Float64Matrix.valueOf(matrix.toDoubleArray());
if (matrix.getMetaData() != null) {
setMetaData(matrix.getMetaData().clone());
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public JScienceDenseDoubleMatrix2D(Matrix matrix) {
super(matrix.getRowCount(), matrix.getColumnCount());
this.matrix = Float64Matrix.valueOf(matrix.toDoubleArray());
if (matrix.getMetaData() != null) {
setMetaData(matrix.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-jdbc
public JDBCSparseObjectMatrix(Matrix source) throws ClassNotFoundException, IOException, SQLException {
this(source.getSize());
for (long[] c : source.availableCoordinates()) {
setAsObject(source.getAsObject(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-mtj
public MTJDenseDoubleMatrix2D(Matrix m) {
super(m.getRowCount(), m.getColumnCount());
if (m instanceof MTJDenseDoubleMatrix2D) {
this.matrix = ((MTJDenseDoubleMatrix2D) m).matrix.copy();
} else {
this.matrix = new DenseMatrix(m.toDoubleArray());
}
if (m.getMetaData() != null) {
setMetaData(m.getMetaData().clone());
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public MTJDenseDoubleMatrix2D(Matrix m) {
super(m.getRowCount(), m.getColumnCount());
if (m instanceof MTJDenseDoubleMatrix2D) {
this.matrix = ((MTJDenseDoubleMatrix2D) m).matrix.copy();
} else {
this.matrix = new DenseMatrix(m.toDoubleArray());
}
if (m.getMetaData() != null) {
setMetaData(m.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-parallelcolt
public ParallelColtSparseDoubleMatrix2D(Matrix source) {
this(MathUtil.longToInt(source.getRowCount()), MathUtil.longToInt(source.getColumnCount()));
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-vecmath
public VecMathDenseDoubleMatrix2D(Matrix source) {
this(MathUtil.longToInt(source.getRowCount()), MathUtil.longToInt(source.getColumnCount()));
for (long[] c : source.availableCoordinates()) {
setAsDouble(source.getAsDouble(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public DefaultSparseRowDoubleMatrix2D(Matrix m) {
super(m.getRowCount(), m.getColumnCount());
setSize(m.getSize());
for (long[] c : m.availableCoordinates()) {
setDouble(m.getAsDouble(c), c);
}
if (m.getMetaData() != null) {
setMetaData(m.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-colt
public ColtSparseDoubleMatrix2D(Matrix source) {
super(source.getRowCount(), source.getColumnCount());
this.matrix = new SparseDoubleMatrix2D((int) source.getRowCount(), (int) source.getColumnCount());
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-la4j
public La4JDenseDoubleMatrix2D(Matrix source) {
super(source.getRowCount(), source.getColumnCount());
this.matrix = new Basic2DMatrix((int) source.getRowCount(), (int) source.getColumnCount());
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public ColtSparseDoubleMatrix2D(Matrix source) {
super(source.getRowCount(), source.getColumnCount());
this.matrix = new SparseDoubleMatrix2D((int) source.getRowCount(), (int) source.getColumnCount());
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-jama
public JamaDenseDoubleMatrix2D(Matrix source) {
super(source.getRowCount(), source.getColumnCount());
this.matrix = new Jama.Matrix((int) source.getRowCount(), (int) source.getColumnCount());
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-colt
public ColtDenseDoubleMatrix2D(Matrix source) {
super(source.getRowCount(), source.getColumnCount());
this.matrix = new DenseDoubleMatrix2D((int) source.getRowCount(), (int) source.getColumnCount());
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public ColtDenseDoubleMatrix2D(Matrix source) {
super(source.getRowCount(), source.getColumnCount());
this.matrix = new DenseDoubleMatrix2D((int) source.getRowCount(), (int) source.getColumnCount());
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
if (source.getMetaData() != null) {
setMetaData(source.getMetaData().clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-commonsmath
public CommonsMathBlockDenseDoubleMatrix2D(org.ujmp.core.Matrix source) {
this(source.getSize());
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
MapMatrix<String, Object> a = source.getMetaData();
if (a != null) {
setMetaData(a.clone());
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public SerializedSparseObjectMatrix(Matrix source) throws IOException {
this(source.getSize());
for (long[] c : source.availableCoordinates()) {
setAsObject(source.getAsObject(c), c);
}
MapMatrix<String, Object> a = source.getMetaData();
if (a != null) {
setMetaData(a.clone());
}
}
代码示例来源:origin: org.ujmp/ujmp-commonsmath
public CommonsMathArrayDenseDoubleMatrix2D(org.ujmp.core.Matrix source) {
this(source.getSize());
for (long[] c : source.availableCoordinates()) {
setDouble(source.getAsDouble(c), c);
}
MapMatrix<String, Object> a = source.getMetaData();
if (a != null) {
setMetaData(a.clone());
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public AbstractMapToTiledMatrix2DWrapper(Map<Coordinates, ObjectMatrix2D> map, Matrix source) {
this(map, source.getRowCount(), source.getColumnCount());
for (long[] c : source.availableCoordinates()) {
setObject(source.getAsObject(c), c);
}
MapMatrix<String, Object> a = source.getMetaData();
if (a != null) {
setMetaData(a.clone());
}
}
内容来源于网络,如有侵权,请联系作者删除!