Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
Agregue múltiples arreglos juntos usando VB.Net

Tengo una matriz irregular que contiene 40 matrices diferentes. Cada uno de ellos tiene dimensiones (250, 250, 2).

Me gustaría combinarlos todos en una nueva matriz con dimensiones (250 * 40, 250 * 40, 2 * 40).

Comenzando con la primera matriz lbound(jagged) hasta la última ubound(jagged) .

¿Cuál es un buen enfoque para hacer esto? Estaba pensando en simplemente usar bucle:

 Dim DWG(250 * 40, 250 * 40, 2 * 40) as Double Dim jagged(40)() as Double = GetArrays(jagged) ' get 40 arrays Dim arr(250, 250, 2) as Double for i = 0 to ubound(jagged) arr = jagged(i) for channel = 0 to ubound(arr, 3) for row = 0 to ubound(arr, 1) for column = 0 to ubound(arr, 2) DWG(row + (250 * i), column + ( 250 * i), channel + (2 * i)) = arr(row, column, channel) next next next next

Puedo confirmar que el código anterior funciona. Todavía parece que podría haber un mejor enfoque. Solo por un poco de contexto, estoy editando datos de píxeles.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!