edu.jhu.ece.iacl.jist.structures.matrix
Class VectorMatrixX

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.matrix.VectorMatrixX
All Implemented Interfaces:
MatrixX, java.lang.Cloneable

public class VectorMatrixX
extends java.lang.Object
implements MatrixX

Vector Matrix 3d implementation Vectors use Vector 3d for storage.

Author:
Blake Lucas

Field Summary
protected  java.lang.Number[][][][] mat
          Vector Matrix 3d access This is not good encapsulation and will be deprectated in future iterations! Please use getters and setters when accessing matrix3d.
 
Constructor Summary
VectorMatrixX(int d1, int d2, int d3, int d4)
          Instantiates a new vector matrix x.
VectorMatrixX(int d1, int d2, int d3, VectorX a)
          Instantiates a new vector matrix x.
VectorMatrixX(java.lang.Number[][][][] m)
          Instantiates a new vector matrix x.
VectorMatrixX(VectorX[][][] m)
          Instantiates a new vector matrix x.
 
Method Summary
 VectorMatrixX add(double a)
          Adds the.
 VectorMatrixX add(VectorMatrixX m)
          Adds the.
 VectorMatrixX clone()
           
 VectorMatrixX div(double a)
          Div.
 VectorMatrixX div(VectorMatrixX m)
          Div.
 VectorX get(int i, int j, int k)
          Gets the.
 java.lang.Number get(int i, int j, int k, int l)
          Gets the.
 int getCols()
          Gets the cols.
 int getComponents()
          Gets the components.
 int getRows()
          Gets the rows.
 int getSlices()
          Gets the slices.
 ImageData mag()
          Mag.
 VectorMatrixX mul(double a)
          Mul.
 VectorMatrixX mul(VectorMatrixX m)
          Mul.
 VectorMatrixX normalize()
          Normalize.
 void set(int i, int j, int k, int l, java.lang.Number val)
          Sets the.
 void set(int i, int j, int k, VectorX a)
          Sets the.
 VectorMatrixX sub(double a)
          Sub.
 VectorMatrixX sub(VectorMatrixX m)
          Sub.
 double talley()
          Debugging routine for printing non-zero vector matrix elements.
 java.lang.Number[][][][] toArray4d()
          To array4d.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mat

protected java.lang.Number[][][][] mat
Vector Matrix 3d access This is not good encapsulation and will be deprectated in future iterations! Please use getters and setters when accessing matrix3d.

Constructor Detail

VectorMatrixX

public VectorMatrixX(int d1,
                     int d2,
                     int d3,
                     VectorX a)
Instantiates a new vector matrix x.

Parameters:
d1 - the d1
d2 - the d2
d3 - the d3
a - the a

VectorMatrixX

public VectorMatrixX(int d1,
                     int d2,
                     int d3,
                     int d4)
Instantiates a new vector matrix x.

Parameters:
d1 - the d1
d2 - the d2
d3 - the d3
d4 - the d4

VectorMatrixX

public VectorMatrixX(java.lang.Number[][][][] m)
Instantiates a new vector matrix x.

Parameters:
m - the m

VectorMatrixX

public VectorMatrixX(VectorX[][][] m)
Instantiates a new vector matrix x.

Parameters:
m - the m
Method Detail

getRows

public int getRows()
Gets the rows.

Returns:
the rows

getCols

public int getCols()
Gets the cols.

Returns:
the cols

getSlices

public int getSlices()
Gets the slices.

Returns:
the slices

toArray4d

public java.lang.Number[][][][] toArray4d()
To array4d.

Returns:
the number[][][][]

set

public void set(int i,
                int j,
                int k,
                VectorX a)
Sets the.

Parameters:
i - the i
j - the j
k - the k
a - the a

set

public void set(int i,
                int j,
                int k,
                int l,
                java.lang.Number val)
Sets the.

Parameters:
i - the i
j - the j
k - the k
l - the l
val - the val

get

public java.lang.Number get(int i,
                            int j,
                            int k,
                            int l)
Gets the.

Parameters:
i - the i
j - the j
k - the k
l - the l
Returns:
the number

get

public VectorX get(int i,
                   int j,
                   int k)
Gets the.

Parameters:
i - the i
j - the j
k - the k
Returns:
the vector x

add

public VectorMatrixX add(double a)
Adds the.

Parameters:
a - the a
Returns:
the vector matrix x

sub

public VectorMatrixX sub(double a)
Sub.

Parameters:
a - the a
Returns:
the vector matrix x

mul

public VectorMatrixX mul(double a)
Mul.

Parameters:
a - the a
Returns:
the vector matrix x

div

public VectorMatrixX div(double a)
Div.

Parameters:
a - the a
Returns:
the vector matrix x

add

public VectorMatrixX add(VectorMatrixX m)
Adds the.

Parameters:
m - the m
Returns:
the vector matrix x

sub

public VectorMatrixX sub(VectorMatrixX m)
Sub.

Parameters:
m - the m
Returns:
the vector matrix x

mul

public VectorMatrixX mul(VectorMatrixX m)
Mul.

Parameters:
m - the m
Returns:
the vector matrix x

clone

public VectorMatrixX clone()
Overrides:
clone in class java.lang.Object

div

public VectorMatrixX div(VectorMatrixX m)
Div.

Parameters:
m - the m
Returns:
the vector matrix x

normalize

public VectorMatrixX normalize()
Normalize.

Returns:
the vector matrix x

mag

public ImageData mag()
Mag.

Returns:
the image data

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

talley

public double talley()
Debugging routine for printing non-zero vector matrix elements.

Returns:
the double

getComponents

public int getComponents()
Gets the components.

Returns:
the components