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.
|
solvepublic LSQROnHeap(DatasetBuilder<K,V> datasetBuilder, PartitionDataBuilder<K,V,LSQRPartitionContext,SimpleLabeledDatasetData> partDataBuilder)
datasetBuilder - Dataset builder.partDataBuilder - Partition data builder.protected double bnorm()
bnorm in class AbstractLSQRprotected double beta(double[] x,
double alfa,
double beta)
beta in class AbstractLSQRx - X value.alfa - Alfa value.beta - Beta value.protected double[] iter(double bnorm,
double[] target)
iter in class AbstractLSQRbnorm - Bnorm value.target - Target value.protected Integer getColumns()
getColumns in class AbstractLSQRpublic void close()
throws Exception
close in interface AutoCloseableException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019