Quantcast
Channel: User High Performance Mark - Stack Overflow
Browsing all 41 articles
Browse latest View live

Comment by High Performance Mark on Is the keyword END a noun or a verb?

What is the material difference in interpretation, for language design, between the verb and the noun?

View Article



Comment by High Performance Mark on How do I find the minimum number of nodes...

Duplicate of math.stackexchange.com/questions/1954096/… but that's on another site.

View Article

Comment by High Performance Mark on Fortran changing a string to uppercase

Have a look at stackoverflow.com/questions/63339506/…. Personally I think it's a mistake to fiddle around with the ASCII codes for characters, let the compiler do that kind of donkey work.

View Article

Comment by High Performance Mark on Including/omitting write statement...

Have a look at stackoverflow.com/questions/1331608/…. There are other Qs and As on similar topics too.

View Article

Comment by High Performance Mark on Numerical Analysis help in MatLab

I don't dispute most of what you write but, you do know that by default all Matlab numbers are doubles, don't you? To define an integer variable you have to write something like myInt = int64(10)....

View Article


Comment by High Performance Mark on Geographic coordinates to cartesian point...

I have no idea about Unreal but one of the most common cause of such problems as you report is confusion over degrees and radians in measuring angles. The picture (which uses terms such as COSd) is at...

View Article

Comment by High Performance Mark on finite element analysis in mathematica

Probably better to move this question to mathematica.stackexchange.com. It's probably off-topic here, the question seems to be more about correctly formulating the maths than about 'programming'.

View Article

Comment by High Performance Mark on Create vector from distance?

The distance to an object lets you place the drone on a circle with that object at the centre and of radius equal to the distance. Distance to another object will, if the two circles intersect, place...

View Article


Comment by High Performance Mark on Which values cannot be represented...

@ChuckkHubbard: 0 is exactly representable as the sum of no numbers, 0 is 0 is 0 in pretty much any base you care to consider, including binary. IEEE binary representations include 2 'values' for 0,...

View Article


Comment by High Performance Mark on Is Fortran's DBLE intrinsic function...

Worth noting that while the Fortran language standard might delete a feature the compiler producers rarely do, any such deletions would break a lot of old codes. Fortran compilers either compile...

View Article

Comment by High Performance Mark on Passing OpenMP flag for all files affects...

Using OpenMP often has an impact on the optimisations that a compiler makes. The hand-wavy explanation is that some optimisations a compiler would otherwise make are invalid for OpenMP loops (in...

View Article

Answer by High Performance Mark for jumping off a cliff calculator always...

This is an extended comment rather than an answer but those little boxes are too confining ... the code for falling through resistant air includes the...

View Article

Answer by High Performance Mark for Portable output to null stream in Fortran

I've made my earlier comment into an answer so we can tick this question off ...Fortran doesn't provide a platform independent way to send output into the void. If I wanted the facility I might write a...

View Article


Answer by High Performance Mark for Fortran 90 auto(?) allocation of...

I don't have much time, so this might be rather compressed. Note too that, as pointed out in a comment above (copied here for prominence and for posterity) the validity of the code, and of this answer,...

View Article

Answer by High Performance Mark for Binary Search algorithm random array

Too long for a comment, but not an answer (and to any Fortran experts reading this, yes, there are one or two places where I gloss over some details because I think they are unimportant at this stage)...

View Article


Answer by High Performance Mark for Add the second element of list from other...

This might appealSort[Join[b1, b2]] //. {a:___, {m_, n_}, {m_, p_}, z:___} :> {a, {m, n + p}, z}Not terrifically thoroughly tested.

View Article

Answer by High Performance Mark for Mathematica - export multiple plots, each...

Something like this perhaps ?Do[Export["Plot" <> ToString[n] <> "_" <> ToString[d] <> ".pdf", Plot[Sin[n*x] + d, {x, 0, 6 Pi}]], {n, 1, 3}]You'll probably want to adjust the...

View Article


Answer by High Performance Mark for Case insensitive string comparisons in...

Here's another approach which might appeal, let the compiler figure out the character codes and do all the arithmetic:MODULE strings IMPLICIT NONE PRIVATE PUBLIC :: to_upper CHARACTER(len=26),...

View Article

Answer by High Performance Mark for How to convert 1D matlab array code into...

I can immediately see two problems with the Fortran. You've chosen to make L_10 allocatable, but the code doesn't allocate it. You could either make it static, by changing its declaration toreal,...

View Article

Answer by High Performance Mark for Parsing a huge file in Fortran

There is a subtle error in the code. The statementread (iu,"(a)",iostat=ierr) text ! read line into character variablereads a line of text from the file into the variable text, and it uses the edit...

View Article
Browsing all 41 articles
Browse latest View live




Latest Images