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); }