Date |
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.
| Name | Description | |
|---|---|---|
| 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. |
| Name | Description | |
|---|---|---|
| First | Gets the first value in the vector. | |
| IsInitialized | Has the vector been properly initialized? | |
| ItemIndex | Gets or sets the component at a given index. | |
| ItemInt32 | Gets or sets the component at a given index. | |
| ItemRange | Extracts a slice from the vector. | |
| Last | Gets the last value in the vector. | |
| Length | Gets the dimensions of the vector. |
| Name | Description | |
|---|---|---|
| All | Checks whether the predicate is satisfied by all items. | |
| Any | Checks whether the predicate is satisfied by at least one item. | |
| Clone | Creates an identical vector. | |
| Contains | Checks if the vector contains the given value. | |
| Distinct | Returns 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)) | |
| Filter | Creates a new vector by filtering items with the given predicate. | |
| FilterMap | Creates 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. | |
| GetEnumerator | Retrieves an enumerator to iterate over components. | |
| GetHashCode | Returns the hashcode for this vector. (Overrides ValueTypeGetHashCode) | |
| GetType | Gets 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. | |
| Maximum | Gets the item with the maximum value. | |
| Minimum | Gets the item with the minimum value. | |
| Reduce | Creates an aggregate value by applying the reducer to each item. | |
| Reverse | Creates 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. | |
| Sort | Returns a new vector with sorted values. | |
| SortDescending | Returns a new vector with sorted values. | |
| ToString | Gets a textual representation of this vector. (Overrides ValueTypeToString) | |
| ToString(String, IFormatProvider) | Gets a textual representation of this vector. | |
| Zip | Combines the common prefix of two vectors. |
| Name | Description | |
|---|---|---|
| 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. |