Returns a new FloatComplexVector instance pointing to the subset of this vector's data indicated by the given Slice.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public FloatComplexVector this[
	Slice slice
] { get; set; }
Visual Basic (Declaration)
Public Default Property Item ( _
	slice As Slice _
) As FloatComplexVector
Visual C++
public:
virtual property FloatComplexVector^ default[Slice^ slice] {
	FloatComplexVector^ get (Slice^ slice) sealed;
	void set (Slice^ slice, FloatComplexVector^ value) sealed;
}

Implements

ISliceable<(Of <(T>)>)..::.Item[([(Slice])])

Remarks

Data is not copied. Both vectors reference the same data. Use with caution.

Examples

The following example illustrates how a Slice views a subset of a vector's data:
CopyC#
FloatComplexVector v1 = new FloatComplexVector( "(0,5) (1,2) (3,4) (5,6) (7,8) (9,10)" );
Slice s = new Slice( 1, 3, 2 );
FloatComplexVector v2 = v1[s];
System.Console.WriteLine( v2.ToString() );

Output...
(1,2) (5,6) (9,10)

See Also