|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netlib.util.MatConv
public class MatConv
Conversions between one-dimensional linearized arrays and two-dimensional arays.
This file is part of the Fortran-to-Java (f2j) system, developed at the University of Tennessee.
This class contains methods for converting between the linearized arrays used by f2j-generated code and the more natural Java-style two-dimensional arrays.
Constructor Summary | |
---|---|
MatConv()
|
Method Summary | |
---|---|
static void |
copyOneDintoTwoD(double[][] mat,
double[] vec)
Copies a linearized array into an already allocated two-dimensional matrix. |
static void |
copyOneDintoTwoD(float[][] mat,
float[] vec)
Copies a linearized array into an already allocated two-dimensional matrix. |
static void |
copyOneDintoTwoD(int[][] mat,
int[] vec)
Copies a linearized array into an already allocated two-dimensional matrix. |
static double[][] |
doubleOneDtoTwoD(double[] vec,
int ld)
Convert a double precision linearized one-dimensional array to a two-dimensional array. |
static double[] |
doubleTwoDtoOneD(double[][] m)
Convert a double precision two-dimensional array to a linearized one-dimensional array. |
static float[][] |
floatOneDtoTwoD(float[] vec,
int ld)
Convert a single precision linearized one-dimensional array to a two-dimensional array. |
static float[] |
floatTwoDtoOneD(float[][] m)
Convert a single precision two-dimensional array to a linearized one-dimensional array. |
static int[][] |
intOneDtoTwoD(int[] vec,
int ld)
Convert an integer linearized one-dimensional array to a two-dimensional array. |
static int[] |
intTwoDtoOneD(int[][] m)
Convert an integer two-dimensional array to a linearized one-dimensional array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatConv()
Method Detail |
---|
public static double[] doubleTwoDtoOneD(double[][] m)
m
- the matrix to be converted
public static double[][] doubleOneDtoTwoD(double[] vec, int ld)
vec
- the linearized array to be convertedld
- leading dimension of the array
public static float[] floatTwoDtoOneD(float[][] m)
m
- the matrix to be converted
public static float[][] floatOneDtoTwoD(float[] vec, int ld)
vec
- the linearized array to be convertedld
- leading dimension of the array
public static int[] intTwoDtoOneD(int[][] m)
m
- the matrix to be converted
public static int[][] intOneDtoTwoD(int[] vec, int ld)
vec
- the linearized array to be convertedld
- leading dimension of the array
public static void copyOneDintoTwoD(double[][] mat, double[] vec)
mat
- destination matrixvec
- source arraypublic static void copyOneDintoTwoD(float[][] mat, float[] vec)
mat
- destination matrixvec
- source arraypublic static void copyOneDintoTwoD(int[][] mat, int[] vec)
mat
- destination matrixvec
- source array
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |