Coder Social home page Coder Social logo

Comments (5)

mandubian avatar mandubian commented on September 26, 2024

Thanks! I'll try!
This is a very draft version for now and I just wanted to prove it can work with singleton-ops & the concepts in the paper...
now I need to see how to improve things

from neurocat.

soronpo avatar soronpo commented on September 26, 2024

OK. I just wanted to help and mention this, since it might have been missed due to singleton-ops' lacking documentation (my fault).

from neurocat.

mandubian avatar mandubian commented on September 26, 2024

I confirm I had missed it ;)
I also was wondering: for now, it seems impossible to extend existing operators in singleton-ops externally to the lib, you must add it to the lib directly, am I right?

from neurocat.

soronpo avatar soronpo commented on September 26, 2024

Sadly you're right, and I don't see how can this be done otherwise. Fortunately, composition works flawlessly, so you should get most functionality from that. e.g.
type MyFunc[A,B,C] = A * B - math.Sqrt[C]

from neurocat.

mandubian avatar mandubian commented on September 26, 2024

Ideally, independently of singletons, I'd like to be able to write something like that with a bit of genericity:

def mult(m1: Dim2[A, B], m2: Dim2[B, C])(implicit r: Dim2[A, B] * Dim2[B, C] ===> Dim2[A, C]): Dim2[A, C]

from neurocat.

Related Issues (2)

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.