org.ujmp.core.Matrix.setMetaData()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中org.ujmp.core.Matrix.setMetaData()方法的一些代码示例,展示了Matrix.setMetaData()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.setMetaData()方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:setMetaData

Matrix.setMetaData介绍

暂无

代码示例

代码示例来源:origin: org.ujmp/ujmp-commonsmath

public Matrix minus(double value) {
  Matrix result = CommonsMathDenseDoubleMatrix2DFactory.INSTANCE.dense(matrix.scalarAdd(-value));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-commonsmath

public Matrix times(double value) {
  Matrix result = CommonsMathDenseDoubleMatrix2DFactory.INSTANCE.dense(matrix.scalarMultiply(value));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-commonsmath

public Matrix divide(double value) {
  Matrix result = CommonsMathDenseDoubleMatrix2DFactory.INSTANCE.dense(matrix.scalarMultiply(1.0 / value));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-commonsmath

public Matrix plus(double value) {
  Matrix result = CommonsMathDenseDoubleMatrix2DFactory.INSTANCE.dense(matrix.scalarAdd(value));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-la4j

public Matrix divide(double value) {
  Matrix result = new La4JDenseDoubleMatrix2D((Basic2DMatrix) matrix.divide(value));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-la4j

public Matrix times(double value) {
  Matrix result = new La4JDenseDoubleMatrix2D((Basic2DMatrix) matrix.multiply(value));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-jscience

public Matrix plus(Matrix that) {
  if (that instanceof JScienceDenseDoubleMatrix2D) {
    Matrix result = new JScienceDenseDoubleMatrix2D(matrix.plus(((JScienceDenseDoubleMatrix2D) that).matrix));
    MapMatrix<String, Object> a = getMetaData();
    if (a != null) {
      result.setMetaData(a.clone());
    }
    return result;
  } else {
    return super.plus(that);
  }
}

代码示例来源:origin: org.ujmp/ujmp-jscience

public Matrix minus(Matrix that) {
  if (that instanceof JScienceDenseDoubleMatrix2D) {
    Matrix result = new JScienceDenseDoubleMatrix2D(matrix.minus(((JScienceDenseDoubleMatrix2D) that).matrix));
    MapMatrix<String, Object> a = getMetaData();
    if (a != null) {
      result.setMetaData(a.clone());
    }
    return result;
  } else {
    return super.minus(that);
  }
}

代码示例来源:origin: org.ujmp/ujmp-jama

public Matrix minus(Matrix m) {
  if (m instanceof JamaDenseDoubleMatrix2D) {
    Matrix result = new JamaDenseDoubleMatrix2D(matrix.minus(((JamaDenseDoubleMatrix2D) m).matrix));
    MapMatrix<String, Object> a = getMetaData();
    if (a != null) {
      result.setMetaData(a.clone());
    }
    return result;
  } else {
    return super.minus(m);
  }
}

代码示例来源:origin: org.ujmp/ujmp-jscience

public Matrix divide(double value) {
  Matrix result = new JScienceDenseDoubleMatrix2D(matrix.times(Float64.valueOf(1.0 / value)));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-jama

public final Matrix copy() {
  Matrix m = new JamaDenseDoubleMatrix2D(matrix.copy());
  if (getMetaData() != null) {
    m.setMetaData(getMetaData().clone());
  }
  return m;
}

代码示例来源:origin: org.ujmp/ujmp-colt

public Matrix copy() {
  Matrix m = new ColtDenseDoubleMatrix2D((DenseDoubleMatrix2D) matrix.copy());
  if (getMetaData() != null) {
    m.setMetaData(getMetaData().clone());
  }
  return m;
}

代码示例来源:origin: org.ujmp/ujmp-mtj

public Matrix copy() {
  Matrix m = new MTJDenseDoubleMatrix2D(matrix.copy());
  if (getMetaData() != null) {
    m.setMetaData(getMetaData().clone());
  }
  return m;
}

代码示例来源:origin: org.ujmp/ujmp-jscience

public Matrix times(double value) {
  Matrix result = new JScienceDenseDoubleMatrix2D(matrix.times(Float64.valueOf(value)));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-colt

public Matrix minus(double value) {
  Matrix result = new ColtDenseDoubleMatrix2D((DenseDoubleMatrix2D) matrix.copy().assign(Functions.minus(value)));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-parallelcolt

public Matrix plus(double value) {
  Matrix result = new ParallelColtDenseDoubleMatrix2D((cern.colt.matrix.tdouble.impl.DenseDoubleMatrix2D) matrix
      .copy().assign(DoubleFunctions.plus(value)));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-jblas

public Matrix times(double value) {
  DoubleMatrix r = new DoubleMatrix((int) getRowCount(), (int) getColumnCount());
  Matrix result = new JBlasDenseDoubleMatrix2D(matrix.muli(value, r));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-jblas

public Matrix plus(double value) {
  DoubleMatrix r = new DoubleMatrix((int) getRowCount(), (int) getColumnCount());
  Matrix result = new JBlasDenseDoubleMatrix2D(matrix.addi(value, r));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-jblas

public Matrix divide(double value) {
  DoubleMatrix r = new DoubleMatrix((int) getRowCount(), (int) getColumnCount());
  Matrix result = new JBlasDenseDoubleMatrix2D(matrix.divi(value, r));
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

代码示例来源:origin: org.ujmp/ujmp-ojalgo

@Override
public Matrix divide(final double factor) {
  final PhysicalStore<Double> retVal = PrimitiveDenseStore.FACTORY.makeZero((int) this.getRowCount(),
      (int) this.getColumnCount());
  retVal.fillMatching(matrix, PrimitiveFunction.DIVIDE, factor);
  Matrix result = new OjalgoDenseDoubleMatrix2D(retVal);
  MapMatrix<String, Object> a = getMetaData();
  if (a != null) {
    result.setMetaData(a.clone());
  }
  return result;
}

相关文章

Matrix类方法