Click or drag to resize

DateVector Structure

Represents a dense vector of Austra dates, of arbitrary size.
Inheritance Hierarchy
SystemObject
  SystemValueType
    Austra.LibraryDateVector

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+44e7797405725ef3cf24b3ff0eba94ce6c649601
Syntax
C#
public readonly struct DateVector : IFormattable, 
	IEnumerable<Date>, IEnumerable, IEquatable<DateVector>, 
	IEqualityOperators<DateVector, DateVector, bool>, IAdditionOperators<DateVector, NVector, DateVector>, 
	IAdditionOperators<DateVector, int, DateVector>, ISubtractionOperators<DateVector, DateVector, NVector>, 
	ISubtractionOperators<DateVector, int, DateVector>, ISafeIndexed, IVector, 
	IIndexable

The DateVector type exposes the following members.

Constructors
 NameDescription
Public methodDateVector(Date)Initializes a vector from an array.
Public methodDateVector(DateVector)Creates a vector by concatenating many vectors.
Public methodDateVector(Date, DateVector)Creates a vector by concatenating a new value with a suffix vector.
Public methodDateVector(DateVector, Date)Creates a vector by concatenating a prefix vector with a new value.
Public methodDateVector(DateVector, DateVector)Creates a vector by concatenating two vectors.
Public methodDateVector(Int32, Date)Initializes a vector from a scalar.
Public methodDateVector(Int32, FuncInt32, Date)Creates a vector using a formula to fill its items.
Public methodDateVector(Int32, FuncInt32, DateVector, Date)Creates a vector using a formula to fill its items.
Public methodDateVector(Int32, Date, Date)Creates a vector filled with a uniform distribution generator.
Top
Properties
 NameDescription
Public propertyFirstGets the first value in the vector.
Public propertyIsInitializedHas the vector been properly initialized?
Public propertyItemIndexGets or sets the component at a given index.
Public propertyItemInt32Gets or sets the component at a given index.
Public propertyItemRangeExtracts a slice from the vector.
Public propertyLastGets the last value in the vector.
Public propertyLengthGets the dimensions of the vector.
Top
Methods
 NameDescription
Public methodAllChecks whether the predicate is satisfied by all items.
Public methodAnyChecks whether the predicate is satisfied by at least one item.
Public methodCloneCreates an identical vector.
Public methodContainsChecks if the vector contains the given value.
Public methodDistinctReturns a new vector with the distinct values in the original one.
Public methodEquals(DateVector)Checks if the provided argument is a vector with the same values.
Public methodEquals(Object)Checks if the provided argument is a vector with the same values.
(Overrides ValueTypeEquals(Object))
Public methodFilterCreates a new vector by filtering items with the given predicate.
Public methodFilterMapCreates a new vector by filtering and mapping at the same time.
Public methodFind(Date)Returns all indexes containing ocurrences of a value.
Public methodFind(FuncDate, Boolean)Returns all indexes satisfying a condition.
Public methodGetEnumeratorRetrieves an enumerator to iterate over components.
Public methodGetHashCodeReturns the hashcode for this vector.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOf(Date)Returns the zero-based index of the first occurrence of a value.
Public methodIndexOf(Date, Int32)Returns the zero-based index of the first occurrence of a value.
Public methodMap Creates a new vector by transforming each item with the given function.
Public methodMaximumGets the item with the maximum value.
Public methodMinimumGets the item with the minimum value.
Public methodReduceCreates an aggregate value by applying the reducer to each item.
Public methodReverseCreates a reversed copy of the vector.
Public methodSafeThis Safe access to the vector's components. If the index is out of range, a zero is returned.
Public methodSortReturns a new vector with sorted values.
Public methodSortDescendingReturns a new vector with sorted values.
Public methodToStringGets a textual representation of this vector.
(Overrides ValueTypeToString)
Public methodToString(String, IFormatProvider)Gets a textual representation of this vector.
Public methodZipCombines the common prefix of two vectors.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(DateVector, NVector)Adds a vector of integers to a vector of dates.
Public operatorStatic memberAddition(DateVector, Int32)Adds a scalar to a vector.
Public operatorStatic memberAddition(Int32, DateVector)Adds a scalar to a vector.
Public operatorStatic memberEquality(DateVector, DateVector)Compares two vectors for equality.
Public operatorStatic member(DateVector to Date)Explicit conversion from vector to array.
Public operatorStatic member(Date to DateVector)Implicit conversion from an array to a vector.
Public operatorStatic memberInequality(DateVector, DateVector)Compares two vectors for inequality.
Public operatorStatic memberSubtraction(DateVector, Date)Subtracts a scalar date from a vector.
Public operatorStatic memberSubtraction(DateVector, DateVector)Subtracts two vectors.
Public operatorStatic memberSubtraction(DateVector, Int32)Subtracts a scalar from a vector.
Top
See Also