1.19.0
User Documentation for Apache MADlib
svd.sql_in File Reference

Singular Value Decomposition. More...

Functions

void svd (text source_table, text output_table_prefix, text row_id, integer k, integer n_iterations, text result_summary_table)
 
void svd_block (text source_table, text output_table_prefix, integer k, integer n_iterations, text result_summary_table)
 
void svd_block (text source_table, text output_table_prefix, integer k, integer n_iterations)
 
void svd_block (text source_table, text output_table_prefix, integer k)
 
void svd_sparse (text source_table, text output_table_prefix, text row_id, text col_id, text val_id, integer row_dim, integer col_dim, integer k, integer n_iterations, text result_summary_table)
 
void svd_sparse_native (text source_table, text output_table_prefix, text row_id, text col_id, text val_id, integer row_dim, integer col_dim, integer k, integer n_iterations, text result_summary_table)
 
void svd (text source_table, text output_table_prefix, text row_id, integer k)
 
void svd_sparse (text source_table, text output_table_prefix, text row_id, text col_id, text val_id, integer row_dim, integer col_dim, integer k)
 
void svd (text source_table, text output_table_prefix, text row_id, integer k, integer n_iterations)
 
void svd_sparse (text source_table, text output_table_prefix, text row_id, text col_id, text val_id, integer row_dim, integer col_dim, integer k, integer n_iterations)
 
void svd_sparse_native (text source_table, text output_table_prefix, text row_id, text col_id, text val_id, integer row_dim, integer col_dim, integer k)
 
void svd_sparse_native (text source_table, text output_table_prefix, text row_id, text col_id, text val_id, integer row_dim, integer col_dim, integer k, integer n_iterations)
 
float8 [] __svd_unit_vector (int dim)
 
float8 [] __svd_lanczos_sfunc (float8[] state, int row_id, float8[] row_array, float8[] vector, int dimension)
 
float8 [] __svd_block_lanczos_sfunc (float8[] state, int4 row_id, int4 col_id, float8[] block, float8[] vector, int4 dimension)
 
float8 [] __svd_sparse_lanczos_sfunc (float8[] state, int4 row_id, int4 col_id, float8 val, float8[] vector, int4 dimension)
 
float8 [] __svd_lanczos_prefunc (float8[] state1, float8[] state2)
 
aggregate float8 [] __svd_lanczos_agg (int, float8[], float8[], int)
 
aggregate float8 [] __svd_block_lanczos_agg (int, int4, float8[], float8[], int)
 
aggregate float8 [] __svd_sparse_lanczos_agg (int4, int4, float8, float8[], int4)
 
__svd_lanczos_result __svd_lanczos_pvec (float8[] vector, float8[] pvec, float8 beta)
 
float8 [] __svd_lanczos_qvec (float8[] vector, float8[] qvec, float8 alpha)
 
float8 [] __svd_gram_schmidt_orthogonalize_sfunc (float8[] state, float8[] vec_unorthogonalized, float8[] vec_orthogonalized)
 
float8 [] __svd_gram_schmidt_orthogonalize_prefunc (float8[] state1, float8[] state2)
 
__svd_lanczos_result __svd_gram_schmidt_orthogonalize_ffunc (float8[] state)
 
aggregate float8 [] __svd_gram_schmidt_orthogonalize_agg (float8[], float8[])
 
void __svd_lanczos_bidiagonalize (text source_table, text output_table_prefix, int n_iterations, int k, boolean is_block)
 
void __svd_lanczos_bidiagonalize_sparse (text source_table, text row_id, text col_id, text val, text output_table_prefix, int n_iterations, int k)
 
__svd_bidiagonal_matrix_result __svd_decompose_bidiag (int[] row_ids, int[] col_ids, float8[] vals)
 
float8 [] __svd_vec_mult_matrix (float8[] vector, float8[][] matrix, int4 k)
 
set< __svd_vec_mat_mult_result > __svd_vec_trans_mult_matrix_internal (float8[] vector, float8[][] matrix, int4 col_id, int4 k)
 
void __svd_vec_trans_mult_matrix (text vec_table, text mat_table, int4 k, boolean is_left, text res_table)
 
text svd (text input_message)
 
text svd ()
 

Detailed Description

See also
For a brief introduction to singular value decomposition, see the module description Singular Value Decomposition.

Function Documentation

◆ __svd_block_lanczos_agg()

aggregate float8 [] __svd_block_lanczos_agg ( int  ,
int4  ,
float8  [],
float8  [],
int   
)

◆ __svd_block_lanczos_sfunc()

float8 [] __svd_block_lanczos_sfunc ( float8 []  state,
int4  row_id,
int4  col_id,
float8 []  block,
float8 []  vector,
int4  dimension 
)

◆ __svd_decompose_bidiag()

__svd_bidiagonal_matrix_result __svd_decompose_bidiag ( int []  row_ids,
int []  col_ids,
float8 []  vals 
)

◆ __svd_gram_schmidt_orthogonalize_agg()

aggregate float8 [] __svd_gram_schmidt_orthogonalize_agg ( float8  [],
float8  [] 
)

◆ __svd_gram_schmidt_orthogonalize_ffunc()

__svd_lanczos_result __svd_gram_schmidt_orthogonalize_ffunc ( float8 []  state)

◆ __svd_gram_schmidt_orthogonalize_prefunc()

float8 [] __svd_gram_schmidt_orthogonalize_prefunc ( float8 []  state1,
float8 []  state2 
)

◆ __svd_gram_schmidt_orthogonalize_sfunc()

float8 [] __svd_gram_schmidt_orthogonalize_sfunc ( float8 []  state,
float8 []  vec_unorthogonalized,
float8 []  vec_orthogonalized 
)

◆ __svd_lanczos_agg()

aggregate float8 [] __svd_lanczos_agg ( int  ,
float8  [],
float8  [],
int   
)

◆ __svd_lanczos_bidiagonalize()

void __svd_lanczos_bidiagonalize ( text  source_table,
text  output_table_prefix,
int  n_iterations,
int  k,
boolean  is_block 
)

◆ __svd_lanczos_bidiagonalize_sparse()

void __svd_lanczos_bidiagonalize_sparse ( text  source_table,
text  row_id,
text  col_id,
text  val,
text  output_table_prefix,
int  n_iterations,
int  k 
)

◆ __svd_lanczos_prefunc()

float8 [] __svd_lanczos_prefunc ( float8 []  state1,
float8 []  state2 
)

◆ __svd_lanczos_pvec()

__svd_lanczos_result __svd_lanczos_pvec ( float8 []  vector,
float8 []  pvec,
float8  beta 
)

◆ __svd_lanczos_qvec()

float8 [] __svd_lanczos_qvec ( float8 []  vector,
float8 []  qvec,
float8  alpha 
)

◆ __svd_lanczos_sfunc()

float8 [] __svd_lanczos_sfunc ( float8 []  state,
int  row_id,
float8 []  row_array,
float8 []  vector,
int  dimension 
)

◆ __svd_sparse_lanczos_agg()

aggregate float8 [] __svd_sparse_lanczos_agg ( int4  ,
int4  ,
float8  ,
float8  [],
int4   
)

◆ __svd_sparse_lanczos_sfunc()

float8 [] __svd_sparse_lanczos_sfunc ( float8 []  state,
int4  row_id,
int4  col_id,
float8  val,
float8 []  vector,
int4  dimension 
)

◆ __svd_unit_vector()

float8 [] __svd_unit_vector ( int  dim)

◆ __svd_vec_mult_matrix()

float8 [] __svd_vec_mult_matrix ( float8 []  vector,
float8  matrix[][],
int4  k 
)

Multiplication of a row vector with an in-memory matrix vector: 1 x l matrix: l x l k: Sub-matrix of the size l x k

◆ __svd_vec_trans_mult_matrix()

void __svd_vec_trans_mult_matrix ( text  vec_table,
text  mat_table,
int4  k,
boolean  is_left,
text  res_table 
)

◆ __svd_vec_trans_mult_matrix_internal()

set<__svd_vec_mat_mult_result> __svd_vec_trans_mult_matrix_internal ( float8 []  vector,
float8  matrix[][],
int4  col_id,
int4  k 
)

◆ svd() [1/5]

void svd ( text  source_table,
text  output_table_prefix,
text  row_id,
integer  k,
integer  n_iterations,
text  result_summary_table 
)

◆ svd() [2/5]

void svd ( text  source_table,
text  output_table_prefix,
text  row_id,
integer  k 
)

◆ svd() [3/5]

void svd ( text  source_table,
text  output_table_prefix,
text  row_id,
integer  k,
integer  n_iterations 
)

◆ svd() [4/5]

text svd ( text  input_message)

◆ svd() [5/5]

text svd ( )

◆ svd_block() [1/3]

void svd_block ( text  source_table,
text  output_table_prefix,
integer  k,
integer  n_iterations,
text  result_summary_table 
)

◆ svd_block() [2/3]

void svd_block ( text  source_table,
text  output_table_prefix,
integer  k,
integer  n_iterations 
)

◆ svd_block() [3/3]

void svd_block ( text  source_table,
text  output_table_prefix,
integer  k 
)

◆ svd_sparse() [1/3]

void svd_sparse ( text  source_table,
text  output_table_prefix,
text  row_id,
text  col_id,
text  val_id,
integer  row_dim,
integer  col_dim,
integer  k,
integer  n_iterations,
text  result_summary_table 
)

◆ svd_sparse() [2/3]

void svd_sparse ( text  source_table,
text  output_table_prefix,
text  row_id,
text  col_id,
text  val_id,
integer  row_dim,
integer  col_dim,
integer  k 
)

◆ svd_sparse() [3/3]

void svd_sparse ( text  source_table,
text  output_table_prefix,
text  row_id,
text  col_id,
text  val_id,
integer  row_dim,
integer  col_dim,
integer  k,
integer  n_iterations 
)

◆ svd_sparse_native() [1/3]

void svd_sparse_native ( text  source_table,
text  output_table_prefix,
text  row_id,
text  col_id,
text  val_id,
integer  row_dim,
integer  col_dim,
integer  k,
integer  n_iterations,
text  result_summary_table 
)

◆ svd_sparse_native() [2/3]

void svd_sparse_native ( text  source_table,
text  output_table_prefix,
text  row_id,
text  col_id,
text  val_id,
integer  row_dim,
integer  col_dim,
integer  k 
)

◆ svd_sparse_native() [3/3]

void svd_sparse_native ( text  source_table,
text  output_table_prefix,
text  row_id,
text  col_id,
text  val_id,
integer  row_dim,
integer  col_dim,
integer  k,
integer  n_iterations 
)