Click or drag to resize

Vector Structure

Vector implementation. This is thin wrapper over 1D array
Inheritance Hierarchy
SystemObject
  SystemValueType
    Altaxo.Calc.Ode.ObsoleteVector

Namespace: Altaxo.Calc.Ode.Obsolete
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public struct Vector

The Vector type exposes the following members.

Constructors
 NameDescription
Public methodCode exampleVectorConstructs vector from array of arguments
Top
Properties
 NameDescription
Public propertyEuclideanNormGets vector's Euclidean norm
Public propertyItemGets or sets vector element at specified index
Public propertyLengthGets number of components in a vector
Public propertyLInfinityNormGets L-infinity norm of the vector
Public propertySumGets vector's Euclidean norm
Public propertyv 
Top
Methods
 NameDescription
Public methodAbs Returns a vector whose elements are the absolute values of the given vector elements
Public methodCloneClones specified vector
Public methodStatic memberCopyCopies content of one vector to another. Vectors must have same length.
Public methodEquals
(Overrides ValueTypeEquals(Object))
Public methodStatic memberGetEuclideanNormReturns Euclidean norm of difference between two vectors.
Public methodGetHashCode
(Overrides ValueTypeGetHashCode)
Public methodStatic memberGetLInfinityNormReturns L-infinity norm of difference between two vectors.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberLerpPerforms linear intepolation between two vectors at specified point
Public methodStatic memberMax Returns a vector each of whose elements is the maximal from the corresponding ones of argument vectors. Note that dimensions of the arguments must match.
Public methodMulAddAdds vector v1 multiplied by factor to this object.
Public methodToArray Copies vector to double[] array
Public methodToStringConvers vector to string representation.
(Overrides ValueTypeToString)
Public methodStatic memberZerosConstructs vector of specified length filled with zeros
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Vector, Vector)Sums two vectors. Vectors must have same length.
Public operatorStatic memberAddition(Vector, Double)Add a scalar to a vector.
Public operatorStatic memberBitwiseAnd(Vector, Vector)Multiplies vector a[i] by vector b[j] and returns matrix with components a[i]*b[j]
Public operatorStatic memberDivision(Vector, Vector)Performs element-wise division of two vectors
Public operatorStatic memberDivision(Vector, Double)Divides vector by a scalar (per component)
Public operatorStatic member(Double to Vector)Performs conversion of scalar to vector with length 1
Public operatorStatic member(Double to Vector)Performs conversion of array to vector
Public operatorStatic member(Vector to Double)Performs conversion of 1d vector to
Public operatorStatic member(Vector to Double)Performs conversion of vector to array
Public operatorStatic memberMultiply(Double, Vector)Multiplies a vector by a scalar (per component)
Public operatorStatic memberMultiply(Matrix, Vector)Multiplies vector Vector by matrix
Public operatorStatic memberMultiply(Vector, Matrix)Implements multiplication of matrix by vector
Public operatorStatic memberMultiply(Vector, Vector)Performs scalar multiplication of two vectors
Public operatorStatic memberMultiply(Vector, Double)Multiplies a vector by a scalar (per component)
Public operatorStatic memberSubtraction(Vector, Vector)Substracts first vector from second. Vectors must have same length
Top
See Also