Click or drag to resize

FloatComplexVectorItem(Slice) Property

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: 7.4
Syntax
public FloatComplexVector this[
	Slice slice
] { get; set; }

Parameters

slice  Slice
 

Property Value

FloatComplexVector

Implements

ISliceableTItemSlice
Remarks
Data is not copied. Both vectors reference the same data. Use with caution.
Example
The following example illustrates how a Slice views a subset of a vector's data:
C#
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