DateVector Structure

Represents a dense vector of Austra dates, of arbitrary size.

Definition

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+44e7797405725ef3cf24b3ff0eba94ce6c649601
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
Inheritance
Object    ValueType    DateVector
Implements
IIndexable, ISafeIndexed, IVector, IEnumerableDate, IEnumerable, IEquatableDateVector, IFormattable, IAdditionOperatorsDateVector, NVector, DateVector, IAdditionOperatorsDateVector, Int32, DateVector, IEqualityOperatorsDateVector, DateVector, Boolean, ISubtractionOperatorsDateVector, DateVector, NVector, ISubtractionOperatorsDateVector, Int32, DateVector

Constructors

DateVector(Date)Initializes a vector from an array.
DateVector(DateVector)Creates a vector by concatenating many vectors.
DateVector(Date, DateVector)Creates a vector by concatenating a new value with a suffix vector.
DateVector(DateVector, Date)Creates a vector by concatenating a prefix vector with a new value.
DateVector(DateVector, DateVector)Creates a vector by concatenating two vectors.
DateVector(Int32, Date)Initializes a vector from a scalar.
DateVector(Int32, FuncInt32, Date)Creates a vector using a formula to fill its items.
DateVector(Int32, FuncInt32, DateVector, Date)Creates a vector using a formula to fill its items.
DateVector(Int32, Date, Date)Creates a vector filled with a uniform distribution generator.

Properties

FirstGets the first value in the vector.
IsInitializedHas the vector been properly initialized?
ItemIndexGets or sets the component at a given index.
ItemInt32Gets or sets the component at a given index.
ItemRangeExtracts a slice from the vector.
LastGets the last value in the vector.
LengthGets the dimensions of the vector.

Methods

AllChecks whether the predicate is satisfied by all items.
AnyChecks whether the predicate is satisfied by at least one item.
CloneCreates an identical vector.
ContainsChecks if the vector contains the given value.
DistinctReturns a new vector with the distinct values in the original one.
Equals(DateVector)Checks if the provided argument is a vector with the same values.
Equals(Object)Checks if the provided argument is a vector with the same values.
(Overrides ValueTypeEquals(Object))
FilterCreates a new vector by filtering items with the given predicate.
FilterMapCreates a new vector by filtering and mapping at the same time.
Find(Date)Returns all indexes containing ocurrences of a value.
Find(FuncDate, Boolean)Returns all indexes satisfying a condition.
GetEnumeratorRetrieves an enumerator to iterate over components.
GetHashCodeReturns the hashcode for this vector.
(Overrides ValueTypeGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOf(Date)Returns the zero-based index of the first occurrence of a value.
IndexOf(Date, Int32)Returns the zero-based index of the first occurrence of a value.
Map Creates a new vector by transforming each item with the given function.
MaximumGets the item with the maximum value.
MinimumGets the item with the minimum value.
ReduceCreates an aggregate value by applying the reducer to each item.
ReverseCreates a reversed copy of the vector.
SafeThis Safe access to the vector's components. If the index is out of range, a zero is returned.
SortReturns a new vector with sorted values.
SortDescendingReturns a new vector with sorted values.
ToStringGets a textual representation of this vector.
(Overrides ValueTypeToString)
ToString(String, IFormatProvider)Gets a textual representation of this vector.
ZipCombines the common prefix of two vectors.

Operators

Addition(DateVector, NVector)Adds a vector of integers to a vector of dates.
Addition(DateVector, Int32)Adds a scalar to a vector.
Addition(Int32, DateVector)Adds a scalar to a vector.
Equality(DateVector, DateVector)Compares two vectors for equality.
(DateVector to Date)Explicit conversion from vector to array.
(Date to DateVector)Implicit conversion from an array to a vector.
Inequality(DateVector, DateVector)Compares two vectors for inequality.
Subtraction(DateVector, Date)Subtracts a scalar date from a vector.
Subtraction(DateVector, DateVector)Subtracts two vectors.
Subtraction(DateVector, Int32)Subtracts a scalar from a vector.

See Also