Click or drag to resize
sqx

SQXMatrixToTable Method

Procedure MatrixToTable [Matrix] @A

Namespace:  sqx
Assembly:  SQX (in SQX.dll) Version: 1.0.2.6 (1.0.2.6)
Syntax
C#
public static int MatrixToTable(
	Matrix A
)

Parameters

A
Type: sqxMatrix
[Matrix]

Return Value

Type: Int32
[int] 0 success | -1 failure
Examples
SQL
declare @A sqx.Matrix = sqx.RandomMatrix(10, 3, NULL) -- NULL Non deterministic
exec sqx.MatrixToTable @A
/*
ID          1                      2                      3
----------- ---------------------- ---------------------- ----------------------
1           0.191067584413601      0.931450356231746      0.784655508950658
2           0.2202411932965        0.489524523955548      0.955340124645894
3           0.422671218133844      0.651612177794619      0.582128358344607
4           0.988964701066243      0.196422644982311      0.937521884654426
5           0.540411181068239      0.495174475244793      0.910042772027684
6           0.645584274384         0.336496732354395      0.07885831132478
7           0.153616436363019      0.950244698650318      0.143542643237646
8           0.54900293264026       0.420607220111698      0.889578960784515
9           0.730508650061911      0.870571330129435      0.185287958097313
10          0.0635674712544156     0.260375400195073      0.408605321966394*/
See Also