Click or drag to resize

Vector Class

Represents a Vector.
Inheritance Hierarchy
SystemObject
  DotNumerics.LinearAlgebraVector

Namespace: DotNumerics.LinearAlgebra
Assembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Vector
Request Example View Source

The Vector type exposes the following members.

Constructors
 NameDescription
Public methodVector(Double) Initializes a new instance of the Vector class that contains elements copied from the specified array.
Public methodVector(Int32) Initializes a new instance of the Vector class of the given size.
Public methodVector(VectorType, Double) Initializes a new instance of the Vector class that contains elements copied from the specified array.
Public methodVector(VectorType, Int32) Initializes a new instance of the Vector class of the given size and type.
Top
Properties
 NameDescription
Public propertyItem Gets or sets the element at the specified index.
Public propertyLength Returns the number of elements.
Public propertyType The vector type.
Top
Methods
 NameDescription
Public methodAdd(Double) Add a scalar to all elements of this vector.
Public methodAdd(Vector) Add a Vector.
Public methodAddInplace(Double) In place add a scalar to all elements of this vector.
Public methodAddInplace(Vector) In place add a Vector.
Public methodClone Creates a copy of the vector.
Public methodDotProduct(Vector) Dot product of this vector with another vector.
Public methodStatic memberDotProduct(Vector, Vector) Dot product or scalar product.
Public methodMultiply Multiply a scalar to all elements of this vector.
Public methodMultiplyInplace In place multiply this vector with a scalar.
Public methodNorm Calculate the norm of the vector (The 2-norm of the vector).
Public methodNorm1 Calculate the 1-norm of the vector.
Public methodNormalize Normalizes this vector to a unit vector with respect to the Eucliden 2-Norm.
Public methodNormInf Infinity-Norm.
Public methodNormP Calculate the p-Norm.
Public methodSubtract(Double) Subtract a scalar to all elements of this vector.
Public methodSubtract(Vector) Subtract a Vector.
Public methodSubtractInplace(Double) In place subtract a scalar to all elements of this vector.
Public methodSubtractInplace(Vector) In place add a Vector.
Public methodToArray Copies the elements of this vector to a new array.
Public methodTranspose Transposed vector.
Public methodUnaryMinus Unary minus.
Public methodUnaryMinusInplace In place unary minus of this vector.
Public methodVectorToString Returns the equivalent string representation of the vector.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Vector, Vector) Vector addition.
Public operatorStatic member(Vector to Matrix) Implicit Vector to Matrix conversion.
Public operatorStatic memberMultiply(BaseMatrix, Vector) Matrix- Vector multiplication.
Public operatorStatic memberMultiply(Double, Vector) Scalar-Vector multiplication.
Public operatorStatic memberMultiply(Vector, Double) Vector-Scalar multiplication.
Public operatorStatic memberSubtraction(Vector, Vector) Vector subtraction.
Public operatorStatic memberUnaryNegation(Vector) Unary minus.
Top
Fields
 NameDescription
Protected field_Data Los datos del vector
Protected field_Type El tipo de vector.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumNames
(Defined by General)
Public Extension MethodIsValidDouble
(Defined by General)
Top
See Also