Coder Social home page Coder Social logo

Comments (10)

WenyinWei avatar WenyinWei commented on September 18, 2024

Hello, Karl, @karlrupp I have some trouble while using element_op functions.

When I use the following command to get the element_geq, _greater, _less and etc, I got the result matrix_expression but I don't know how to handle it. I can't impose copy functions to fetch the result back to CPU or do other things. And I have no idea about what it would return, if 1 for geq, 0 for less or -1 for less?

from viennacl-dev.

karlrupp avatar karlrupp commented on September 18, 2024

Assign it to a matrix object, e.g. A = element_geq(B, C);

from viennacl-dev.

WenyinWei avatar WenyinWei commented on September 18, 2024

2020-02-26 16-28-29 Screenshot
Yeah, I have tried, but still stuck by a bug.

I tried to select the binary elementwise functions which can work.
element_prod, _div, _pow works,
_eq, _neq, _greater, etc. don't work.

2020-02-26 16-42-58 的屏幕截图

from viennacl-dev.

karlrupp avatar karlrupp commented on September 18, 2024

Uh, then I guess that these other operators have not been implemented for matrices yet.

from viennacl-dev.

WenyinWei avatar WenyinWei commented on September 18, 2024

Uh, Karl, I found that arctan function works well. Maybe that could serve as a temporary workaround, but just temp.

from viennacl-dev.

WenyinWei avatar WenyinWei commented on September 18, 2024

Hello Karl, would you mind requesting the original maintainers to have a minor update? Though atan function serves as a kind of workaround, it sacrifices too much performance.

from viennacl-dev.

WenyinWei avatar WenyinWei commented on September 18, 2024

2020-03-01 16-49-14 的屏幕截图
Here is my test error of viennacl::linalg::element_abs on matrix.

from viennacl-dev.

WenyinWei avatar WenyinWei commented on September 18, 2024

Hello @karlrupp , may I ask about whether viennacl is not maintained anymore and shall I turn to PETSc?

from viennacl-dev.

karlrupp avatar karlrupp commented on September 18, 2024

As I said, element_abs is not implemented for matrices yet. Thus, this is not a question about maintenance, but a feature request ;-)

Do you need abs for the full matrix, or just for a submatrix? For a full matrix you could reuse the existing vector kernels (I can show you how to do it).

from viennacl-dev.

WenyinWei avatar WenyinWei commented on September 18, 2024

Yeah, Karl, I would appreciate it if you could show me how to do that when you are free. It would be better if the trick is generic for geq and max.

from viennacl-dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.