tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. spectrumgomas@functional.cafe's status on Wednesday, 29-Sep-2021 11:18:21 CEST spectrumgomas spectrumgomas

    Matrix addition in #GNU #guile with typed arrays:

    In conversation Wednesday, 29-Sep-2021 11:18:21 CEST from functional.cafe permalink
    • Abbie Normal (abbienormal@social.device5.co.uk)'s status on Wednesday, 29-Sep-2021 12:07:46 CEST Abbie Normal Abbie Normal
      in reply to

      @spectrumgomas

      is matrix-B a set ? ๐Ÿ‘€

      In conversation Wednesday, 29-Sep-2021 12:07:46 CEST permalink
    • spectrumgomas@functional.cafe's status on Wednesday, 29-Sep-2021 12:07:46 CEST spectrumgomas spectrumgomas
      in reply to
      • Abbie Normal

      @AbbieNormal It's a typed array of rank 2 of signed 32 bits.

      In conversation Wednesday, 29-Sep-2021 12:07:46 CEST permalink
    • Abbie Normal (abbienormal@social.device5.co.uk)'s status on Wednesday, 29-Sep-2021 13:10:26 CEST Abbie Normal Abbie Normal
      in reply to

      @spectrumgomas

      ah yes it is

      I'm seeing the print of array-A right now ๐Ÿ‘€

      In conversation Wednesday, 29-Sep-2021 13:10:26 CEST permalink
    • spectrumgomas@functional.cafe's status on Wednesday, 29-Sep-2021 13:10:26 CEST spectrumgomas spectrumgomas
      in reply to
      • Abbie Normal

      @AbbieNormal Yes, if it's a conventional array it doesn't show anything. If it's a typed array it shows u8, s32...

      In conversation Wednesday, 29-Sep-2021 13:10:26 CEST permalink
    • Abbie Normal (abbienormal@social.device5.co.uk)'s status on Wednesday, 29-Sep-2021 13:10:27 CEST Abbie Normal Abbie Normal
      in reply to

      @spectrumgomas

      so is #2s32 an ad hoc syntax ?

      In conversation Wednesday, 29-Sep-2021 13:10:27 CEST permalink
    • spectrumgomas@functional.cafe's status on Wednesday, 29-Sep-2021 13:18:10 CEST spectrumgomas spectrumgomas
      in reply to
      • Abbie Normal

      @AbbieNormal they are the arguments of the function array-map. You apply the function + on the elements of matrix-A and matrix-B and the result is stored in matrix-C. Sorry, I don't know explain it better. ๐Ÿ˜…

      In conversation Wednesday, 29-Sep-2021 13:18:10 CEST permalink
    • Abbie Normal (abbienormal@social.device5.co.uk)'s status on Wednesday, 29-Sep-2021 13:18:11 CEST Abbie Normal Abbie Normal
      in reply to

      @spectrumgomas

      and in the call to array-map! the "+" between the first and second argument

      What is that ?

      Is that using postfix syntax ? ๐Ÿ‘€

      In conversation Wednesday, 29-Sep-2021 13:18:11 CEST permalink
    • spectrumgomas@functional.cafe's status on Wednesday, 29-Sep-2021 13:26:28 CEST spectrumgomas spectrumgomas
      in reply to
      • Abbie Normal

      @AbbieNormal The expert on arrays in Guile I think is Daniel Llorens. He's working on https://github.com/lloda/guile-newra , but the API will be more or less the same.

      In conversation Wednesday, 29-Sep-2021 13:26:28 CEST permalink

      Attachments

      1. GitHub - lloda/guile-newra: A Scheme replacement for Guile's array system
        A Scheme replacement for Guile's array system. Contribute to lloda/guile-newra development by creating an account on GitHub.
    • Abbie Normal (abbienormal@social.device5.co.uk)'s status on Wednesday, 29-Sep-2021 13:26:29 CEST Abbie Normal Abbie Normal
      in reply to

      @spectrumgomas

      AAAhhhhh I see now

      Thanks !

      In conversation Wednesday, 29-Sep-2021 13:26:29 CEST permalink
      spectrumgomas repeated this.
    • spectrumgomas@functional.cafe's status on Wednesday, 29-Sep-2021 13:35:11 CEST spectrumgomas spectrumgomas
      in reply to
      • Abbie Normal

      @AbbieNormal But, without a doubt, Daniel Llorens examples aren't for newbies ๐Ÿ˜…: https://github.com/lloda/guile-newra/blob/master/examples/maxwell.scm

      In conversation Wednesday, 29-Sep-2021 13:35:11 CEST permalink

      Attachments

      1. guile-newra/maxwell.scm at master ยท lloda/guile-newra
        A Scheme replacement for Guile's array system. Contribute to lloda/guile-newra development by creating an account on GitHub.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.