Esempio n. 1
0
    /**
     * 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);
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 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);
 }