org.ojalgo.matrix.store
Class PermutationStore<N extends Number>

java.lang.Object
  extended by org.ojalgo.matrix.store.PermutationStore<N>
All Implemented Interfaces:
Serializable, MatrixStore<N>

Deprecated. Since Version 23. Use IdentityStore in combination with SelectedRowsStore or SelectedColumnsStore instead.

@Deprecated
public final class PermutationStore<N extends Number>
extends Object

PermutationStore - an identity matrix with interchanged rows.

Author:
apete
See Also:
invert(), Serialized Form

Constructor Summary
PermutationStore(PhysicalFactory<N> aFactory, int[] aRowOrder)
          Deprecated.  
 
Method Summary
 double doubleValue(int aRow, int aCol)
          Deprecated.  
 int getColDim()
          Deprecated.  
 int getMinDim()
           
 N getNumber(int aRow, int aCol)
          Deprecated.  
 PhysicalFactory<N> getPhysicalFactory()
           
 int getRowDim()
          Deprecated.  
 PermutationStore<N> invert()
          Deprecated. The inverse and the transpose are the same and easy to deduce.
 boolean isLowerLeftShaded()
          Deprecated.  The lower (left) triangle is shaded leaving an upper Hessenberg matrix.
 boolean isShaded()
           Either the lower (left) or the upper (right) triangles are shaded.
 boolean isUpperRightShaded()
          Deprecated.  The upper (right) triangle is shaded leaving a lower Hessenberg matrix.
static PermutationStore<BigDecimal> makeBig(int[] aRowOrder)
          Deprecated.  
static PermutationStore<ComplexNumber> makeComplex(int[] aRowOrder)
          Deprecated.  
static PermutationStore<Double> makePrimitive(int[] aRowOrder)
          Deprecated.  
 N multiplyBothSides(MatrixStore<N> aStore)
          Deprecated. Calculates [aStore]T[this][aStore] as in a quadratic function [x]T[Q][x].
 MatrixStore<N> multiplyLeft(MatrixStore<N> aStore)
          Deprecated.  
 MatrixStore<N> multiplyRight(MatrixStore<N> aStore)
          Deprecated.  
 PhysicalStore<N> toPhysicalStore()
          Deprecated. May (probably will) return the same instance with every call.
 Scalar<N> toScalar(int aRow, int aCol)
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermutationStore

public PermutationStore(PhysicalFactory<N> aFactory,
                        int[] aRowOrder)
Deprecated. 
Method Detail

makeBig

public static PermutationStore<BigDecimal> makeBig(int[] aRowOrder)
Deprecated. 

makeComplex

public static PermutationStore<ComplexNumber> makeComplex(int[] aRowOrder)
Deprecated. 

makePrimitive

public static PermutationStore<Double> makePrimitive(int[] aRowOrder)
Deprecated. 

doubleValue

public double doubleValue(int aRow,
                          int aCol)
Deprecated. 

getColDim

public int getColDim()
Deprecated. 

getNumber

public N getNumber(int aRow,
                   int aCol)
Deprecated. 

getRowDim

public int getRowDim()
Deprecated. 

invert

public final PermutationStore<N> invert()
Deprecated. 
The inverse and the transpose are the same and easy to deduce.


isLowerLeftShaded

public boolean isLowerLeftShaded()
Deprecated. 
Description copied from interface: MatrixStore

The lower (left) triangle is shaded leaving an upper Hessenberg matrix.

See Also:
MatrixStore.isUpperRightShaded(), MatrixStore.isShaded(), PhysicalStore.shadeLowerLeft(), PhysicalStore.unshade()

isUpperRightShaded

public boolean isUpperRightShaded()
Deprecated. 
Description copied from interface: MatrixStore

The upper (right) triangle is shaded leaving a lower Hessenberg matrix.

See Also:
MatrixStore.isLowerLeftShaded(), MatrixStore.isShaded(), PhysicalStore.shadeUpperRight(), PhysicalStore.unshade()

multiplyBothSides

public N multiplyBothSides(MatrixStore<N> aStore)
Deprecated. 
Description copied from interface: MatrixStore
Calculates [aStore]T[this][aStore] as in a quadratic function [x]T[Q][x]. The input parameter is assumed to be a vector, but it does not matter if it's a row vector or a column vector. "this" is assumed to be a square matrix. Instead of returning a 1-by-1 matrix this method returns a scalar.


multiplyLeft

public MatrixStore<N> multiplyLeft(MatrixStore<N> aStore)
Deprecated. 

multiplyRight

public MatrixStore<N> multiplyRight(MatrixStore<N> aStore)
Deprecated. 

toPhysicalStore

public PhysicalStore<N> toPhysicalStore()
Deprecated. 
Description copied from interface: MatrixStore
May (probably will) return the same instance with every call. PhysicalStore instances are mutable. If you plan to modify it you should make a copy first. Depending on what you do with the PhysicalStore you may have to unshade it.

Returns:
A PhysicalStore representation of this MatrixStore.
See Also:
PhysicalStore.copy(), PhysicalStore.unshade()

toScalar

public Scalar<N> toScalar(int aRow,
                          int aCol)
Deprecated. 

getPhysicalFactory

public final PhysicalFactory<N> getPhysicalFactory()

isShaded

public final boolean isShaded()
Description copied from interface: MatrixStore

Either the lower (left) or the upper (right) triangles are shaded.

Shading part of a MatrixStore causes that part to be ignored (as if it had zero valued elements) when doing matrix multiplication. It is possible to shade part of a PhysicalStore even though the shaded elements are not actually zero valued. Calling doubleValue(i, j), getNumber(i, j) or toScalar(i, j) will return the actual stored value.

See Also:
MatrixStore.isLowerLeftShaded(), MatrixStore.isUpperRightShaded(), PhysicalStore.unshade()

getMinDim

public final int getMinDim()
Specified by:
getMinDim in interface MatrixStore<N extends Number>