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

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

Deprecated. Since Version 23. Use SuperimposedMatrixStore instead.

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

SuperimposedElementStore

Author:
apete
See Also:
Serialized Form

Constructor Summary
SuperimposedElementStore(MatrixStore<N> aBase, int aRow, int aCol, N aDiff)
          Deprecated.  
 
Method Summary
 double doubleValue(int aRow, int aCol)
          Deprecated.  
 int getColDim()
           
 int getMinDim()
           
 N getNumber(int aRow, int aCol)
          Deprecated.  
 PhysicalFactory<N> getPhysicalFactory()
           
 int getRowDim()
           
 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.
 N multiplyBothSides(MatrixStore<N> aStore)
          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()
          May (probably will) return the same instance with every call.
 Scalar<N> toScalar(int aRow, int aCol)
          Deprecated.  
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SuperimposedElementStore

public SuperimposedElementStore(MatrixStore<N> aBase,
                                int aRow,
                                int aCol,
                                N aDiff)
Deprecated. 
Method Detail

doubleValue

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

getNumber

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

isLowerLeftShaded

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

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

Specified by:
isLowerLeftShaded in interface MatrixStore<N extends Number>
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.

Specified by:
isUpperRightShaded in interface MatrixStore<N extends Number>
See Also:
MatrixStore.isLowerLeftShaded(), MatrixStore.isShaded(), PhysicalStore.shadeUpperRight(), PhysicalStore.unshade()

multiplyLeft

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

multiplyRight

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

toScalar

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

getColDim

public int getColDim()

getPhysicalFactory

public final PhysicalFactory<N> getPhysicalFactory()

getRowDim

public int getRowDim()

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()

multiplyBothSides

public final N multiplyBothSides(MatrixStore<N> aStore)
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.


toPhysicalStore

public final PhysicalStore<N> toPhysicalStore()
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()

toString

public final String toString()
Overrides:
toString in class Object

getMinDim

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