|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.vector.doubles.dense.operation.CreateVector
public class CreateVector
CreateVector a new vector from an existing vector. These are the utility functions to create a vector from existing ones.
| Method Summary | |
|---|---|
static Vector |
concat(Vector... vectors)
Take an array of vectors and concatenate them into one vector. |
static Vector |
diagonal(Matrix A)
Take the diagonal of a matrix. |
static Vector |
foreach(Vector vector,
UnivariateRealFunction f)
Produce a new vector in which each entry is the result of applying the function to the corresponding entry of this vector. |
static Vector |
subDiagonal(Matrix A)
Take the sub-diagonal of a matrix. |
static Vector |
subVector(Vector v,
int from,
int to)
Get a sub-vector from a vector v. |
static Vector |
superDiagonal(Matrix A)
Take the super-diagonal of a matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Vector concat(Vector... vectors)
vectors - an array of vector, e.g., [v1, v2, v3, ...]
c(v1, v2, v3, ...)
public static Vector foreach(Vector vector,
UnivariateRealFunction f)
function to the corresponding entry of this vector.
This vector is not changed after this method call.
f - the function f to be applied to each entry of this vectorvector - a vector
public static Vector subVector(Vector v,
int from,
int to)
v.
v - the vectorfrom - the beginning indexto - the ending index
v[from : to]public static Vector diagonal(Matrix A)
A - a matrix
Aipublic static Vector superDiagonal(Matrix A)
A - a matrix
Ai,i+1public static Vector subDiagonal(Matrix A)
A - a matrix
Ai+1,i
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||