Package io.deephaven.numerics.suanshu
Class SuanShuIntegration
java.lang.Object
io.deephaven.numerics.suanshu.SuanShuIntegration
Basic utility methods to convert Deephaven data-structures to Suanshu data-structures
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The abstract implementation ofMatrix
.static class
The abstract implementation ofVector
.static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(byte[]... byteColumnsData) Wrapsbyte[]...
asMatrix
This method assumesbyteColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(double[]... doubleColumnsData) Wrapsdouble[]...
asMatrix
This method assumesdoubleColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(float[]... floatColumnsData) Wrapsfloat[]...
asMatrix
.static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(int[]... intColumnsData) Wrapsint[]...
asMatrix
This method assumesintColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(long[]... longColumnsData) Wrapslong[]...
asMatrix
This method assumeslongColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(short[]... shortColumnsData) Wrapsshort[]...
asMatrix
This method assumesshortColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(ByteVector... byteVectors) WrapsByteVector
...static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(DoubleVector... doubleVectors) WrapsDoubleVector
...static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(FloatVector... floatVectors) WrapsFloatVector
...static com.numericalmethod.suanshu.matrix.doubles.Matrix
WrapsIntVector
...static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(LongVector... longVectors) WrapsLongVector
...static <T extends Vector>
com.numericalmethod.suanshu.matrix.doubles.MatrixssMat
(ObjectVector<T> objectVector) WrapsObjectVector
...static com.numericalmethod.suanshu.matrix.doubles.Matrix
ssMat
(ShortVector... shortVectors) WrapsShortVector
...static com.numericalmethod.suanshu.matrix.doubles.Matrix
WrapsVector
...static com.numericalmethod.suanshu.matrix.doubles.Matrix
WrapNumber
[]...static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(byte[] bytes) Wrapsbyte[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(double[] doubles) Wrapsdouble[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(float[] floats) Wrapsfloat[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(int[] ints) Wrapsint[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(long[] longs) Wrapslong[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(short[] shorts) Wrapsshort[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(ByteVector byteVector) WrapsByteVector
instance asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(DoubleVector doubleVector) WrapsDoubleVector
instance asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(FloatVector floatVector) WrapsFloatVector
instance asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
WrapsIntVector
instance asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(LongVector longVector) WrapsLongVector
instance asVector
static <T extends Number>
com.numericalmethod.suanshu.vector.doubles.VectorssVec
(ObjectVector<T> vector) WrapsObjectVector
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
ssVec
(ShortVector shortVector) WrapsShortVector
instance asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
Wrapsbyte[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
Wrapsdouble[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
Wrapsfloat[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
Wrapsint[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
Wrapslong[]
asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
WrapsNumber
[] asVector
static com.numericalmethod.suanshu.vector.doubles.Vector
Wrapsshort[]
asVector
-
Method Details
-
ssVec
WrapsByteVector
instance asVector
- Parameters:
byteVector
- instance to wrap- Returns:
- Immutable
Vector
backed byByteVector
-
ssVec
Wrapsbyte[]
asVector
- Parameters:
bytes
- array to wrap- Returns:
- Immutable
Vector
backed bybyte[]
-
ssVec
public static com.numericalmethod.suanshu.vector.doubles.Vector ssVec(byte[] bytes) Wrapsbyte[]
asVector
- Parameters:
bytes
- array to wrap- Returns:
- Immutable
Vector
backed bybyte[]
-
ssVec
WrapsShortVector
instance asVector
- Parameters:
shortVector
- instance to wrap- Returns:
- Immutable
Vector
backed byShortVector
-
ssVec
Wrapsshort[]
asVector
- Parameters:
shorts
- array to wrap- Returns:
- Immutable
Vector
backed byshort[]
-
ssVec
public static com.numericalmethod.suanshu.vector.doubles.Vector ssVec(short[] shorts) Wrapsshort[]
asVector
- Parameters:
shorts
- array to wrap- Returns:
- Immutable
Vector
backed byshort[]
-
ssVec
WrapsIntVector
instance asVector
-
ssVec
public static com.numericalmethod.suanshu.vector.doubles.Vector ssVec(int[] ints) Wrapsint[]
asVector
- Parameters:
ints
- array to wrap- Returns:
- Immutable
Vector
backed byint[]
-
ssVec
Wrapsint[]
asVector
- Parameters:
ints
- array to wrap- Returns:
- Immutable
Vector
backed byint[]
-
ssVec
WrapsFloatVector
instance asVector
- Parameters:
floatVector
- instance to wrap- Returns:
- Immutable
Vector
backed byFloatVector
-
ssVec
Wrapsfloat[]
asVector
- Parameters:
floats
- array to wrap- Returns:
- Immutable
Vector
backed byfloat[]
-
ssVec
public static com.numericalmethod.suanshu.vector.doubles.Vector ssVec(float[] floats) Wrapsfloat[]
asVector
- Parameters:
floats
- array to wrap- Returns:
- Immutable
Vector
backed byfloat[]
-
ssVec
WrapsLongVector
instance asVector
- Parameters:
longVector
- instance to wrap- Returns:
- Immutable
Vector
backed byLongVector
-
ssVec
Wrapslong[]
asVector
- Parameters:
longs
- array to wrap- Returns:
- Immutable
Vector
backed bylong[]
-
ssVec
public static com.numericalmethod.suanshu.vector.doubles.Vector ssVec(long[] longs) Wrapslong[]
asVector
- Parameters:
longs
- array to wrap- Returns:
- Immutable
Vector
backed bylong[]
-
ssVec
WrapsDoubleVector
instance asVector
- Parameters:
doubleVector
- instance to wrap- Returns:
- Immutable
Vector
backed byDoubleVector
-
ssVec
Wrapsdouble[]
asVector
- Parameters:
doubles
- array to wrap- Returns:
- Immutable
Vector
backed bydouble[]
-
ssVec
public static com.numericalmethod.suanshu.vector.doubles.Vector ssVec(double[] doubles) Wrapsdouble[]
asVector
- Parameters:
doubles
- array to wrap- Returns:
- Immutable
Vector
backed bydouble[]
-
ssVec
WrapsNumber
[] asVector
- Parameters:
numbers
- array to wrap- Returns:
- Immutable
Vector
backed byNumber
[]
-
ssVec
public static <T extends Number> com.numericalmethod.suanshu.vector.doubles.Vector ssVec(ObjectVector<T> vector) WrapsObjectVector
asVector
- Type Parameters:
T
- type of elements invector
- Parameters:
vector
- array to wrap- Returns:
- Immutable
Vector
backed byObjectVector
- Throws:
RequirementFailure
- ifvector
contains elements other thanNumber
or any of its implementations.
-
ssMat
WrapsByteVector
... asMatrix
This method assumesbyteVectors
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
byteVectors
- array to wrap- Returns:
- Immutable
Matrix
backed byByteVector
...
-
ssMat
public static com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(byte[]... byteColumnsData) Wrapsbyte[]...
asMatrix
This method assumesbyteColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
byteColumnsData
- 2D array to wrap- Returns:
- Immutable
Matrix
backed bybyte[]...
-
ssMat
WrapsShortVector
... asMatrix
This method assumesshortVectors
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
shortVectors
- array to wrap- Returns:
- Immutable
Matrix
backed byShortVector
...
-
ssMat
public static com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(short[]... shortColumnsData) Wrapsshort[]...
asMatrix
This method assumesshortColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
shortColumnsData
- 2D array to wrap- Returns:
- Immutable
Matrix
backed byshort[]...
-
ssMat
WrapsIntVector
... asMatrix
This method assumesintVectors
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
intVectors
- array to wrap- Returns:
- Immutable
Matrix
backed byIntVector
...
-
ssMat
public static com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(int[]... intColumnsData) Wrapsint[]...
asMatrix
This method assumesintColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
intColumnsData
- 2D array to wrap- Returns:
- Immutable
Matrix
backed byint[]...
-
ssMat
WrapsFloatVector
... asMatrix
This method assumesfloatVectors
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
floatVectors
- array to wrap- Returns:
- Immutable
Matrix
backed byFloatVector
...
-
ssMat
public static com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(float[]... floatColumnsData) Wrapsfloat[]...
asMatrix
. This method assumesfloatColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
floatColumnsData
- 2D array to wrap- Returns:
- Immutable
Matrix
backed byfloat[]...
-
ssMat
WrapsLongVector
... asMatrix
This method assumeslongVectors
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
longVectors
- array to wrap- Returns:
- Immutable
Matrix
backed byLongVector
...
-
ssMat
public static com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(long[]... longColumnsData) Wrapslong[]...
asMatrix
This method assumeslongColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
longColumnsData
- 2D array to wrap- Returns:
- Immutable
Matrix
backed bylong[]...
-
ssMat
public static com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(DoubleVector... doubleVectors) WrapsDoubleVector
... asMatrix
This method assumesdoubleVectors
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
doubleVectors
- array to wrap- Returns:
- Immutable
Matrix
backed byDoubleVector
...
-
ssMat
public static com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(double[]... doubleColumnsData) Wrapsdouble[]...
asMatrix
This method assumesdoubleColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
doubleColumnsData
- 2D array to wrap- Returns:
- Immutable
Matrix
backed bydouble[]...
-
ssMat
public static com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(Number[]... numberColumnsData) WrapNumber
[]... asMatrix
This method assumesnumberColumnsData
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
numberColumnsData
- 2D array to wrap- Returns:
- Immutable
Matrix
backed byNumber
[]...
-
ssMat
WrapsVector
... asMatrix
This method assumesvectors
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Parameters:
vectors
- array to wrap- Returns:
- Immutable
Matrix
backed byVector
... - Throws:
UnsupportedOperationException
- if any of the arrays invectors
does not belong to {ByteVector
,ShortVector
,IntVector
,FloatVector
,LongVector
,DoubleVector
,ObjectVector
<? extends
}Number
>
-
ssMat
public static <T extends Vector> com.numericalmethod.suanshu.matrix.doubles.Matrix ssMat(ObjectVector<T> objectVector) WrapsObjectVector
... asMatrix
This method assumesdhVector
to be in unconventional [columns][rows] structure, where first dimension denotes columns and second dimension denotes rows.- Type Parameters:
T
- - type of elements indhVector
- Parameters:
objectVector
- vector to wrap- Returns:
- Immutable
Matrix
backed byObjectVector
... - Throws:
UnsupportedOperationException
- if any of the vectors inobjectVector
does not belong to {ByteVector
,ShortVector
,IntVector
,FloatVector
,LongVector
,DoubleVector
,ObjectVector
<? extends
}Number
>
-