Skip to content

.array().colwise() not supported #8

@TianBo-Timothy

Description

@TianBo-Timothy

Hi, I was trying to do a column wise multiplication with gpumatrix. The corresponding code with Eigen is like the following:

Eigen::MatrixXd a = Eigen::MatrixXd::Random(5, 10);
Eigen::VectorXd v = Eigen::VectorXd::Random(5);
Eigen::MatrixXd b = a.array().colwise() * v.array();

When I compiled the following code:

gpumatrix::Matrix<double> da(a);
gpumatrix::Vector<double> dv(v);
gpumatrix::Matrix<double> db = da.array().colwise() * dv.array();

I got error messages like:

error: ‘class gpumatrix::Map<gpumatrix::Array<double, 2> >’ has no member named ‘colwise’

If colwise() is not meant to be implemented in gpumatrix, can you please enlighten me a workaround solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions