public GetVector ( int index, int from, int to, VectorType type ) : |
||
index | int | Zero-based index of the. |
from | int | Source for the. |
to | int | to. |
type | VectorType | The type. |
리턴 |
public Vector GetVector(int index, int from, int to, VectorType type)
{
double[] v = (double[])Array.CreateInstance(typeof(double), to - from + 1);
for (int i = from, j = 0; i < to + 1; i++, j++)
v[j] = this[index, type][i];
return new Vector(v);
}