cern.colt.matrix.tfloat.algo.solver.preconditioner.FloatIdentity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parallelcolt Show documentation
Show all versions of parallelcolt Show documentation
Parallel Colt is a multithreaded version of Colt - a library for high performance scientific computing in Java. It contains efficient algorithms for data analysis, linear algebra, multi-dimensional arrays, Fourier transforms, statistics and histogramming.
The newest version!
package cern.colt.matrix.tfloat.algo.solver.preconditioner;
import cern.colt.matrix.tfloat.FloatMatrix1D;
import cern.colt.matrix.tfloat.FloatMatrix2D;
public class FloatIdentity implements FloatPreconditioner {
public FloatMatrix1D apply(FloatMatrix1D b, FloatMatrix1D x) {
if (x == null) {
x = b.like();
}
return x.assign(b);
}
public FloatMatrix1D transApply(FloatMatrix1D b, FloatMatrix1D x) {
if (x == null) {
x = b.like();
}
return x.assign(b);
}
public void setMatrix(FloatMatrix2D A) {
// nothing to do
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy