Re: What am I doing wrong? Passing pointers to subroutines.



Ok, I think I have a solution to replacing the transpose, that should
work regardless of the shape of the matrix.

pA = reshape(pA, shape(pA), order = [2,1])

Just quick question; would a transpose be more effiecient (both mem.
and cpu) than a reshape for a square matrix? If so, I could just use
the reshape for rectangular blocks and transpose for the square blocks.

Thanks again,

.



Relevant Pages

  • Re: Help on array multiplication
    ... nmat seems to be the number of dimensions. ... The transpose in the following statements is equivalent ... reshape(v, shape=ishape2)) ... will only occur for matrix dimensions above some threshold size. ...
    (comp.lang.fortran)
  • Re: Reshaping a vector into varying size lines
    ... Transpose your original character data stream so that the units ... Once you have the appropriately padded columns, reshape so that there ... transpose the result to get the display ...
    (comp.soft-sys.matlab)
  • Re: Insert NaN to every line
    ... transpose / concat / reshape ... repmat / index ...
    (comp.soft-sys.matlab)
  • Re: transpose of matrices inside a cell
    ... <SNIP wants to reshape his/her cell mats... ... % take a single mat ... % -or- transpose all at once ...
    (comp.soft-sys.matlab)
  • Re: Quadratic Forms Question - HELP !!!!!!!!!!!!!
    ... We have a square matrix A that can be written in the form, A=S + K, ... SHOW THAT if X is a column n-tuple, then X^AX= X^SX .... ... when you transpose a 1 x 1 matrix? ... Ken Pledger. ...
    (sci.math)