Generic |
public class GenericVector<T> : ICloneable, IFormattable, IVector<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable where T : Object, IEquatable<T>
The GenericVectorT type exposes the following members.
Name | Description | |
---|---|---|
GenericVectorT | Constructor for an empty vector, i.e. a vector with zero elements | |
GenericVectorT(T) | Constructor from an array | |
GenericVectorT(GenericVectorT) | Constructor for FloatVector to deep copy another FloatVector | |
GenericVectorT(IList) | Constructor from an IList | |
GenericVectorT(Int32) | Constructor with components set to the default value. | |
GenericVectorT(IReadOnlyListT) | Constructor from an array | |
GenericVectorT(Int32, T) | Constructor with elements set to a value. |
Name | Description | |
---|---|---|
Count | ||
ItemBoolean | ||
ItemInt32 | ||
ItemInt32 |
Name | Description | |
---|---|---|
AsWrapperFor | Creates a vector, that is a wrapper of the provided array. The array is used directly. | |
Clear | Sets all elements of the vector back to the default value. | |
Clone | Clone (deep copy) a FloatVector variable | |
Contains | Check if any of the vector's elements equals a given value. | |
CopyFrom(GenericVectorT) | Copies the data from another vector into this instance. | |
CopyFrom(IReadOnlyListT) | Copies the data from another vector into this instance. | |
Equals | Check if FloatVector variable is the same as another object (Overrides ObjectEquals(Object)) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
GetEnumerator | ||
GetHashCode | Return the Hashcode for the FloatVector (Overrides ObjectGetHashCode) | |
GetInternalData | Retrieves a reference to the public array. Use with care, and only as local variables. | |
GetSubVector | Returns a subvector of this vector. | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
IndexOf | Return the index of the vector's first element that equals a given value. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
Resize | Resizes the vector. The previous element data are lost. | |
Swap | Swap data in this vector with another vector. | |
ToArray | Returns an array of data copyied (not used directly) from this instance. | |
ToString | A string representation of this FloatVector. (Overrides ObjectToString) | |
ToString(IFormatProvider) | A string representation of this FloatVector. | |
ToString(String) | A string representation of this FloatVector. | |
ToString(String, IFormatProvider) | A string representation of this FloatVector. |
Name | Description | |
---|---|---|
ElementsAtT | (Defined by VectorMath) | |
ElementsWhereT | (Defined by VectorMath) | |
ElementsWhereT | (Defined by VectorMath) | |
FirstOrT |
Returns the first value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions) | |
FlattenFromRootToLeavesT |
Converts a recursive data structure into a flat list. The root element is enumerated before its corresponding child element(s).
(Defined by EnumerableExtensions) | |
ForEachDoT |
Executes an action for each element of the sequence.
(Defined by EnumerableExtensions) | |
GetPossibleStepsToMoveTowardsHigherIndicesT |
Return the number of steps that selected items can be moved towards higher indices. The selected item with the highest index determines that value.
(Defined by ListExtensions) | |
GetPossibleStepsToMoveTowardsLowerIndicesT |
Return the number of steps that selected items can be moved towards lower indices. The selected item with the lowest index determines that value.
(Defined by ListExtensions) | |
HasSingleElementT |
Determines whether the specified enumeration has exactly one element.
(Defined by EnumerableExtensions) | |
IndexOfT |
Gets the index of an item in a enumeration or list.
(Defined by ListExtensions) | |
IndexOfFirstT |
Gets the index the of first item in list that fulfills the predicate predicate (Defined by ListExtensions) | |
IndexOfFirstT |
Gets the index the of first item in list that fulfills the predicate predicate (Defined by ListExtensions) | |
IndexOfMaxT | Return the index of the element with the maximum value in an enumerable.
If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned. (Defined by EnumerableExtensions) | |
IndexOfMinT | Return the index of the element with the minimum value in an enumerable.
If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned. (Defined by EnumerableExtensions) | |
IndicesInt32AndValuesWhereT |
Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions) | |
IndicesInt32AndValuesWhereT |
Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions) | |
IndicesInt32WhereT |
Returns the indices of the elements which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions) | |
IndicesInt32WhereT |
Returns the indices of the elements which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions) | |
IndicesOfMinMaxT | Return the index of the element with the minimum value in an enumerable.
If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned. (Defined by EnumerableExtensions) | |
IsEmptyT |
Determines whether the specified enumeration is empty.
(Defined by EnumerableExtensions) | |
JoinConditionalT, T2 |
Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions) | |
JoinConditionalT, T2, TResult |
Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions) | |
LastOrT |
Returns the last value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions) | |
MaxElementT, M |
Gets the element of a IEnumerabe that evaluates by means of a conversion function to the maximal value.
This is different from Select(x => conversion(x)).Max() insofar as it not returns the maximum value, but the original element x which converts to the maximum value.
(Defined by EnumerableExtensions) | |
MaxOrDefaultT, M |
Evaluates the maximum of a enumeration of elements, or returns a default value if the series is empty.
(Defined by EnumerableExtensions) | |
SelectCombinationT |
Select a random combination, without repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics) | |
SelectCombinationWithRepetitionT |
Select a random combination, with repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics) | |
SelectPermutationT |
Select a random permutation from a data sequence by returning the provided data in random order.
Implemented using Fisher-Yates Shuffling.
(Defined by Combinatorics) | |
SelectVariationT |
Select a random variation, without repetition, from a data sequence by randomly selecting k elements in random order.
Implemented using partial Fisher-Yates Shuffling.
(Defined by Combinatorics) | |
SelectVariationWithRepetitionT |
Select a random variation, with repetition, from a data sequence by randomly selecting k elements in random order.
(Defined by Combinatorics) | |
TakeAllButLastT |
Takes all elements of the enumeration except the last element.
(Defined by EnumerableExtensions) | |
ThisOrEmptyT |
Returns either the provided enumeration, or if it is null, an empty enumeration.
(Defined by EnumerableExtensions) | |
TryGetFirstAndLastT |
Returns true and the first and last value of the enumeration, or, if the enumeration is empty, returns false.
(Defined by EnumerableExtensions) | |
TryGetSingleElementT |
Try to get the one and only element of the collection.
(Defined by EnumerableExtensions) |