arrcat help

I am trying to use arrcat to concatonate different size matrices.

Does anyone know how to easily make the following code work (without the comment
on
controlPoints_all2)? I would expect the result to be a [9][3] size matrix.
However, I get a
compliation error saying the matrices have to have the same dimensions.
Obviously they
don’t…but the pertinent dimensions are the same. Shouldn’t that be enough?.

Main = {

   AnyMatrix controlPoints_all = {
     {1,2,3},
     {3,4,5},
     {6,7,8},
     {9,10,11}};

   AnyMatrix controlPoints_allb = {
     {1,2,3},
     {3,4,5},
     {6,7,8},
     {9,10,11},
     {12,13,14}
   };


   AnyMatrix controlPoints_allc =

arrcat(controlPoints_all,controlPoints_all);
AnyMatrix controlPoints_alld =
arrcat(controlPoints_allb,controlPoints_allb);

   //WHY doesn't this produce a [9][3] matrix??
   //AnyMatrix controlPoints_all2 =

arrcat(controlPoints_all,controlPoints_allb);

}; // Main

Thank you in advance.

-David

Hi David

We have investigated the issue a bit and it appears that you have found a
bug, thanks for letting us know.

The current version will unfortunately not allow the different dimensions;
this has now been corrected and will be part of the next release.

I am sorry for the troubles this has caused you.

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of dww805
Sent: 01 November 2007 21:56
To: anyscript@yahoogroups.com
Subject: [AnyScript] arrcat help

I am trying to use arrcat to concatonate different size matrices.

Does anyone know how to easily make the following code work (without the
comment on
controlPoints_all2)? I would expect the result to be a [9][3] size matrix.
However, I get a
compliation error saying the matrices have to have the same dimensions.
Obviously they
don’t…but the pertinent dimensions are the same. Shouldn’t that be
enough?.

Main = {

AnyMatrix controlPoints_all = {
{1,2,3},
{3,4,5},
{6,7,8},
{9,10,11}};

AnyMatrix controlPoints_allb = {
{1,2,3},
{3,4,5},
{6,7,8},
{9,10,11},
{12,13,14}
};

AnyMatrix controlPoints_allc = arrcat(controlPoints_all,controlPoints_all);
AnyMatrix controlPoints_alld =
arrcat(controlPoints_allb,controlPoints_allb);

//WHY doesn’t this produce a [9][3] matrix??
//AnyMatrix controlPoints_all2 =
arrcat(controlPoints_all,controlPoints_allb);

}; // Main

Thank you in advance.

-David

[Non-text portions of this message have been removed]

Søren-

I am glad to help. I have enjoyed using AnyBody and the support staff
has always been helpful when I have a question.

Although, that’s two bugs found in as many weeks (arrcat and
anybodycon)…maybe you should start holding a drawing for anyone who
finds a bug and reports it (yearly?). You could raffle off a some fun
AnyBody stuff…maybe even a license dongle!

Best Regards,
David

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi David
>
>
>
> We have investigated the issue a bit and it appears that you have
found a
> bug, thanks for letting us know.
>
>
>
> The current version will unfortunately not allow the different
dimensions;
> this has now been corrected and will be part of the next release.
>
>
>
> I am sorry for the troubles this has caused you.
>
>
>
> Best regards
>
> Søren, AnyBody Support
>
>
>
>
>
>
>
> _____
>
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com]
On Behalf
> Of dww805
> Sent: 01 November 2007 21:56
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] arrcat help
>
>
>
> I am trying to use arrcat to concatonate different size matrices.
>
> Does anyone know how to easily make the following code work (without the
> comment on
> controlPoints_all2)? I would expect the result to be a [9][3] size
matrix.
> However, I get a
> compliation error saying the matrices have to have the same dimensions.
> Obviously they
> don’t…but the pertinent dimensions are the same. Shouldn’t that be
> enough?.
>
> Main = {
>
> AnyMatrix controlPoints_all = {
> {1,2,3},
> {3,4,5},
> {6,7,8},
> {9,10,11}};
>
> AnyMatrix controlPoints_allb = {
> {1,2,3},
> {3,4,5},
> {6,7,8},
> {9,10,11},
> {12,13,14}
> };
>
>
> AnyMatrix controlPoints_allc =
arrcat(controlPoints_all,controlPoints_all);
> AnyMatrix controlPoints_alld =
> arrcat(controlPoints_allb,controlPoints_allb);
>
> //WHY doesn’t this produce a [9][3] matrix??
> //AnyMatrix controlPoints_all2 =
> arrcat(controlPoints_all,controlPoints_allb);
>
> }; // Main
>
> Thank you in advance.
>
> -David
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

Hi David

Thanks for the kind words.

It sounds as an interesting idea, we will think about it :wink:

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of dww805
Sent: 06 November 2007 00:29
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: arrcat help

Søren-

I am glad to help. I have enjoyed using AnyBody and the support staff
has always been helpful when I have a question.

Although, that’s two bugs found in as many weeks (arrcat and
anybodycon)…maybe you should start holding a drawing for anyone who
finds a bug and reports it (yearly?). You could raffle off a some fun
AnyBody stuff…maybe even a license dongle!

Best Regards,
David

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“AnyBody Support” <support@…> wrote:
>
> Hi David
>
>
>
> We have investigated the issue a bit and it appears that you have
found a
> bug, thanks for letting us know.
>
>
>
> The current version will unfortunately not allow the different
dimensions;
> this has now been corrected and will be part of the next release.
>
>
>
> I am sorry for the troubles this has caused you.
>
>
>
> Best regards
>
> Søren, AnyBody Support
>
>
>
>
>
>
>
> _____
>
> From: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
[mailto:anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com]
On Behalf
> Of dww805
> Sent: 01 November 2007 21:56
> To: anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com
> Subject: [AnyScript] arrcat help
>
>
>
> I am trying to use arrcat to concatonate different size matrices.
>
> Does anyone know how to easily make the following code work (without the
> comment on
> controlPoints_all2)? I would expect the result to be a [9][3] size
matrix.
> However, I get a
> compliation error saying the matrices have to have the same dimensions.
> Obviously they
> don’t…but the pertinent dimensions are the same. Shouldn’t that be
> enough?.
>
> Main = {
>
> AnyMatrix controlPoints_all = {
> {1,2,3},
> {3,4,5},
> {6,7,8},
> {9,10,11}};
>
> AnyMatrix controlPoints_allb = {
> {1,2,3},
> {3,4,5},
> {6,7,8},
> {9,10,11},
> {12,13,14}
> };
>
>
> AnyMatrix controlPoints_allc =
arrcat(controlPoints_all,controlPoints_all);
> AnyMatrix controlPoints_alld =
> arrcat(controlPoints_allb,controlPoints_allb);
>
> //WHY doesn’t this produce a [9][3] matrix??
> //AnyMatrix controlPoints_all2 =
> arrcat(controlPoints_all,controlPoints_allb);
>
> }; // Main
>
> Thank you in advance.
>
> -David
>
>
>
>
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]