| Package | Description |
|---|---|
| org.xmlcml.euclid |
| Modifier and Type | Method and Description |
|---|---|
int |
RealSquareMatrix.diagonaliseAndReturnRank(RealArray eigenvalues,
RealSquareMatrix eigenvectors,
EuclidRuntimeException illCond)
diagonalisation returns eigenvalues and vectors as MODIFIED arguments;
'this' is NOT affected USE JAMA INSTEAD Note that IllCondMatrixException
is RETURNED and not thrown
|
void |
Point3Vector.inertialAxes(RealArray eigval,
RealSquareMatrix eigvect,
EuclidRuntimeException illCond)
Deprecated.
(doesn't work)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
IntSet.addElement(int value)
add integer Fails if it is outside limits or already exists in set
|
void |
IntSet.addSet(IntSet is)
concatenate sets.
|
Transform3 |
Point3Vector.align3PointVectors(Point3Vector ref)
fit two sets of three points.
|
Transform3 |
Point3Vector.alignUsing3Points(Point3Vector ref)
fit two coordinates of same length and alignment.
|
Angle |
Real2Vector.angle(int i1,
int i2,
int i3)
get angle between 3 points
|
Angle |
Point3Vector.angle(int i1,
int i2,
int i3)
get angle between 3 points.
|
Angle |
Real2Vector.angle(IntSet is)
get angle between 3 points
|
Angle |
Point3Vector.angle(IntSet is)
get angle between 3 points
|
void |
IntMatrix.appendColumnData(IntArray f)
append data to matrix columnwise.
|
void |
IntMatrix.appendColumnData(IntMatrix m)
append data to matrix columnwise.
|
void |
RealMatrix.appendColumnData(RealArray f)
append data to matrix columnwise.
|
void |
RealMatrix.appendColumnData(RealMatrix m)
append data to matrix columnwise.
|
void |
IntMatrix.appendRowData(IntArray f)
append data to matrix rowwise.
|
void |
IntMatrix.appendRowData(IntMatrix m)
append data to matrix rowwise.
|
void |
RealMatrix.appendRowData(RealArray f)
append data to matrix rowwise.
|
void |
RealMatrix.appendRowData(RealMatrix m)
append data to matrix rowwise.
|
Plane3 |
Point3Vector.bestPlane()
Deprecated.
doesn't work
|
static Point3 |
Point3.calculateFromInternalCoordinates(Point3 p1,
Point3 p2,
Point3 p3,
double length,
Angle angle,
Angle torsion)
add point using internal coordinates.
|
static void |
Util.check(double[] array,
int size)
checks array is not null and is of given size.
|
static void |
Util.check(int n,
int low,
int high)
checks that an in is in the range low to high.
|
static void |
RealArray.check(RealArray array,
int size)
checks RealArray is not null and is of given size.
|
void |
IntMatrix.columnwiseDivide(IntArray f)
divide each column of a matrix by a vector of scalars (that is mat[i][j] =
mat[i][j] / vect[i] - MODIFIES matrix
|
void |
RealMatrix.columnwiseDivide(RealArray f)
divide each column of a matrix by a vector of scalars (that is mat[i][j] =
mat[i][j] / vect[i] - MODIFIES matrix
|
int |
RealSquareMatrix.diagonaliseAndReturnRank(RealArray eigenvalues,
RealSquareMatrix eigenvectors,
EuclidRuntimeException illCond)
diagonalisation returns eigenvalues and vectors as MODIFIED arguments;
'this' is NOT affected USE JAMA INSTEAD Note that IllCondMatrixException
is RETURNED and not thrown
|
double |
Real2Vector.distance(IntSet is)
get distance between 2 points
|
double |
Point3Vector.distance(IntSet is)
get distance between 2 points.
|
Complex |
Complex.divideBy(Complex f)
divide a complex by a complex.
|
Polar |
Polar.divideBy(Polar f)
divide a polar by a polar
|
int |
IntArray.dotProduct(IntArray f)
dot product of two arrays.
|
double |
RealArray.dotProduct(RealArray f)
dot product of two arrays.
|
double |
Point3.elementAt(int n)
subscript operator.
|
double |
Real2.elementAt(int elem)
get either value counts from ZERO
|
double |
Vector3.elementAt(int n)
get component.
|
int |
Int2.elementAt(int elem)
get either value; counts from ZERO
|
double |
RealMatrix.elementAt(Int2 rowcol)
extracts a given element.
|
int |
IntMatrix.elementAt(Int2 rowcol)
extracts a given element.
|
double |
RealMatrix.elementAt(int row,
int col)
extracts a given element.
|
int |
IntMatrix.elementAt(int row,
int col)
extracts a given element.
|
IntMatrix |
IntMatrix.elementsInRange(IntRange r)
produce a mask of those elements which fall in a range.
|
IntMatrix |
RealMatrix.elementsInRange(RealRange r)
produce a mask of those elements which fall in a range.
|
double |
RealMatrix.euclideanColumnLength(int jcol)
get Euclidean length of column.
|
double |
RealMatrix.euclideanRowLength(int i)
get Euclidean length of row.
|
RealArray |
RealMatrix.extractColumnData(int col)
get column data from matrix.
|
IntArray |
IntMatrix.extractColumnData(int col)
get column data from matrix.
|
Real2Array |
RealMatrix.extractColumns(int col1,
int col2)
make an Real2_Array from columns.
|
org.xmlcml.euclid.Int2Array |
IntMatrix.extractColumns(int col1,
int col2)
make an Int2_Array from columns.
|
RealArray |
RealMatrix.extractRowData(int row)
get row data from matrix.
|
Real2Array |
RealMatrix.extractRows(int row1,
int row2)
make an Real2_Array from rows.
|
org.xmlcml.euclid.Int2Array |
IntMatrix.extractRows(int row1,
int row2)
make an Int2_Array from rows.
|
RealMatrix |
RealMatrix.extractSubMatrixData(int low_row,
int high_row,
int low_col,
int high_col)
extract a RealMatrix submatrix from a RealMatrix
|
IntMatrix |
IntMatrix.extractSubMatrixData(int low_row,
int high_row,
int low_col,
int high_col)
extract a IntMatrix submatrix from a IntMatrix
|
Transform3 |
Point3Vector.fitTo(Point3Vector ref)
fit two coordinates of same length and alignment
CURRENTLY NOT VALIDATED
|
static Transform2 |
Transform2.flipAboutVector(Real2 r)
get Transformation to mirror ('flip') across an axis NOT YET CHECKED
|
int[] |
Point3Vector.get3SeparatedPoints()
get three widely separated points.
|
RealSquareMatrix |
RealSquareMatrix.getInverse()
inversion of matrix.
|
IntArray |
IntArray.getReorderedArray(IntSet idx)
get reordered Array.
|
RealArray |
RealArray.getReorderedArray(IntSet idx)
get reordered Array.
|
double |
Point3Vector.getSigmaDeltaSquared(Point3Vector v)
gets sums of squared distances between points.
|
IntSet |
IntSet.getSubscriptedIntSet(IntSet sub)
use another IntSet to subscript this one that is I(new) = I(this)
subscripted by I(sub); Result has dimension of I(sub).
|
int |
RealMatrix.indexOfLargestElementInColumn(int jcol)
get index of largest element in column.
|
int |
IntMatrix.indexOfLargestElementInColumn(int jcol)
get index of largest element in column.
|
int |
RealMatrix.indexOfLargestElementInRow(int irow)
get index of largest element in row.
|
int |
IntMatrix.indexOfLargestElementInRow(int irow)
get index of largest element in row.
|
int |
RealMatrix.indexOfSmallestElementInColumn(int jcol)
get index of smallest element in column.
|
int |
IntMatrix.indexOfSmallestElementInColumn(int jcol)
get index of smallest element in column.
|
int |
RealMatrix.indexOfSmallestElementInRow(int irow)
get index of smallest element in row.
|
int |
IntMatrix.indexOfSmallestElementInRow(int irow)
get index of smallest element in row.
|
void |
Point3Vector.inertialAxes(RealArray eigval,
RealSquareMatrix eigvect,
EuclidRuntimeException illCond)
Deprecated.
(doesn't work)
|
void |
IntMatrix.insertColumnData(int after_col,
IntArray f)
add data as column or column block into matrix and expand.
|
void |
IntMatrix.insertColumnData(int afterCol,
IntMatrix m)
add data as column or column block into matrix and expand.
|
void |
RealMatrix.insertColumnData(int after_col,
RealArray f)
add data as column or column block into matrix and expand.
|
void |
RealMatrix.insertColumnData(int afterCol,
RealMatrix m)
add data as column or column block into matrix and expand.
|
void |
IntMatrix.insertRowData(int after_row,
IntArray f)
insert row of data into matrix and expand.
|
void |
IntMatrix.insertRowData(int afterRow,
IntMatrix m)
insert 2 or more adjacent rows of data into matrix and expand
|
void |
RealMatrix.insertRowData(int after_row,
RealArray f)
insert row of data into matrix and expand.
|
void |
RealMatrix.insertRowData(int afterRow,
RealMatrix m)
insert 2 or more adjacent rows of data into matrix and expand
|
double |
RealMatrix.largestElementInColumn(int jcol)
get value of largest element in a column
|
int |
IntMatrix.largestElementInColumn(int jcol)
get value of largest element in a column
|
double |
RealMatrix.largestElementInRow(int irow)
get value of largest element in a row.
|
int |
IntMatrix.largestElementInRow(int irow)
get value of largest element in a row.
|
IntArray |
IntMatrix.multiply(IntArray f)
matrix multiplication of a COLUMN vector.
|
IntMatrix |
IntMatrix.multiply(IntMatrix m)
matrix multiplication.
|
IntSquareMatrix |
IntSquareMatrix.multiply(IntSquareMatrix m)
matrix multiplication.
|
RealArray |
RealMatrix.multiply(RealArray f)
matrix multiplication of a COLUMN vector.
|
RealMatrix |
RealMatrix.multiply(RealMatrix m)
matrix multiplication.
|
RealSquareMatrix |
RealSquareMatrix.multiply(RealSquareMatrix m)
matrix multiplication.
|
void |
IntMatrix.multiplyEquals(IntMatrix m)
matrix multiplication.
|
void |
RealMatrix.multiplyEquals(RealMatrix m)
matrix multiplication.
|
void |
RealSquareMatrix.orthogonalise()
orthogonalise matrix.
|
static String |
Util.outputFloat(int nPlaces,
int nDec,
double value)
format for example f8.3 this is a mess; if cannot fit, then either
right-truncates or when that doesn't work, returns ****
|
IntArray |
IntArray.plus(IntArray f)
adds arrays.
|
IntMatrix |
IntMatrix.plus(IntMatrix m2)
matrix addition.
|
IntSquareMatrix |
IntSquareMatrix.plus(IntSquareMatrix m)
matrix addition.
|
Point3Vector |
Point3Vector.plus(Point3Vector pv2)
form the point+point sum for two vectors of points
|
RealArray |
RealArray.plus(RealArray f)
adds arrays.
|
RealMatrix |
RealMatrix.plus(RealMatrix m2)
matrix addition.
|
RealSquareMatrix |
RealSquareMatrix.plus(RealSquareMatrix m)
matrix addition.
|
void |
RealArray.plusEquals(RealArray f)
adds arrays.
|
Vector3 |
Vector3.projectOnto(Vector3 v)
projection of this onto vector.
|
RealMatrix |
RealMatrix.reorderColumnsBy(IntSet is)
reorder the columns of a matrix.
|
IntMatrix |
IntMatrix.reorderColumnsBy(IntSet is)
reorder the columns of a matrix.
|
RealMatrix |
RealMatrix.reorderRowsBy(IntSet is)
reorder the rows of a matrix Deleting rows is allowed
|
IntMatrix |
IntMatrix.reorderRowsBy(IntSet is)
reorder the rows of a matrix Deleting rows is allowed
|
void |
RealMatrix.replaceColumnData(int starting_col,
double[] f)
replace data in a single column.
|
void |
IntMatrix.replaceColumnData(int starting_col,
int[] f)
replace data in a single column.
|
void |
IntMatrix.replaceColumnData(int column,
IntArray f)
replace data in a single column.
|
void |
IntMatrix.replaceColumnData(int start_column,
IntMatrix m)
replace data in a block of columns.
|
void |
RealMatrix.replaceColumnData(int column,
RealArray f)
replace data in a single column.
|
void |
RealMatrix.replaceColumnData(int start_column,
RealMatrix m)
replace data in a block of columns.
|
void |
RealMatrix.replaceRowData(int row,
double[] f)
overwrite existing row of data.
|
void |
IntMatrix.replaceRowData(int row,
int[] f)
overwrite existing row of data.
|
void |
IntMatrix.replaceRowData(int row,
IntArray f)
overwrite existing row of data.
|
void |
IntMatrix.replaceRowData(int afterRow,
IntMatrix m)
overwrite existing block of rows; if too big, copying is truncated
|
void |
RealMatrix.replaceRowData(int row,
RealArray f)
overwrite existing row of data.
|
void |
RealMatrix.replaceRowData(int afterRow,
RealMatrix m)
overwrite existing block of rows; if too big, copying is truncated
|
double |
RealArray.rms()
root mean square sqrt(sigma(x(i)**2)/n)
|
Transform3 |
Point3Vector.roughAlign(Point3Vector ref)
fit two coordinates of same length and alignment.
|
void |
Real2Vector.set(int i,
Real2 v) |
void |
Point3.setElementAt(int n,
double d)
sets element.
|
void |
Vector3.setElementAt(int n,
double f)
set component.
|
void |
RealMatrix.setElementAt(int row,
int col,
double f)
sets a given element MODIFIES matrix
|
void |
IntMatrix.setElementAt(int row,
int col,
int f)
sets a given element MODIFIES matrix
|
void |
Point3Vector.setElementAt(Vector3 v,
int i)
sets a given coordinate (i) to vector
|
void |
IntSet.setMax(int max)
set maximum allowed value.
|
void |
IntSquareMatrix.shallowCopy(IntSquareMatrix m)
shallowCopy an existing square matrix.
|
void |
RealSquareMatrix.shallowCopy(RealSquareMatrix m)
shallowCopy an existing square matrix.
|
double |
RealMatrix.smallestElement()
get value of smallest element.
|
int |
IntMatrix.smallestElement()
get value of smallest element.
|
double |
RealMatrix.smallestElementInColumn(int jcol)
get smallest element in a column.
|
int |
IntMatrix.smallestElementInColumn(int jcol)
get smallest element in a column.
|
double |
RealMatrix.smallestElementInRow(int irow)
get smallest element in a row.
|
int |
IntMatrix.smallestElementInRow(int irow)
get smallest element in a row.
|
static double[] |
Util.splitToDoubleArray(String s,
String delim)
splits string into doubles.
|
static int[] |
Util.splitToIntArray(String s,
String delim)
splits string into ints.
|
Real2Vector |
Real2Vector.subArray(IntSet is)
create a NEW subset of the points; points are COPIED
|
Point3Vector |
Point3Vector.subArray(IntSet is)
create a NEW subset of the points; points are COPIED
|
IntArray |
IntArray.subtract(IntArray f)
subtracts arrays.
|
IntMatrix |
IntMatrix.subtract(IntMatrix m2)
matrix subtraction.
|
IntSquareMatrix |
IntSquareMatrix.subtract(IntSquareMatrix m)
matrix subtraction.
|
Point3Vector |
Point3Vector.subtract(Point3Vector pv2)
form the point+point difference for two vectors of points
|
RealArray |
RealArray.subtract(RealArray f)
subtracts arrays.
|
RealMatrix |
RealMatrix.subtract(RealMatrix m2)
matrix subtraction.
|
RealSquareMatrix |
RealSquareMatrix.subtract(RealSquareMatrix m)
matrix subtraction.
|
void |
IntArray.subtractEquals(IntArray f)
array subtraction.
|
void |
RealArray.subtractEquals(RealArray f)
array subtraction.
|
Angle |
Point3Vector.torsion(int i1,
int i2,
int i3,
int i4)
get torsion angle between 4 points.
|
Angle |
Point3Vector.torsion(IntSet is)
get torsion angle between 4 points.
|
void |
RealMatrix.translateByColumn(double[] d)
subtract value from each colum.
|
void |
IntMatrix.translateByColumn(int[] d)
subtract value from each colum.
|
RealArray |
RealArray.unitVector()
get unit vector
|
| Constructor and Description |
|---|
IntArray(IntArray ref,
IntArray sub)
create mixed sliced array.
|
IntArray(IntArray m,
int low,
int high)
create from subarray of another Array.
|
IntArray(int n,
int[] arr)
create Array from part of java array.
|
IntMatrix(int[][] m)
create from a java matrix.
|
IntMatrix(int rows,
int cols,
int[] array)
Create from 1-D array.
|
IntMatrix(IntMatrix m,
int lowrow,
int hirow,
int lowcol,
int hicol)
create from submatrix of another matrix.
|
IntSet(int[] is)
make from an int[] - all values must be distinct;
|
IntSquareMatrix(int[][] matrix)
constructor from array.
|
IntSquareMatrix(IntMatrix m)
shallow copy from IntMatrix
the array values are not copied (only the reference)
|
IntSquareMatrix(IntMatrix m,
int lowrow,
int lowcol,
int rows)
Constructor for submatrix of another matrix.
|
Plane3(double[] array)
construct from array.
|
Plane3(double[] lmn,
double d)
formed from components.
|
Plane3(double l,
double m,
double n,
double d)
formed from components.
|
Plane3(Line3 l,
Point3 p)
make a plane from a line and a point not on the line.
|
Plane3(Point3 p1,
Point3 p2,
Point3 p3)
make a plane from three points.
|
Plane3(Vector3 v,
double d)
formed from plane and distance.
|
Point3(double[] f)
constructor from a double[] (or a RealArray).
|
Point3Vector(double[] flarray)
constructor.
|
Point3Vector(int n,
double[] x,
double[] y,
double[] z)
from three parallel arrays of x, y and z - by REFERENCE
|
Point3Vector(RealArray m)
constructor from RealArray - by REFERENCE
|
Real2Array(RealArray x,
RealArray y)
make an Real2_Array from 2 RealVec's; takes a copy
|
Real2Vector(double[] flarray)
Formed by feeding in an existing array to a 2xn matrix THE COLUMN IS THE
FASTEST MOVING INDEX, that is the matrix is filled as flarray(0,0,
flarray(0,1).
|
Real2Vector(int n,
double[] x,
double[] y)
from two parallel arrays of x, y - by REFERENCE.
|
Real2Vector(RealArray m)
constructor from RealArray - by REFERENCE
|
RealArray(int n,
double[] arr)
create Array from part of java array.
|
RealArray(RealArray ref,
IntArray sub)
create mixed sliced array.
|
RealArray(RealArray m,
int low,
int high)
create from subarray of another Array.
|
RealArray(String[] strings)
construct from an array of Strings.
|
RealMatrix(double[][] m)
create from a java matrix.
|
RealMatrix(int rows,
int cols,
double[] array)
Create from 1-D array.
|
RealMatrix(RealMatrix m,
int lowrow,
int hirow,
int lowcol,
int hicol)
create from submatrix of another matrix.
|
RealSquareMatrix(double[][] matrix)
constructor from array.
|
RealSquareMatrix(int rows,
double[] array)
Creates real square matrix from array
THE COLUMN IS THE FASTEST MOVING
INDEX, that is the matrix is filled as mat(0,0), mat(0,1) ...
|
RealSquareMatrix(RealMatrix m)
shallow copy from RealMatrix
the array values are not copied (only the reference)
|
RealSquareMatrix(RealMatrix m,
int lowrow,
int lowcol,
int rows)
Constructor for submatrix of another matrix.
|
Transform2(double[] array)
construct from an array.
|
Transform2(RealSquareMatrix m)
from a 2x2 or 3x3 matrix
|
Transform2(RealSquareMatrix m,
Vector2 v)
from a 2x2 rotation matrix and a translation vector
|
Transform2(Vector2 v1,
Vector2 v2)
rotation of one vector onto another
|
Transform3(double[] array)
From array.
|
Transform3(RealSquareMatrix m)
from a matrix.
|
Transform3(RealSquareMatrix m,
Vector3 v)
from a matrix and vector.
|
Transform3(String opString)
from a crystallographic operator.
|
Vector3(double[] array)
construct from vector components.
|
Vector3(RealArray f)
copy constructor from RealArray.
|
Copyright © 1994–2024 Peter Murray-Rust. All rights reserved.