jhplot.math
Class DoubleArray
java.lang.Object
jhplot.math.DoubleArray
- Direct Known Subclasses:
- LinearAlgebra
public class DoubleArray
- extends java.lang.Object
Copyright : BSD License
Method Summary |
static double[][] |
buildXY(double[] X,
double[] Y)
|
static double[][] |
buildXY(double Xmin,
double Xmax,
double[] Y)
|
static void |
checkColumnDimension(double[][] M,
int n)
|
static void |
checkLength(double[] M,
int n)
|
static void |
checkRowDimension(double[][] M,
int m)
|
static double[] |
copy(double[] M)
|
static double[][] |
copy(double[][] M)
|
static double[] |
cumProduct(double[] v)
|
static double[][] |
cumProduct(double[][] v)
|
static double[] |
cumSum(double[] v)
|
static double[][] |
cumSum(double[][] v)
|
static double[] |
delete(double[] x,
int... J)
|
static double[][] |
deleteColumns(double[][] x,
int... J)
|
static double[][] |
deleteColumnsRange(double[][] x,
int J1,
int J2)
|
static double[] |
deleteRange(double[] x,
int J1,
int J2)
|
static double[][] |
deleteRows(double[][] x,
int... I)
|
static double[][] |
deleteRowsRange(double[][] x,
int I1,
int I2)
|
static double[][] |
f(double[][] M,
graph.ParseFunction f)
|
static double[] |
f(double[] M,
graph.ParseFunction f)
|
static double[] |
findex(int m,
IndexFunction f)
|
static double[] |
getColumnCopy(double[][][] M,
int j,
int k)
|
static double[] |
getColumnCopy(double[][] M,
int j)
|
static int |
getColumnDimension(double[][] M,
int i)
|
static double[][] |
getColumnsCopy(double[][] M,
int... J)
|
static double[][] |
getColumnsRangeCopy(double[][] M,
int j1,
int j2)
|
static double[] |
getCopy(double[] M,
int... I)
|
static double[] |
getRangeCopy(double[] M,
int j1,
int j2)
|
static double[] |
getRowCopy(double[][] M,
int i)
|
static double[][] |
getRowsCopy(double[][] M,
int... I)
|
static double[][] |
getRowsRangeCopy(double[][] M,
int i1,
int i2)
|
static double[][] |
getSubMatrixRangeCopy(double[][] M,
int i1,
int i2,
int j1,
int j2)
|
static double[][] |
identity(int m)
|
static double[] |
increment(int m,
double begin,
double pitch)
|
static double[][] |
increment(int m,
int n,
double[] begin,
double[] pitch)
|
static double[][] |
increment(int m,
int n,
double begin,
double pitch)
|
static double[] |
insert(double[] x,
int I,
double... y)
|
static double[][] |
insertColumn(double[][] x,
double[] y,
int J)
|
static double[][] |
insertColumns(double[][] x,
double[][] y,
int J)
|
static double[][] |
insertRow(double[][] x,
double[] y,
int I)
|
static double[][] |
insertRows(double[][] x,
double[][] y,
int I)
|
static boolean |
isColumnDimension(double[][] M,
int n)
|
static boolean |
isLength(double[] M,
int n)
|
static boolean |
isRowDimension(double[][] M,
int m)
|
static double |
max(double... M)
|
static double[] |
max(double[][] M)
|
static int |
maxIndex(double... M)
|
static int[] |
maxIndex(double[][] M)
|
static double[] |
merge(double[]... x)
|
static double[][] |
mergeColumns(double[]... x)
|
static double[][] |
mergeRows(double[]... x)
|
static double |
min(double... M)
|
static double[] |
min(double[][] M)
|
static int |
minIndex(double... M)
|
static int[] |
minIndex(double[][] M)
|
static double[] |
one(int m)
|
static double[] |
one(int m,
double c)
|
static double[][] |
one(int m,
int n)
|
static double[][] |
one(int m,
int n,
double c)
|
static double |
product(double[] v)
|
static double[] |
product(double[][] v)
|
static double[] |
random(int m)
|
static double[] |
random(int m,
double min,
double max)
|
static double[][] |
random(int m,
int n)
|
static double[][] |
random(int m,
int n,
double[] min,
double[] max)
|
static double[][] |
random(int m,
int n,
double min,
double max)
|
static double[] |
sort(double[] values)
|
static double[][] |
sort(double[][] values,
int column)
|
static double |
sum(double[] v)
|
static double[] |
sum(double[][] v)
|
static void |
throwError(java.lang.String msg)
|
static java.lang.String |
toString(double[]... v)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleArray
public DoubleArray()
identity
public static double[][] identity(int m)
one
public static double[][] one(int m,
int n)
one
public static double[][] one(int m,
int n,
double c)
one
public static double[] one(int m)
one
public static double[] one(int m,
double c)
random
public static double[][] random(int m,
int n)
random
public static double[] random(int m)
random
public static double[][] random(int m,
int n,
double min,
double max)
random
public static double[] random(int m,
double min,
double max)
random
public static double[][] random(int m,
int n,
double[] min,
double[] max)
increment
public static double[][] increment(int m,
int n,
double begin,
double pitch)
increment
public static double[] increment(int m,
double begin,
double pitch)
increment
public static double[][] increment(int m,
int n,
double[] begin,
double[] pitch)
copy
public static double[] copy(double[] M)
copy
public static double[][] copy(double[][] M)
getSubMatrixRangeCopy
public static double[][] getSubMatrixRangeCopy(double[][] M,
int i1,
int i2,
int j1,
int j2)
getColumnsRangeCopy
public static double[][] getColumnsRangeCopy(double[][] M,
int j1,
int j2)
getColumnsCopy
public static double[][] getColumnsCopy(double[][] M,
int... J)
getColumnCopy
public static double[] getColumnCopy(double[][] M,
int j)
getColumnCopy
public static double[] getColumnCopy(double[][][] M,
int j,
int k)
getRowsCopy
public static double[][] getRowsCopy(double[][] M,
int... I)
getRowCopy
public static double[] getRowCopy(double[][] M,
int i)
getRowsRangeCopy
public static double[][] getRowsRangeCopy(double[][] M,
int i1,
int i2)
getRangeCopy
public static double[] getRangeCopy(double[] M,
int j1,
int j2)
getCopy
public static double[] getCopy(double[] M,
int... I)
getColumnDimension
public static int getColumnDimension(double[][] M,
int i)
mergeRows
public static double[][] mergeRows(double[]... x)
mergeColumns
public static double[][] mergeColumns(double[]... x)
merge
public static double[] merge(double[]... x)
insertColumns
public static double[][] insertColumns(double[][] x,
double[][] y,
int J)
insertColumn
public static double[][] insertColumn(double[][] x,
double[] y,
int J)
insertRows
public static double[][] insertRows(double[][] x,
double[][] y,
int I)
insertRow
public static double[][] insertRow(double[][] x,
double[] y,
int I)
insert
public static double[] insert(double[] x,
int I,
double... y)
deleteColumnsRange
public static double[][] deleteColumnsRange(double[][] x,
int J1,
int J2)
deleteColumns
public static double[][] deleteColumns(double[][] x,
int... J)
deleteRowsRange
public static double[][] deleteRowsRange(double[][] x,
int I1,
int I2)
deleteRows
public static double[][] deleteRows(double[][] x,
int... I)
deleteRange
public static double[] deleteRange(double[] x,
int J1,
int J2)
delete
public static double[] delete(double[] x,
int... J)
buildXY
public static double[][] buildXY(double Xmin,
double Xmax,
double[] Y)
buildXY
public static double[][] buildXY(double[] X,
double[] Y)
min
public static double[] min(double[][] M)
min
public static double min(double... M)
max
public static double[] max(double[][] M)
max
public static double max(double... M)
minIndex
public static int[] minIndex(double[][] M)
minIndex
public static int minIndex(double... M)
maxIndex
public static int[] maxIndex(double[][] M)
maxIndex
public static int maxIndex(double... M)
sum
public static double sum(double[] v)
sum
public static double[] sum(double[][] v)
cumSum
public static double[] cumSum(double[] v)
cumSum
public static double[][] cumSum(double[][] v)
product
public static double product(double[] v)
product
public static double[] product(double[][] v)
cumProduct
public static double[] cumProduct(double[] v)
cumProduct
public static double[][] cumProduct(double[][] v)
toString
public static java.lang.String toString(double[]... v)
throwError
public static void throwError(java.lang.String msg)
checkColumnDimension
public static void checkColumnDimension(double[][] M,
int n)
isColumnDimension
public static boolean isColumnDimension(double[][] M,
int n)
checkRowDimension
public static void checkRowDimension(double[][] M,
int m)
isRowDimension
public static boolean isRowDimension(double[][] M,
int m)
checkLength
public static void checkLength(double[] M,
int n)
isLength
public static boolean isLength(double[] M,
int n)
f
public static double[][] f(double[][] M,
graph.ParseFunction f)
f
public static double[] f(double[] M,
graph.ParseFunction f)
findex
public static double[] findex(int m,
IndexFunction f)
sort
public static double[] sort(double[] values)
sort
public static double[][] sort(double[][] values,
int column)
jHepWork 2.1 (C) S.Chekanov