Namespaces

Types in MathNet.Numerics.LinearAlgebra.Storage

Type VectorStorage<T>

Namespace MathNet.Numerics.LinearAlgebra.Storage

Interfaces IEquatable<VectorStorage<T>>

Methods

Properties

Fields

Public Methods

T[] AsArray()

T At(int index)

Retrieves the requested element without range checking.
Not range-checked.
Parameters
int index

The index of the element.

Return
T

The requested element.

void At(int index, T value)

Sets the element without range checking.
WARNING: This method is not thread safe. Use "lock" with it and be sure to avoid deadlocks.
Parameters
int index

The index of the element.

T value

The value to set the element to.

void Clear()

void Clear(int index, int count)

void CopySubVectorTo(VectorStorage<T> target, int sourceIndex, int targetIndex, int count, ExistingData existingData)

void CopyTo(VectorStorage<T> target, ExistingData existingData)

void CopyToColumn(MatrixStorage<T> target, int columnIndex, ExistingData existingData)

void CopyToRow(MatrixStorage<T> target, int rowIndex, ExistingData existingData)

void CopyToSubColumn(MatrixStorage<T> target, int columnIndex, int sourceRowIndex, int targetRowIndex, int rowCount, ExistingData existingData)

void CopyToSubRow(MatrixStorage<T> target, int rowIndex, int sourceColumnIndex, int targetColumnIndex, int columnCount, ExistingData existingData)

IEnumerable<T> Enumerate()

IEnumerable<Tuple<int, T>> EnumerateIndexed()

IEnumerable<T> EnumerateNonZero()

IEnumerable<Tuple<int, T>> EnumerateNonZeroIndexed()

bool Equals(VectorStorage<T> other)

Indicates whether the current object is equal to another object of the same type.
Parameters
VectorStorage<T> other

An object to compare with this object.

Return
bool

true if the current object is equal to the other parameter; otherwise, false.

bool Equals(object obj)

Determines whether the specified Object is equal to the current Object.
Parameters
object obj

The Object to compare with the current Object.

Return
bool

true if the specified Object is equal to the current Object ; otherwise, false.

Tuple<int, T> Find(Func<T, bool> predicate, Zeros zeros)

Tuple<int, T, TOther> Find2<TOther>(VectorStorage<T> other, Func<T, TOther, bool> predicate, Zeros zeros)

TState Fold2<TOther, TState>(VectorStorage<T> other, Func<TState, T, TOther, TState> f, TState state, Zeros zeros)

int GetHashCode()

Serves as a hash function for a particular type.
Return
int

A hash code for the current Object.

Type GetType()

void Map2To(VectorStorage<T> target, VectorStorage<T> other, Func<T, T, T> f, Zeros zeros, ExistingData existingData)

void MapIndexedInplace(Func<int, T, T> f, Zeros zeros)

void MapIndexedTo<TU>(VectorStorage<T> target, Func<int, T, TU> f, Zeros zeros, ExistingData existingData)

void MapInplace(Func<T, T> f, Zeros zeros)

void MapTo<TU>(VectorStorage<T> target, Func<T, TU> f, Zeros zeros, ExistingData existingData)

T[] ToArray()

string ToString()

Public Properties

bool IsDense get;

True if the vector storage format is dense.

T Item get; set;

Gets or sets the value at the given index, with range checking.
This method is ranged checked. At and At to get and set values without range checking.
Value:

Public fields

int Length

return int