use of org.ojalgo.matrix.transformation.Householder in project ojAlgo by optimatika.
the class BigDenseStore method transformLeft.
public void transformLeft(final Householder<BigDecimal> transformation, final int firstColumn) {
final Householder.Big tmpTransf = BigDenseStore.cast(transformation);
final BigDecimal[] tmpData = data;
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
if ((tmpColDim - firstColumn) > HouseholderLeft.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int aFirst, final int aLimit) {
HouseholderLeft.invoke(tmpData, tmpRowDim, aFirst, aLimit, tmpTransf);
}
};
tmpConquerer.invoke(firstColumn, tmpColDim, HouseholderLeft.THRESHOLD);
} else {
HouseholderLeft.invoke(tmpData, tmpRowDim, firstColumn, tmpColDim, tmpTransf);
}
}
use of org.ojalgo.matrix.transformation.Householder in project ojAlgo by optimatika.
the class BigDenseStore method transformRight.
public void transformRight(final Householder<BigDecimal> transformation, final int firstRow) {
final Householder.Big tmpTransf = BigDenseStore.cast(transformation);
final BigDecimal[] tmpData = data;
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
if ((tmpRowDim - firstRow) > HouseholderRight.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int aFirst, final int aLimit) {
HouseholderRight.invoke(tmpData, aFirst, aLimit, tmpColDim, tmpTransf);
}
};
tmpConquerer.invoke(firstRow, tmpRowDim, HouseholderRight.THRESHOLD);
} else {
HouseholderRight.invoke(tmpData, firstRow, tmpRowDim, tmpColDim, tmpTransf);
}
}
use of org.ojalgo.matrix.transformation.Householder in project ojAlgo by optimatika.
the class PrimitiveDenseStore method transformLeft.
public void transformLeft(final Householder<Double> transformation, final int firstColumn) {
final Householder.Primitive tmpTransf = PrimitiveDenseStore.cast(transformation);
final double[] tmpData = data;
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
if ((tmpColDim - firstColumn) > HouseholderLeft.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int first, final int limit) {
HouseholderLeft.invoke(tmpData, tmpRowDim, first, limit, tmpTransf);
}
};
tmpConquerer.invoke(firstColumn, tmpColDim, HouseholderLeft.THRESHOLD);
} else {
HouseholderLeft.invoke(tmpData, tmpRowDim, firstColumn, tmpColDim, tmpTransf);
}
}
use of org.ojalgo.matrix.transformation.Householder in project ojAlgo by optimatika.
the class ComplexDenseStore method transformRight.
public void transformRight(final Householder<ComplexNumber> transformation, final int firstRow) {
final Householder.Complex tmpTransf = ComplexDenseStore.cast(transformation);
final ComplexNumber[] tmpData = data;
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
if ((tmpRowDim - firstRow) > HouseholderRight.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int aFirst, final int aLimit) {
HouseholderRight.invoke(tmpData, aFirst, aLimit, tmpColDim, tmpTransf);
}
};
tmpConquerer.invoke(firstRow, tmpRowDim, HouseholderRight.THRESHOLD);
} else {
HouseholderRight.invoke(tmpData, firstRow, tmpRowDim, tmpColDim, tmpTransf);
}
}
use of org.ojalgo.matrix.transformation.Householder in project ojAlgo by optimatika.
the class ComplexDenseStore method transformLeft.
public void transformLeft(final Householder<ComplexNumber> transformation, final int firstColumn) {
final Householder.Complex tmpTransf = ComplexDenseStore.cast(transformation);
final ComplexNumber[] tmpData = data;
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
if ((tmpColDim - firstColumn) > HouseholderLeft.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int aFirst, final int aLimit) {
HouseholderLeft.invoke(tmpData, tmpRowDim, aFirst, aLimit, tmpTransf);
}
};
tmpConquerer.invoke(firstColumn, tmpColDim, HouseholderLeft.THRESHOLD);
} else {
HouseholderLeft.invoke(tmpData, tmpRowDim, firstColumn, tmpColDim, tmpTransf);
}
}
Aggregations