Skip to content

Commit

Permalink
MatrixTransformation
Browse files Browse the repository at this point in the history
  • Loading branch information
apete committed Dec 18, 2017
1 parent a89a13d commit 5f4852e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/org/ojalgo/matrix/transformation/Householder.java
Expand Up @@ -31,7 +31,7 @@
import org.ojalgo.scalar.ComplexNumber;
import org.ojalgo.scalar.Scalar;

public interface Householder<N extends Number> extends Access1D<N> {
public interface Householder<N extends Number> extends MatrixTransformation<N>, Access1D<N> {

public static final class Big extends Object implements Householder<BigDecimal> {

Expand Down
10 changes: 6 additions & 4 deletions src/org/ojalgo/matrix/transformation/MatrixTransformation.java
Expand Up @@ -21,17 +21,19 @@
*/
package org.ojalgo.matrix.transformation;

import org.ojalgo.access.Access2D;
import org.ojalgo.matrix.store.PhysicalStore;

/**
* Represents an in-place matrix transformation – the matrix/vector operated on is mutated. A
* MatrixTransformation instance represents an implied transformation matrix (to be premultiplied). Through
* the {@link Access2D} and {@link Access2D.Collectabl} the elements of that matrix can be access and
* collected.
* MatrixTransformation instance represents an implied transformation matrix (to be used as the input argument
* to the {@link PhysicalStore#multiply(org.ojalgo.matrix.store.MatrixStore)} or
* {@link PhysicalStore#premultiply(org.ojalgo.access.Access1D)} methods). But, this interface does not
* require you to disclose the size and shape of that matrix, nor to be able to explicitly access any of the
* individual elements.
*
* @author apete
*/
@FunctionalInterface
public interface MatrixTransformation<N extends Number> {

void transform(PhysicalStore<N> matrix);
Expand Down

0 comments on commit 5f4852e

Please sign in to comment.