Click or drag to resize

Vec Methods

The Vec type exposes the following members.

Methods
 NameDescription
Public Extension MethodAbsTGets the absolute values of the array items.
Public Extension MethodAddT(SpanT, SpanT)Pointwise inplace sum of two equally sized spans.
Public Extension MethodAddT(SpanT, T, SpanT)Pointwise addition of a scalar to a span.
Public Extension MethodAddT(SpanT, SpanT, SpanT)Pointwise sum of two equally sized spans.
Public Extension MethodAllTChecks whether the predicate is satisfied by all items.
Public Extension MethodAMaxGets the item in a span with the maximum absolute value.
Public Extension MethodAMinGets the item in a span with the minimum absolute value.
Public Extension MethodAnyTChecks whether the predicate is satisfied by at least one item.
Public Extension MethodCreateDiagonalCreates a diagonal matrix given its diagonal.
Public methodStatic memberCreateIdentityCreates an identity matrix given a size.
Public Extension MethodCreateRandom(SpanDouble, NormalRandom)Initializes a span with normal random values.
Public Extension MethodCreateRandom(SpanDouble, Random)Initializes a span with random values.
Public Extension MethodCreateRandom(SpanDouble, Random, Double, Double)Initializes a span with random values.
Public Extension MethodDeconstructDeconstruct a complex number into its real and imaginary parts.
Public Extension MethodDetGets the product of the cells in the main diagonal.
Public Extension MethodDiagonalGets the main diagonal of a 1D-array.
Public Extension MethodDistanceComputes the maximum difference between two arrays.
Public Extension MethodDistinctTReturns a new array with the distinct values in the span.
Public Extension MethodDiv(SpanInt32, Int32)Pointwise division of a span by an integer.
Public Extension MethodDivT(SpanT, SpanT)Pointwise division of two equally sized spans.
Public Extension MethodDot(SpanDouble, SpanDouble)Calculates the dot product of two spans.
Public Extension MethodDot(SpanInt32, SpanInt32)Calculates the dot product of two spans.
Public Extension MethodEqsTChecks two arrays for equality.
Public Extension MethodFilterTCreates a new array by filtering items with the given predicate.
Public Extension MethodFilterMapTCreates a new vector by filtering and mapping at the same time.
Public Extension MethodIndexOfTReturns the zero-based index of the first occurrence of a value.
Public Extension MethodMapT Creates a new array by transforming each item with the given function.
Public Extension MethodMaxTGets the item with the maximum value in the array.
Public Extension MethodMinTGets the item with the minimum value in the array.
Public Extension MethodMulT(SpanT, SpanT)Pointwise multiplication of two equally sized spans.
Public Extension MethodMulT(SpanT, T, SpanT)Pointwise multiplication of a span and a scalar.
Public Extension MethodMulAddStore Multiplies a span by a scalar and sums the result to a memory location.
Public Extension MethodMulNegStore Multiplies a span by a scalar and subtracts the result to a memory location.
Public Extension MethodNegT(SpanT)Inplace pointwise negation of a span.
Public Extension MethodNegT(SpanT, SpanT)Pointwise negation of a span.
Public Extension MethodProductTCalculates the product of the items of an array.
Public Extension MethodReduceTCreates an aggregate value by applying the reducer to each item.
Public Extension MethodReverseTCreates a reversed copy of an array.
Public Extension MethodSortTCreates a new array with sorted values.
Public Extension MethodSortDescendingTCreates a new array with sorted values.
Public Extension MethodSubT(SpanT, SpanT)Pointwise inplace subtraction of two equally sized spans.
Public Extension MethodSubT(SpanT, T, SpanT)Pointwise subtraction of a scalar from a span.
Public Extension MethodSubT(SpanT, SpanT, SpanT)Pointwise subtraction of two equally sized spans.
Public methodStatic memberSubT(T, SpanT, SpanT)Pointwise subtraction of a span from a scalar.
Public Extension MethodSumTCalculates the sum of the vector's items.
Public Extension MethodToString(Double, Int32, Int32, FuncDouble, String, SByte)Gets a text representation of a matrix.
Public Extension MethodToStringT(T, FuncT, String)Gets a text representation of an array.
Public Extension MethodTraceCalculates the trace of a 1D-array.
Public methodStatic memberTransposeIn-place transposition of a square matrix.
Public Extension MethodZipTCombines the common prefix of two spans.
Top
See Also