Vector<T>
Models & Types · AiDotNet.Tensors.LinearAlgebra
No summary documentation available yet.
Inheritance: VectorBase<T> → Vector<T>
Implements: IEnumerable<T>
Constructors
| Constructor | Summary |
|---|---|
Vector(IEnumerable<T> values) |
|
Vector(int length) |
Properties
| Property | Summary |
|---|---|
bool IsCpuAccelerated { get; } |
|
bool IsGpuAccelerated { get; } |
|
int SimdVectorCount { get; } |
Methods
| Method | Summary |
|---|---|
IEnumerable<int> NonZeroIndices() |
|
IEnumerator<T> GetEnumerator() |
|
Matrix<T> AppendAsMatrix(T value) |
|
Matrix<T> OuterProduct(Vector<T> other) |
|
Matrix<T> Transpose() |
|
T DotProduct(Vector<T> other) |
|
T Norm() |
|
T Variance() |
|
T[] op_Implicit(Vector<T> vector) |
|
Tensor<T> AsTensor() |
|
Vector<T> Add(VectorBase<T> other) |
|
Vector<T> Clone() |
|
Vector<T> Concatenate(List<Vector<T>> vectors) |
|
Vector<T> Concatenate(Vector<T>[] vectors) |
|
Vector<T> CreateFastRandom(int size) |
|
Vector<T> CreateRandom(Random random, int size) |
|
Vector<T> CreateRandom(int size) |
|
Vector<T> CreateRandom(int size, double min, double max) |
|
Vector<T> CreateSecureRandom(int size) |
|
Vector<T> CreateSlice(int offset, int length) |
|
Vector<T> CreateStandardBasis(int size, int index) |
|
Vector<T> Deserialize(byte[] data) |
|
Vector<T> Divide(T scalar) |
|
Vector<T> ElementwiseDivide(Vector<T> other) |
|
Vector<T> ElementwiseMultiply(Vector<T> other) |
|
Vector<T> Empty() |
|
Vector<T> FromArray(T[] array) |
|
Vector<T> FromEnumerable(IEnumerable<T> enumerable) |
|
Vector<T> FromList(List<T> list) |
|
Vector<T> FromMemory(Memory<T> memory) |
|
Vector<T> FromSpan(ReadOnlySpan<T> span) |
|
Vector<T> GetElements(IEnumerable<int> indices) |
|
Vector<T> GetRange(int startIndex, int count) |
|
Vector<T> GetSegment(int startIndex, int length) |
|
Vector<T> GetSubVector(int startIndex, int length) |
|
Vector<T> Multiply(T scalar) |
|
Vector<T> Normalize() |
|
Vector<T> Range(int start, int count) |
|
Vector<T> RemoveAt(int index) |
|
Vector<T> SafeNormalize() |
|
Vector<T> SetValue(int index, T value) |
|
Vector<T> Subtract(VectorBase<T> other) |
|
Vector<T> Subvector(int startIndex, int length) |
|
Vector<T> Where(Func<T, bool> predicate) |
|
Vector<T> Wrap(T[] array) |
|
Vector<T> Wrap(T[] array, int offset, int length) |
|
Vector<T> op_Addition(Vector<T> left, Vector<T> right) |
|
Vector<T> op_Addition(Vector<T> vector, T scalar) |
|
Vector<T> op_Division(Vector<T> vector, T scalar) |
|
Vector<T> op_Multiply(T scalar, Vector<T> vector) |
|
Vector<T> op_Multiply(Vector<T> vector, T scalar) |
|
Vector<T> op_Subtraction(Vector<T> left, Vector<T> right) |
|
Vector<T> op_Subtraction(Vector<T> vector, T scalar) |
|
Vector<TResult> Select(Func<T, TResult> selector) |
|
Vector<TResult> Transform(Func<T, TResult> function) |
|
Vector<TResult> Transform(Func<T, int, TResult> function) |
|
VectorBase<T> Default(int size, T defaultValue) |
|
VectorBase<T> Ones(int size) |
|
VectorBase<T> Zeros(int size) |
|
byte[] Serialize() |
|
int BinarySearch(T value) |
|
int IndexOfMax() |
|
int NonZeroCount() |
|
void AddInPlace(VectorBase<T> other) |
|
void Fill(T value) |
|
void MultiplyInPlace(T scalar) |
|
void SubtractInPlace(VectorBase<T> other) |