Class CVisDVector
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.AAM.CVisDVector
-
- Direct Known Subclasses:
CDVector
public class CVisDVector extends java.lang.Object
* AAM-API LICENSE - file: license.txt This software is freely available for non-commercial use such as research and education. Please see the full disclaimer below. All publications describing work using this software should cite the reference given below. Copyright (c) 2000-2003 Mikkel B. Stegmann, mbs@imm.dtu.dk IMM, Informatics & Mathematical Modelling DTU, Technical University of Denmark Richard Petersens Plads, Building 321 DK-2800 Lyngby, Denmark http://www.imm.dtu.dk/~aam/ REFERENCES Please use the reference below, when writing articles, reports etc. where the AAM-API has been used. A draft version the article is available from the homepage. I will be happy to receive pre- or reprints of such articles. /Mikkel ------------- M. B. Stegmann, B. K. Ersboll, R. Larsen, "FAME -- A Flexible Appearance Modelling Environment", IEEE Transactions on Medical Imaging, IEEE, 2003 (to appear) ------------- 3RD PART SOFTWARE The software is partly based on the following libraries: - The Microsoft(tm) Vision Software Developers Kit, VisSDK - LAPACK DISCLAIMER This software is provided 'as-is', without any express or implied warranty. In no event will the author be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any non-commercial purpose, and to alter it, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. -- No guarantees of performance accompany this software, nor is any responsibility assumed on the part of the author or IMM. This software is provided by Mikkel B. Stegmann and IMM ``as is'' and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall IMM or Mikkel B. Stegmann be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. $Revision: 1.4 $ $Date: 2003/04/23 14:49:15 $ NAME VisDMatrix -- double precision matrix/vector operations DESCRIPTION CLASS: CVisDVector The CVisDMatrix class provides some basic matrix operations, using calls to external software (IMSL for the moment) to perform the more complicated operations. To take advantage of the IMSL numerical analysis routines, define VIS_USE_IMSL in the Build Settings C/C++ property page. Copyright (c) 1996-2000 Microsoft Corporation, All Rights Reserved Java modification from the original cpp file. Use partial routine for matrix manipulation for automatic prostate segmentation.- Author:
- Ruida Cheng
-
-
Field Summary
Fields Modifier and Type Field Description double[]
m_data
protected boolean
m_fExternalStorage
protected int
m_length
-
Constructor Summary
Constructors Constructor Description CVisDVector()
CVisDVector(int length)
CVisDVector(int length, double[] storage)
CVisDVector(CVisDVector refvector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CVisDVector
add(CVisDVector refvector)
CVisDVector
add_into(CVisDVector refvector)
CVisDVector
assign(double value)
CVisDVector
assign(CVisDVector vec)
void
dispose()
CVisDVector
div(double dbl)
CVisDVector
div_into(double dbl)
CVisDVector
EqDiff(CVisDVector refvectorA, CVisDVector refvectorB)
CVisDVector
EqProd(CVisDMatrix refmatrixA, CVisDVector refvectorB)
CVisDVector
EqSum(CVisDVector refvectorA, CVisDVector refvectorB)
boolean
equals(CVisDVector refvector)
void
FreeBuffer()
double
get(int index)
int
Length()
boolean
less_than(CVisDVector refvector)
CVisDVector
mult(double dbl)
double
mult(CVisDVector refvector)
CVisDVector
mult_into(double dbl)
CVisDVector
neg()
double
Norm2()
boolean
not_equals(CVisDVector refvector)
void
Resize(int length)
void
Resize(int length, double[] storage)
void
Resize(int length, double[] storage, boolean flag)
void
set(int index, double value)
void
SetSize(int length)
void
SetSize(int length, double[] storage)
CVisDVector
sub(CVisDVector refvector)
CVisDVector
sub_into(CVisDVector refvector)
CVisDVector
VisCrossProduct(CVisDVector v1, CVisDVector v2)
void
VisCrossProduct(CVisDVector x, CVisDVector y, CVisDVector z)
-
-
-
Constructor Detail
-
CVisDVector
public CVisDVector()
-
CVisDVector
public CVisDVector(int length)
-
CVisDVector
public CVisDVector(int length, double[] storage)
-
CVisDVector
public CVisDVector(CVisDVector refvector)
-
-
Method Detail
-
dispose
public void dispose()
-
not_equals
public boolean not_equals(CVisDVector refvector)
-
add_into
public CVisDVector add_into(CVisDVector refvector)
-
sub_into
public CVisDVector sub_into(CVisDVector refvector)
-
add
public CVisDVector add(CVisDVector refvector)
-
sub
public CVisDVector sub(CVisDVector refvector)
-
VisCrossProduct
public CVisDVector VisCrossProduct(CVisDVector v1, CVisDVector v2)
-
EqSum
public CVisDVector EqSum(CVisDVector refvectorA, CVisDVector refvectorB)
-
EqDiff
public CVisDVector EqDiff(CVisDVector refvectorA, CVisDVector refvectorB)
-
EqProd
public CVisDVector EqProd(CVisDMatrix refmatrixA, CVisDVector refvectorB)
-
mult
public CVisDVector mult(double dbl)
-
div
public CVisDVector div(double dbl)
-
get
public double get(int index)
-
set
public void set(int index, double value)
-
FreeBuffer
public void FreeBuffer()
-
SetSize
public void SetSize(int length)
-
SetSize
public void SetSize(int length, double[] storage)
-
Length
public int Length()
-
Resize
public void Resize(int length)
-
Resize
public void Resize(int length, double[] storage)
-
Resize
public void Resize(int length, double[] storage, boolean flag)
-
assign
public CVisDVector assign(CVisDVector vec)
-
assign
public CVisDVector assign(double value)
-
equals
public boolean equals(CVisDVector refvector)
-
less_than
public boolean less_than(CVisDVector refvector)
-
mult_into
public CVisDVector mult_into(double dbl)
-
div_into
public CVisDVector div_into(double dbl)
-
Norm2
public double Norm2()
-
neg
public CVisDVector neg()
-
mult
public double mult(CVisDVector refvector)
-
VisCrossProduct
public void VisCrossProduct(CVisDVector x, CVisDVector y, CVisDVector z)
-
-