/** * Apply the sketching transform on A and write to sketch_of_A. * Implementation for columnwise. */ void apply_impl_vdist(const matrix_type& A, output_matrix_type& sketch_of_A, skylark::sketch::columnwise_tag tag) const { // Just a local operation on the Matrix _local.apply(A.LockedMatrix(), sketch_of_A.Matrix(), tag); }
void apply (const matrix_type& A, output_matrix_type& sketch_of_A, Dimension dimension) const { // TODO do we allow different communicators and different roots? // If on root: Just a local operation on the Matrix if (skylark::utility::get_communicator(A).rank() == 0) _local.apply(A.LockedMatrix(), sketch_of_A.Matrix(), dimension); }
void apply (const matrix_type& A, output_matrix_type& sketch_of_A, Dimension dimension) const { // Just a local operation on the Matrix _local.apply(A.LockedMatrix(), sketch_of_A.Matrix(), dimension); }