Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4341544
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:29:57+00:00 2026-05-21T11:29:57+00:00

I have a set of regular (mod 5) matrices N2 and I would like

  • 0

I have a set of regular (mod 5) matrices N2 and I would like to get the group generated by these matrices in Mathematica:
My approach was to use a function f doing the matrix multiplication and g for mod 5 and then I wanted to use MapThread

M= Function[{x,y},x.y];
g = Function[z, Mod[z, 5]]
g /@ MapThread[M, {N2,N2}]

The problem is that MapThread is inserting only pairs of elements that are at the same position in the lists. I would like to insert any pair of elements in N. To get the group generated by the matrices in N I would just repeat this and update N2 every time.

E.g. let N2 ={A,B}

g /@ MapThread[M, {N2,N2}]

would return {B^2,A^2}, while I want it to return any product of matrices in N2, i.e. {A^2,AB,BA,B^2}.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T11:29:58+00:00Added an answer on May 21, 2026 at 11:29 am

    In this case you need Outer:

    In[27]:= n = RandomInteger[{1, 5}, {3, 2, 2}];
    
    In[28]:= Outer[mFunc, n, n, 1]
    
    Out[28]= {{mFunc[{{3, 5}, {2, 4}}, {{3, 5}, {2, 4}}], 
      mFunc[{{3, 5}, {2, 4}}, {{3, 4}, {4, 3}}], 
      mFunc[{{3, 5}, {2, 4}}, {{4, 4}, {5, 1}}]}, {mFunc[{{3, 4}, {4, 
         3}}, {{3, 5}, {2, 4}}], 
      mFunc[{{3, 4}, {4, 3}}, {{3, 4}, {4, 3}}], 
      mFunc[{{3, 4}, {4, 3}}, {{4, 4}, {5, 1}}]}, {mFunc[{{4, 4}, {5, 
         1}}, {{3, 5}, {2, 4}}], 
      mFunc[{{4, 4}, {5, 1}}, {{3, 4}, {4, 3}}], 
      mFunc[{{4, 4}, {5, 1}}, {{4, 4}, {5, 1}}]}}
    
    In[29]:= n
    
    Out[29]= {{{3, 5}, {2, 4}}, {{3, 4}, {4, 3}}, {{4, 4}, {5, 1}}}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of strings. I would like to extract a regular expression
I would like to have a set of nice tools in JavaScript for creating
I have a Python regular expression that matches a set of filenames. How to
I have set a background on the data-role=page element like so <div data-role=page style=background:
In emacs (23.3.1, GNU) i have set a theme (doesn't matter which i use
I have a set of points which are contained within the rectangle. I'd like
Problem I'm having trouble with a regular expression. I have a set of strings.
I have a set of strings like this: Pants [+$50] Shirts [+$10] Jeans [+$5]
In my CakePHP app I have static pages set up like this: Router::connect( '/terms',
I use a lot of singletons, I have set up many as I call

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.