12 #ifndef _CU_TRACE_ESTIMATOR_CU_ORTHOGONALIZATION_H_
13 #define _CU_TRACE_ESTIMATOR_CU_ORTHOGONALIZATION_H_
19 #include <cublas_v2.h>
20 #include "../_definitions/types.h"
35 template <
typename DataType>
42 cublasHandle_t cublas_handle,
52 cublasHandle_t cublas_handle,
A static class for orthogonalization of vector bases. This class acts as a templated namespace,...
static void gram_schmidt_process(cublasHandle_t cublas_handle, const DataType *V, const LongIndexType vector_size, const IndexType num_vectors, const IndexType last_vector, const FlagType num_ortho, DataType *r)
Modified Gram-Schmidt orthogonalization process to orthogonalize the vector v against a subset of the...
static void orthogonalize_vectors(cublasHandle_t cublas_handle, DataType *vectors, const LongIndexType vector_size, const IndexType num_vectors)
Orthogonalizes set of vectors mutually using modified Gram-Schmidt process.