Table of Contents

Struct SliceDef

Namespace
NumSharp
Assembly
NumSharp.dll
public struct SliceDef
Inherited Members
Extension Methods

Constructors

SliceDef(int)

Backwards-compatible constructor accepting int index.

public SliceDef(int idx)

Parameters

idx int

SliceDef(int, int, int)

Backwards-compatible constructor accepting int parameters.

public SliceDef(int start, int step, int count)

Parameters

start int
step int
count int

SliceDef(long)

public SliceDef(long idx)

Parameters

idx long

SliceDef(long, long, long)

public SliceDef(long start, long step, long count)

Parameters

start long
step long
count long

SliceDef(string)

(Start>>Step*Count)

public SliceDef(string def)

Parameters

def string

Fields

Count

public long Count

Field Value

long

Start

public long Start

Field Value

long

Step

public long Step

Field Value

long

Properties

IsIndex

public bool IsIndex { get; }

Property Value

bool

Methods

Invert()

reverts the order of the slice sequence

public SliceDef Invert()

Returns

SliceDef

Merge(SliceDef)

Merge calculates the resulting one-time slice on the original data if it is sliced repeatedly

public SliceDef Merge(SliceDef other)

Parameters

other SliceDef

Returns

SliceDef

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.