GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — How to create unicode string operations · python-graphblas/python-graphblas · Discussion #545

How to create unicode string operations #545

Unanswered
Oofle asked this question in Q&A
How to create unicode string operations #545
@Oofle Oofle
Jun 21, 2024 · 0 comments
Return to top
Discussion options
  • Uh oh!

    There was an error while loading. Please reload this page.

  • Uh oh!

    There was an error while loading. Please reload this page.

Oofle
Jun 21, 2024

Hello,
How would one create user defined operations on unicode strings? I have some code where I want to define a string concatenation binary operator:

import graphblas as gb

def concat(a,b):
    return a + b
A = gb.Matrix.from_coo([0,1], [0,1], [“a”, “b”])
bin_op = gb.core.operator.BinaryOp.register_anonymous(concat, is_udt = True)

print(bin_op(A&A).new())

However, it is giving me the error
ValueError: Unknown dtype: unicode_type of type <class 'numba.core.types.misc.UnicodeType'>.

I would guess that this might require some user defined string type, but I haven't had much success getting it to work.

You must be logged in to vote
All reactions

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
1 participant
@Oofle
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.