Click or drag to resize
sqx

SQXMatrixFromVector Method

Function [Matrix] MatrixFromVector([Vector] V, [bit] RowVector)

Namespace:  sqx
Assembly:  SQX (in SQX.dll) Version: 1.0.2.6 (1.0.2.6)
Syntax
C#
public static Matrix MatrixFromVector(
	Vector V,
	SqlBoolean RowVector
)

Parameters

V
Type: sqxVector
[Vector]
RowVector
Type: System.Data.SqlTypesSqlBoolean
[bit]

Return Value

Type: Matrix
[Matrix]
Examples
SQL
declare @V sqx.Vector = sqx.RandomVector(4,1)
declare @A sqx.Matrix = sqx.MatrixFromVector(@V,1)
print @A.ToString()
set @A = sqx.MatrixFromVector(@V,0)
print '******'
print @A.ToString()
/*
0.248668584157093,0.110743977181029,0.467010679872246,0.771604122021982
******
0.248668584157093;
0.248668584157093;
0.248668584157093;
0.248668584157093*/
See Also