Click or drag to resize

NSequence Class

Represents any sequence returning integer values.
Inheritance Hierarchy
SystemObject
  Austra.LibraryBaseSequenceInt32, NSequence
    Austra.LibrarySequenceInt32, NSequence
      Austra.LibraryNSequence

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.7.0+b25929339ea1019e260029cf0ebd18b3a0ce2443
Syntax
C#
public abstract class NSequence : Sequence<int, NSequence>, 
	IFormattable, IEquatable<NSequence>, IEqualityOperators<NSequence, NSequence, bool>, 
	IAdditionOperators<NSequence, NSequence, NSequence>, IAdditionOperators<NSequence, int, NSequence>, 
	ISubtractionOperators<NSequence, NSequence, NSequence>, ISubtractionOperators<NSequence, int, NSequence>, 
	IMultiplyOperators<NSequence, NSequence, int>, IMultiplyOperators<NSequence, int, NSequence>, 
	IDivisionOperators<NSequence, int, NSequence>, IUnaryNegationOperators<NSequence, NSequence>, 
	IPointwiseOperators<NSequence>, IIndexable

The NSequence type exposes the following members.

Properties
 NameDescription
Public propertyItemIndexGets the value at the specified index.
(Overrides BaseSequenceT, TSelfItemIndex)
Public propertyItemInt32Gets the value at the specified index.
(Inherited from BaseSequenceT, TSelf)
Public propertyItemRangeGets a range from the sequence.
(Overrides BaseSequenceT, TSelfItemRange)
Top
Methods
 NameDescription
Public methodAllChecks whether the predicate is satisfied by all items.
(Inherited from BaseSequenceT, TSelf)
Public methodAnyChecks whether the predicate is satisfied by at least one item.
(Inherited from BaseSequenceT, TSelf)
Public methodClonePerforms a shallow copy of the sequence and performs a reset.
(Inherited from BaseSequenceT, TSelf)
Public methodContainsChecks if the sequence contains the given value.
(Inherited from BaseSequenceT, TSelf)
Public methodStatic memberCreate(NVector)Creates a sequence from a vector.
Public methodStatic memberCreate(Int32, Int32)Creates a sequence from a range.
Public methodStatic memberCreate(Int32, Int32, Int32)Creates a sequence from a range and a step.
Public methodDistinctGets only the unique values in this sequence.
(Overrides BaseSequenceT, TSelfDistinct)
Public methodEquals(NSequence)Checks if two sequence has the same length and arguments.
Public methodEquals(Object)Checks if the provided argument is a sequence with the same values.
(Overrides ObjectEquals(Object))
Public methodFilterTransform a sequence acording to the predicate passed as parameter.
(Overrides BaseSequenceT, TSelfFilter(FuncT, Boolean))
Public methodFirstGets the first value in the sequence.
(Inherited from BaseSequenceT, TSelf)
Public methodGetHashCodeReturns the hashcode for this vector.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLastGets the last value in the sequence.
(Inherited from BaseSequenceT, TSelf)
Public methodLengthGets the total number of values in the sequence.
(Inherited from BaseSequenceT, TSelf)
Public methodLongProductGets the product of all the values in the sequence as a long integer.
Public methodMapTransform a sequence acording to the function passed as parameter.
(Overrides BaseSequenceT, TSelfMap(FuncT, T))
Public methodMapRealCreates a real sequence acording to the function passed as parameter.
Public methodMaxGets the maximum value from the sequence.
Public methodMinGets the minimum value from the sequence.
Public methodNextGets the next item in the sequence.
(Inherited from BaseSequenceT, TSelf)
Public methodPlotCreates a plot for this sequence.
Public methodPointwiseDivideItem by item division of sequences.
(Overrides SequenceT, TSelfPointwiseDivide(TSelf))
Public methodPointwiseMultiplyItem by item multiplication of two sequences.
(Overrides SequenceT, TSelfPointwiseMultiply(TSelf))
Public methodProductGets the product of all the values in the sequence.
(Inherited from SequenceT, TSelf)
Public methodStatic memberRandom(Int32)Creates a sequence from random values.
Public methodStatic memberRandom(Int32, Int32)Creates a sequence from random values.
Public methodStatic memberRandom(Int32, Int32, Int32)Creates a sequence from random values inside an interval.
Public methodReduceReduces a sequence to a single number.
(Inherited from BaseSequenceT, TSelf)
Public methodStatic memberRepeatCreates a sequence by repeating a value a given number of times.
Public methodResetResets the sequence.
(Inherited from BaseSequenceT, TSelf)
Public methodSortSorts the content of this sequence.
Public methodSortDescendingSorts the content of this sequence in descending order.
Public methodStatsGets all statistics from the values in the secuence.
Public methodSumGets the sum of all the values in the sequence.
(Inherited from SequenceT, TSelf)
Public methodToStringEvaluated the sequence and formats it like a NVector.
(Overrides ObjectToString)
Public methodToString(String, IFormatProvider)Gets a textual representation of this sequence.
Public methodToVectorConverts this sequence into an integer vector.
Public methodStatic memberUnfold(Int32, Int32, FuncInt32, Int32, Int32)Creates a sequence by unfolding an initial state by a function.
Public methodStatic memberUnfold(Int32, Int32, FuncInt32, Int32)Creates a sequence by unfolding an initial state by a function.
Public methodStatic memberUnfold(Int32, Int32, Int32, FuncInt32, Int32, Int32)Creates a sequence by unfolding an initial state by a function.
Public methodUntil(FuncInt32, Boolean)Get the initial values of a sequence until a predicate is satisfied.
(Overrides BaseSequenceT, TSelfUntil(FuncT, Boolean))
Public methodUntil(Int32)Get the initial values of a sequence until a value is found.
(Overrides BaseSequenceT, TSelfUntil(T))
Public methodWhileGet the initial values of a sequence that satisfy a predicate.
(Overrides BaseSequenceT, TSelfWhile(FuncT, Boolean))
Public methodZipJoins the common part of two sequence with the help of a lambda.
(Overrides BaseSequenceT, TSelfZip(TSelf, FuncT, T, T))
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Int32, NSequence)Adds a sequence to a scalar value.
Public operatorStatic memberAddition(NSequence, NSequence)Adds the common part of two sequences.
Public operatorStatic memberAddition(NSequence, Int32)Adds a scalar value to a sequence.
Public operatorStatic memberDivision(NSequence, Int32)Divides a sequence by a scalar value.
Public operatorStatic memberEquality(NSequence, NSequence)Compares two vectors for equality.
Public operatorStatic memberInequality(NSequence, NSequence)Compares two vectors for inequality.
Public operatorStatic memberMultiply(Int32, NSequence)Multiplies a scalar value by a sequence.
Public operatorStatic memberMultiply(NSequence, NSequence)Calculates the scalar product of the common part of two sequences.
Public operatorStatic memberMultiply(NSequence, Int32)Multiplies a sequence by a scalar value.
Public operatorStatic memberSubtraction(Int32, NSequence)Subtracts a sequence from a scalar.
Public operatorStatic memberSubtraction(NSequence, NSequence)Subtracts the common part of two sequences.
Public operatorStatic memberSubtraction(NSequence, Int32)Subtracts a scalar from a sequence.
Public operatorStatic memberUnaryNegation(NSequence)Negates a sequence.
Top
See Also