On Thu, Oct 05, 2023 at 08:39:48AM +0200, Damien Mattei wrote:
> hello,
> i have problem i do not understand when inserting a file in a module,
> things i never done before:
>
> (define-module (matrix)
>
> #:use-module (oop goops)
>
> #:use-module ((guile)
> #:select (*)
> #:
yes , you're right , it is like preprocessor in C , include is like a
directive, files are included and later all is evaluated...
On Thu, Oct 5, 2023 at 9:35 AM wrote:
>
> On Thu, Oct 05, 2023 at 08:39:48AM +0200, Damien Mattei wrote:
> > hello,
> > i have problem i do not understand when inserti
Maxime Devos writes:
> [[PGP Signed Part:No public key for 49E3EE22191725EE created at
> 2022-02-09T22:07:58+0100 using EDDSA]]
> Christine Lemmer-Webber schreef op wo 09-02-2022 om 10:18 [-0500]:
>> I'd like to actually see Guile integrate Wisp as a core language and
>> think about what it wou
that is:
(define-method (* (M1 ) (M2 ))
{(n1 p1) <+ (dim-matrix M1)}
{(n2 p2) <+ (dim-matrix M2)}
(when {p1 ≠ n2} (error "matrix.* : matrix product impossible,
incompatible dimensions"))
{v1 <+ (matrix-v M1)}
{v2 <+ (matrix-v M2)}
(define (res i j)
{sum <+ 0}
(for ({k <+ 0}