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 549841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:13:33+00:00 2026-05-13T11:13:33+00:00

I am new to Microsoft.Accelerator. Take a look at the following code (it is

  • 0

I am new to Microsoft.Accelerator. Take a look at the following code (it is F# but it is similar to C#):

type FPA = Microsoft.ParallelArrays.FloatParallelArray

let fi = List.init 9 (fun i -> new FPA(i, [|10;10|])) 
let process (fi: FPA list) : FPA list = fi // complicated function
let newfi = process fi
let target = new DX9Target()
for newf in newfi do printfn "%A" (target.toArray2D(newf))

Basicaly I create a list of FPAs and process it in a way that every element in the resulting newfi list is dependend on all elements in the fi list. Finaly I would like to get the resulting fi list. And my question is: Should I call toArray2D for every single element (FPA) in the resulting FPA list? It seems to me that the whole computation is run everytime I call toArray2D, which is very time consuming.

Thank you for your help.
Oldrich

  • 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-13T11:13:33+00:00Added an answer on May 13, 2026 at 11:13 am

    An FPA represents a computation to be performed. You have two lists of such computations, fi and newfi. Because of how you’re defining things, each element of newfi is a computation which will need to be run independently to get its value; even though it is defined in terms of common underlying elements of fi, there is no way to take advantage of that fact to only compute the underlying fi values a single time and reuse them. If you want those fi computations to be performed only a single time, you’ll need to do one of the following:

    1. Get the results of the fi computations (e.g. by using toArray2D), and build the newfi list based on these computed values.
    2. Create a single computation which represents all newfi values in a single array – you may need to be a bit clever to compose such a computation, but this could allow you to calculate all values at once without needing to recompute the fi values.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code: Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application(); object nullobj = System.Reflection.Missing.Value; object
I'm trying to implement Microsoft's social networking solution accelerator on my Dynamics CRM deployment.
New microsoft's IDEs like Visual Studio 2008 or 2010 creates exe files with manifest
How does the new Microsoft asp.net mvc implementation handle partitioning your application - for
I'm using the new Microsoft ASP.NET Ajax ComboBox control in my web application, and
I have been playing with the new Microsoft Ribbon for WPF and looking at
I am attempting to create a stacked chart using the relatively new Microsoft Chart
Does anyone know how to get a CodeDomProvider in the new Microsoft.VisualStudio.TextTemplating.VSHost. BaseCodeGeneratorWithSite from
I am using this in Script Component In SSIS --> Microsoft.Office.Interop.Excel.Application objXL = new

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.