how to do memory allocation in C# need help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Sir ,

I am new to c#, I am unable to allocate memory to this structure. can anyone
please tellme how can we allocate memory to this strucutre.

struct matrix
{
public int row_dim;
public int col_dim;
unsafe public double **data;
} ;
 
I am new to c#, I am unable to allocate memory to this structure. can anyone
please tellme how can we allocate memory to this strucutre.

Why do you use pointers and unsafe code rather than a regular managed
array?



Mattias
 
Back
Top