public class LSQROnHeap<K,V> extends AbstractLSQR implements AutoCloseable
AbstractLSQR
and Dataset
.Constructor and Description |
---|
LSQROnHeap(DatasetBuilder<K,V> datasetBuilder,
PartitionDataBuilder<K,V,LSQRPartitionContext,SimpleLabeledDatasetData> partDataBuilder)
Constructs a new instance of OnHeap LSQR algorithm implementation.
|
Modifier and Type | Method and Description |
---|---|
protected double |
beta(double[] x,
double alfa,
double beta)
Calculates beta.
|
protected double |
bnorm()
Calculates bnorm.
|
void |
close() |
protected Integer |
getColumns()
Returns number of columns in dataset.
|
protected double[] |
iter(double bnorm,
double[] target)
Perform LSQR iteration.
|
solve
public LSQROnHeap(DatasetBuilder<K,V> datasetBuilder, PartitionDataBuilder<K,V,LSQRPartitionContext,SimpleLabeledDatasetData> partDataBuilder)
datasetBuilder
- Dataset builder.partDataBuilder
- Partition data builder.protected double bnorm()
bnorm
in class AbstractLSQR
protected double beta(double[] x, double alfa, double beta)
beta
in class AbstractLSQR
x
- X value.alfa
- Alfa value.beta
- Beta value.protected double[] iter(double bnorm, double[] target)
iter
in class AbstractLSQR
bnorm
- Bnorm value.target
- Target value.protected Integer getColumns()
getColumns
in class AbstractLSQR
public void close() throws Exception
close
in interface AutoCloseable
Exception
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019