unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Vincent Belaïche" <vincent.b.1@hotmail.fr>
To: <jay.p.belanger@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Submission of Matrix Kronecker Product for calc
Date: Wed, 5 Mar 2008 13:43:27 +0100	[thread overview]
Message-ID: <BLU104-W41BB6DDF880B64C30B539C84110@phx.gbl> (raw)

[-- Attachment #1: Type: text/plain, Size: 2376 bytes --]


Dear Jay,

1) No problem if you like to tidy up. Please do as you like.

2) For the legal paper, no problem either. Please send me the form and 
make me know whether I can fill it electronically, or if I need a postal 
real paper send.

3) Concerning whether the result should or should not be a matrix, I am 
not sure that this is 100% useful. My intent was not to add extra 
useless bracketing. However the counterpart of this is that if you use 
the calc-Funckron in Lisp you would may need in the sequel extra testing 
in order to know into what level of bracketing it has resulted. Maybe 
some extra optional argument telling whether to minimize bracketing or 
not would therefore be useful.

However, not being a Lisp expert I did not know how to make this on the 
Lisp function on the one hand, and have it compatible with Stack 
manipulation on the other hand (in case of Stack manipulation some "C-u 
+ digit" before calling function could serve telling whether bracketing 
is to be minimized or not).

In fact, for my own purpose (I wanted to computed some Walsh codes by 
"kron"-ing some 2x2 Hadamard matrices together) and having 
systematically matrices and not vectors was sufficient.

4) note that the function name "kron" has already some publicity as it 
is borrowed from Matlab and Scilab (a license-free equivalent made by 
INRIA and ENPC France). So I suggest to keep the same.

BR,
       Vincent.



Jay Belanger a écrit :
> Vincent Belaïche  writes:
> ...
>   
>> Maybe this can be useful to somebody else.
>>     
>
> Yes.  Would there be a problem if I tidied it up a bit?
> Altogether, it would end up 20 lines or so; to be included in Calc,
> we would need legal papers from you.
>
>   
>> (defun calcFunc-kron (x y)
>> "Kronecker product of matrices x and y.
>>     
>
> If x and y are not explicitly matrices, I take it they will be
> implicitly considered matrices.  
>
>   
>> After computation the result may be desembedded from matrix so that
>> the Kronecker product of two scalars is a scalar,
>>     
> ...
>
> Why should the result not be a matrix?  Is it useful?
>
> Jay
>
>
>   



_________________________________________________________________
Microsoft vous offre un logiciel pour classer, retoucher et partager vos photos !
http://www.windowslive.fr/galerie/

[-- Attachment #2: Type: text/html, Size: 2738 bytes --]

             reply	other threads:[~2008-03-05 12:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-05 12:43 Vincent Belaïche [this message]
2008-03-05 21:00 ` Submission of Matrix Kronecker Product for calc Jay Belanger
2008-03-05 22:09   ` David Kastrup
2008-03-06  1:25     ` Jay Belanger
2008-03-06  8:36       ` David Kastrup
2008-03-07  3:36       ` Richard Stallman
2008-03-07  3:38     ` Richard Stallman
2008-03-07 18:56       ` Glenn Morris
2008-03-08  6:29         ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2008-03-02 21:37 Vincent Belaïche
2008-03-05  3:22 ` Jay Belanger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BLU104-W41BB6DDF880B64C30B539C84110@phx.gbl \
    --to=vincent.b.1@hotmail.fr \
    --cc=emacs-devel@gnu.org \
    --cc=jay.p.belanger@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).