IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
A column vector of real numbers. More...
Public Member Functions | |
ColumnVector (int dimension) | |
Initializes a new column vector with the given dimension. More... | |
ColumnVector (IList< double > list) | |
Initializes a new column vector from the given component list. More... | |
ColumnVector (params double[] list) | |
Initializes a new column vector with the given components. More... | |
RowVector | Transpose () |
Returns the transpose of the column vector. More... | |
ColumnVector | Copy () |
Returns a copy of the column vector. More... | |
![]() | |
virtual double | Norm () |
Computes the magnitude of the vector. More... | |
virtual new double[] | ToArray () |
Returns the vector elements in an independent array. More... | |
IEnumerator< double > | GetEnumerator () |
Gets an enumerator of the vector components. More... | |
![]() | |
virtual double | OneNorm () |
Computes the 1-norm of the matrix. More... | |
virtual double | InfinityNorm () |
Computes the ∞-norm of the matrix. More... | |
virtual double | FrobeniusNorm () |
Computes the Frobenius-norm of the matrix. More... | |
virtual ColumnVector | Column (int c) |
Gets a copy of the specified column. More... | |
virtual RowVector | Row (int r) |
Gets a copy of the specified row. More... | |
virtual SymmetricMatrix | MultiplySelfByTranspose () |
Computes the product of the matrix and its transpose. More... | |
virtual SymmetricMatrix | MultiplyTransposeBySelf () |
Computes the product of the matrix's transpose and itself. More... | |
bool | Equals (AnyRectangularMatrix other) |
Determines whether the given matrix equals the current matrix. More... | |
override bool | Equals (object obj) |
Determines whether the given object is an equal matrix. More... | |
override int | GetHashCode () |
Not a valid operation. More... | |
![]() | |
virtual void | Fill (Func< int, int, T > f) |
Sets all matrix entries according to a supplied fill function. More... | |
Static Public Member Functions | |
static ColumnVector | operator+ (ColumnVector v1, ColumnVector v2) |
Computes the sum of two column vectors. More... | |
static ColumnVector | operator- (ColumnVector v1, ColumnVector v2) |
Computes the difference of two column vectors. More... | |
static ColumnVector | operator* (double alpha, ColumnVector v) |
Multiplies a column vector by a real, scalar constant. More... | |
static ColumnVector | operator/ (ColumnVector v, double alpha) |
Divides a column vector by a real, scalar constant. More... | |
static ColumnVector | operator- (ColumnVector v) |
Negates a column vector. More... | |
![]() | |
static RectangularMatrix | operator+ (AnyRectangularMatrix A, AnyRectangularMatrix B) |
Adds any two real, rectangular matrices. More... | |
static RectangularMatrix | operator- (AnyRectangularMatrix A, AnyRectangularMatrix B) |
Subtracts any two real, rectangular matrices. More... | |
static RectangularMatrix | operator* (AnyRectangularMatrix A, AnyRectangularMatrix B) |
Multiplies any two real, rectangular matrices. More... | |
static RectangularMatrix | operator* (double alpha, AnyRectangularMatrix A) |
Multiplies any real, rectangular matrix by a real constant. More... | |
static ColumnVector | operator* (AnyRectangularMatrix A, ColumnVector v) |
Multiplies any real, rectangular matrix with a real column vector. More... | |
static bool | operator== (AnyRectangularMatrix A, AnyRectangularMatrix B) |
Determines whether two matrices are equal. More... | |
static bool | operator!= (AnyRectangularMatrix A, AnyRectangularMatrix B) |
Determines whether two matrices are not equal. More... | |
Properties | |
override int | RowCount [get] |
override int | ColumnCount [get] |
override double | this[int r, int c] [get, set] |
![]() | |
virtual double | this[int index] [get, set] |
Gets or sets the specified vector component. More... | |
virtual int | Dimension [get] |
Gets the dimension of the vector. More... | |
int ICollection< double >. | Count [get] |
bool ICollection< double >. | IsReadOnly [get] |
![]() | |
abstract int | RowCount [get] |
Gets the number of matrix rows. More... | |
abstract int | ColumnCount [get] |
Gets the number of matrix columns. More... | |
abstract T | this[int r, int c] [get, set] |
Gets or sets the value of a matrix entry. More... | |
bool | IsReadOnly [get, set] |
Gets a flag indicating whether the matrix is read-only. More... | |
Additional Inherited Members | |
![]() | |
AnyRectangularMatrix () | |
![]() | |
AnyMatrix () | |
A column vector of real numbers.
An N-dimensional column vector is an N X 1 dimensional matrix.
|
inline |
Initializes a new column vector with the given dimension.
dimension | The dimension of the vector, which must be positive. |
|
inline |
Initializes a new column vector from the given component list.
list | A list of vector components. |
|
inline |
Initializes a new column vector with the given components.
list | A list of vector components. |
|
inline |
Returns the transpose of the column vector.
References Meta.Numerics.Matrices.RowVector.Copy().
Referenced by Test.MultiIntegrateTest.GaussianIntegrals(), Meta.Numerics.Statistics.BivariateSample.PolynomialRegression(), Test.VectorTest.RowVectorArithmetic(), Meta.Numerics.Matrices.SparseSquareMatrix.Solve(), Test.SquareMatrixTest.SvdOfRankOneMatrix(), and Test.SymmetricMatrixTest.SymmetricRandomMatrixCholeskyDecomposition().
|
inline |
Returns a copy of the column vector.
References Meta.Numerics.Matrices.ColumnVector.Copy().
Referenced by Test.VectorTest.ColumnVectorCopy(), Meta.Numerics.Matrices.ColumnVector.Copy(), and Meta.Numerics.Matrices.RowVector.Transpose().
|
inlinestatic |
Computes the sum of two column vectors.
v1 | The first column vector. |
v2 | The second column vector. |
|
inlinestatic |
Computes the difference of two column vectors.
v1 | The first column vector. |
v2 | The second column vector. |
|
inlinestatic |
Multiplies a column vector by a real, scalar constant.
alpha | The real, scalar constant. |
v | The column vector. |
|
inlinestatic |
Divides a column vector by a real, scalar constant.
alpha | The real, scalar constant. |
v | The column vector. |
|
inlinestatic |
Negates a column vector.
v | The column vector. |
|
get |
|
get |
|
getset |