Search found 46 matches
- Tue Mar 26, 2013 5:15 pm
- Forum: Microsoft.NET
- Topic: class Clipboard (.Net Framework 3.5) - setting Html data
- Replies: 2
- Views: 12146
Re: class Clipboard (.Net Framework 3.5) - setting Html data
Roberto, using Dyalog 13.0 and .NET 2.0 please look at next function z←toClipHtml hText;⎕USING;uCONV ⍝ set Html text to Clipboard with TextDataFormat Html ⍝ z ←→ 1 ←→ OK ⍝ Warning: hText must be HTML well conformed ⎕USING←'System' ⎕USING,←⊂'System.Windows.Forms,system.windows.forms.dll' Clipboard.Set ...
- Tue Mar 12, 2013 9:35 am
- Forum: Language
- Topic: Avoidance of complex numbers in financial calculations.
- Replies: 8
- Views: 28522
Re: Avoidance of complex numbers in financial calculations.
A warning:
1e400J1
1.797693135E308J1
1J1e400
SYNTAX ERROR
1J1e400
1e400J1
1.797693135E308J1
1J1e400
SYNTAX ERROR
1J1e400
[]NULL
Version: 13.0.16306.1 32 Classic Created: Jan 14 2013 at 19:36:46 Build ID: c169c6f1 When dealing with scalar []NULL, I noticed that: ]cpu '200 200⍴⎕null' * Benchmarking "200 200⍴⎕null" Exp CPU (avg): 0 Elapsed: 0 ]cpu '200 200↑⎕null' * Benchmarking "200 200↑⎕null" Exp CPU (avg): 15179 Elapsed: 15179 ...
- Thu Jul 19, 2012 10:02 am
- Forum: Language
- Topic: []MAP and []XT any advice ?
- Replies: 1
- Views: 7355
[]MAP and []XT any advice ?
I have some doubts about []MAP and []XT My goal is to park -for a subsequent possible reuse- many temporary numeric arrays (mean []SIZE is 0.5M) obtained during the processing of a long procedure, . I envisaged to exploit mapped files or extenal variables Is []XT obsolete with respect to []MAP ? or ...
- Fri Jul 06, 2012 12:26 pm
- Forum: New to Dyalog?
- Topic: Handling Missing Data Values-- potential for using NaN
- Replies: 8
- Views: 30574
Re: Handling Missing Data Values-- potential for using NaN
I don't think NaNs are necessary nor are they a good idea. In all the places I have seen them in use (typically missing values in timeseries) it was easy to produce code to handle NaNs by faking them with special values not seen in the data. In one place I worked we had special user defined ...
- Wed Jul 04, 2012 9:25 am
- Forum: Language
- Topic: performance with integers
- Replies: 1
- Views: 8371
performance with integers
I am looking forward performance in my code. I met a situation that I cannot explain to myself. Please look at following code: m2←9999 9⍴⍳999 m1←9999 9⍴⍳999 ⋄ m1[;4]←1.2 ⍝ I can explain next comparison cmpx '{m1[;4]←1.12 ⋄ 0}⍬ ' '{m2[;4]←1025⋄ 0}⍬' {m1[;4]←1.12 ⋄ 0}⍬ 3.7E¯5 0% ⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕⎕ ...
- Tue Nov 08, 2011 4:58 pm
- Forum: Source Code Management
- Topic: ]PROFILE : wrong result
- Replies: 1
- Views: 9871
]PROFILE : wrong result
Please see this DFN: # TESTFN←{ CALLED1←{ CALLED2←{ aaa←⍟1000 1000⍴1.1 ⍵ } CALLED2 ⍵ } CALLED1 ⍵ } and in session manager type : ]PROFILE SUMMARY -expr='TESTFN 0' I obtained : 0 Total time: 108.4 msec Element msec % Calls #.TESTFN 325.3 300.0 3 ---------
- Tue Nov 08, 2011 11:32 am
- Forum: Source Code Management
- Topic: ]display
- Replies: 1
- Views: 11110
]display
]display
sometimes is not able to do its work.
e.g. try the following in a CLEAR WS:
-----------
sometimes is not able to do its work.
e.g. try the following in a CLEAR WS:
]display ⎕STACK
-----------
- Tue Nov 08, 2011 10:51 am
- Forum: Functional Programming
- Topic: ⎕SI in DFNS : help
- Replies: 2
- Views: 11913
Re: ⎕SI in DFNS : help
JohnS|Dyalog wrote:Here is a simple repro:
{{⍬∘⍴∘⍴¨⎕lc ⎕si ⎕stack}⍵}0 ⍝ should return 1 1 1
1 1 2
I think that 1 1 2 is correct.
In fact ⎕STACK must contain a second row related to "desk calculator level".
Do I miss something?
- Fri Nov 04, 2011 10:20 am
- Forum: Functional Programming
- Topic: ⎕SI in DFNS : help
- Replies: 2
- Views: 11913
⎕SI in DFNS : help
Not able to understand the behaviour of ⎕SI and ⎕STACK in defined functions. I prepared the following: ⍝ TOPFN←{ ⎕←'§§§§§§§§§§§§§§' ⎕←'⎕SI at level 0:',⎕SI ⎕←'⍴⎕LC:',(⍴⎕LC),' ⊃⍴⎕STACK:',⊃⍴⎕STACK ⎕←⎕STACK CALLED1←{ ⎕←'§§§§§§§§§§§§§§' ⎕←'⎕SI at level 1:',⎕SI ⎕←'⍴⎕LC:',(⍴⎕LC),' ⊃⍴⎕STACK:',⊃⍴⎕STACK ⎕←⎕ST ...