Class SparseMatrix
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Poisson.Octree.SparseMatrix
-
- Direct Known Subclasses:
SparseSymmetricMatrix
public class SparseMatrix extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Allocator<MatrixEntry>
Allocator
MatrixEntry[][]
m_ppElements
int
rows
int[]
rowSizes
static int
UseAlloc
-
Constructor Summary
Constructors Constructor Description SparseMatrix()
SparseMatrix(int rows)
SparseMatrix(SparseMatrix M)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
Columns()
void
dispose()
int
Entries()
SparseMatrix
mul(float V)
SparseMatrix
mul(SparseMatrix M)
VectorF
mul(VectorF V)
SparseMatrix
mul_into(float V)
SparseMatrix
Multiply(SparseMatrix M)
VectorF
Multiply(VectorF V)
void
Multiply(VectorF In, VectorF Out)
void
print()
void
Resize(int r)
int
Rows()
SparseMatrix
set(SparseMatrix M)
static void
SetAllocator(int blockSize)
void
SetIdentity()
void
SetRowSize(int row, int count)
void
SetZero()
static int
Solve(SparseMatrix M, VectorF b, int iters, VectorF solution, float eps)
static int
SolveSymmetric(SparseMatrix M, VectorF b, int iters, VectorF solution, float eps, int reset)
SparseMatrix
Transpose()
static int
UseAllocator()
-
-
-
Field Detail
-
Allocator
public static Allocator<MatrixEntry> Allocator
-
rows
public int rows
-
rowSizes
public int[] rowSizes
-
m_ppElements
public MatrixEntry[][] m_ppElements
-
UseAlloc
public static int UseAlloc
-
-
Constructor Detail
-
SparseMatrix
public SparseMatrix()
-
SparseMatrix
public SparseMatrix(int rows)
-
SparseMatrix
public SparseMatrix(SparseMatrix M)
-
-
Method Detail
-
UseAllocator
public static int UseAllocator()
-
SetAllocator
public static void SetAllocator(int blockSize)
-
Entries
public int Entries()
-
set
public SparseMatrix set(SparseMatrix M)
-
dispose
public void dispose()
-
Resize
public void Resize(int r)
-
SetRowSize
public void SetRowSize(int row, int count)
-
SetZero
public void SetZero()
-
print
public void print()
-
Rows
public int Rows()
-
Columns
public int Columns()
-
SetIdentity
public void SetIdentity()
-
mul
public SparseMatrix mul(float V)
-
mul_into
public SparseMatrix mul_into(float V)
-
Multiply
public SparseMatrix Multiply(SparseMatrix M)
-
mul
public SparseMatrix mul(SparseMatrix M)
-
Transpose
public SparseMatrix Transpose()
-
SolveSymmetric
public static int SolveSymmetric(SparseMatrix M, VectorF b, int iters, VectorF solution, float eps, int reset)
-
Solve
public static int Solve(SparseMatrix M, VectorF b, int iters, VectorF solution, float eps)
-
-