DNorm2
- Downloads:
- Views:
- Rating:

Fast euclidian norm over N.th dimension of a DOUBLE array
Y = DNorm2(X, N)
INPUT:
X: Real DOUBLE array.
N: Dimension to operate on.
OUTPUT:
Y: Euclidian norm over N.th dimension: Y = sqrt(sum(X .* X, N)).
Length of N.th dimension of Y is 1.
NaN's are considered.
Matlab's built-in function NORM is fast for vectors, but for matrices the matrix norm is replied. Other efficient methods for vectors(!):
Y = sqrt(sum(X .* X));
Y = sqrt(X * X'); % row vectors, faster than DNorm2!
And James Tursa's MTIMESX is very fast for vectors also and can operate on the 1st dimension of arrays also:
X = rand(100, 100); X = reshape(X, 100, 1, 100);
Y = sqrt(mtimesx(X, 't', X));
But for arrays DNorm2 is faster, and I do not see a way to apply MTIMESX for trailing dimensions without time-consuming transpositions.
COMPILATION:
This function must be compiled before using:
mex -O DNorm2.c
See DNorm2.c for detailed instructions.
TEST: Run uTest_DNorm2 to test validity and speed.
NOTES: See DNorm2.c for strategies to optimize processing speed depending on the size of X.
Unfortunately this function is not multi-threaded. Assistence to include OMP would be very welcome.
Tested: Matlab 6.5, 7.7, 7.8, WinXP, 32bit
Compiler: LCC2.4/3.8, BCC5.5, OWC1.8, MSVC2008
Assumed Compatibility: higher Matlab versions, Mac, Linux, 64bit
Free download from Shareware Connection - Fast euclidian norm over N.th dimension of a DOUBLE array
Version: 1.0 | Size: 10 KB | Platform: Matlab, Scripts
Released Date: 12-03-2013 | Rating: 0 | Title: DNorm2
Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/29035/2/DNorm2_16Oct2010.zip
ScaleTime - ScaleTime - fast linear matrix interpolation
DateStr2Num - DATESTR2NUM - Fast conversion of DATESTR to DATENUM
FilterM - FilterM, FiltFiltM: Fast digital filter
strncmpr - Compare last N chars of strings or cell strings
WindowAPI - WINDOWAPI - Set window properties using the Windows API
MATLAB Support Package for Arduino (aka ArduinoIO Package)
SimpleTest
WordPress Auto Poster Plugin
Professional Simulink Audio Equalizer
PHP Print / Echo
Ends Smart Form
Output buffering, and how it can change your life
ScriptCase - PHP Code Generator
Advanced Istaller for Java
Wind Turbine Model
C to C++ Converter
C++ Compiler
Cumulative Mann-Kendall trend test
FORMfields - The PHP Framework
Affiliate Programs
Animation
Auctions
Audio Systems
Banner Rotation
Blog
Bulletin Boards & Forums
Business & Enterprise
Buttons
Calendars & Events
Charts & Graphs
Chat
Classified Ad Managers
Communication
Fast Upload Big Dimension Files
Fast Double Click Program
Calculate Norm
Matrix Norm
Matrix Norm Calculator
Syncmin - Syncmin is a Webmin module, which synchronizes files between two systems. To optimize the speed of processing, rsync synchronization technology is used, which only copies file differences.
Dr.Salman's Window Power Tools - Window Power Tool is the No. 1 System Optimizer for Windows 95/98/Me/NT4/2000/XP. It not only increases Internet Speed but also make Windows Run faster and Smoother. It gives more RAM, enhances memory,frees up wasted memory and boosts Performance.
Bulk Mailer X - An easy to use web-based application to manage mass mailing of your e-newsletters, mailing lists and subscription. Uses MySQL for high speed of processing and large volume of database. Import emails from database, file or enter on web in bulk.
BHM File Format - A generic hierarchical file format. BHM can be seen as the binary equivalent of XML. It allows flexible hierarchies of any type of data, in a platform-independent way. BHM however trades XML's readability for compactness and speed of processing.
SC Free Net Speed Up Lite - Configure with SC FreeNet Speeder Lite Wizzard any modem, ADSL, Cable, DSL, LAN connection types for maximum performance for faster surfing the Web, playing online games,, downloading files. It also configures Internet Explorer for better stability.
Shareware Connection periodically updates pricing and software information of 'DNorm2' from company source 'Jan Simon' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using 'DNorm2' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of DNorm2.
Eset Cyber Security Pro - There was a time Mac users were simply oblivious to the existence of malware and viruses, partially encouraged by Apple’s claim that Mac’s do not fall prey to malicious code. In last few years, that perception has been shattered owing ...
IDrive Classic - For every type of computer user, backing up data has become near compulsory. Apart from data loss caused by hardware snags, you cannot rule out the risk of data loss caused by malware attacks. That explains why millions of PC users back up their ...
Sigma Internet Monitoring - There is no denying the huge importance of internet in human life. Without the web, it has literally become imposable to carry on a lot of personal and professional activities, irrespective of your age, gender and qualification. While the web ...
NovaBench - PC performance benchmarking is something that may not interest average users much but tech savvy lot resort to such apps to find out prowess and capability of their laptops and desktops. While there are quite a few PC benchmarking apps in market, ...
Comodo Unite - There are many ways to bypass the restrictions imposed on users by governments and ISPs for accessing specific websites and online services. One of them is using a capable VPN application. A VPN app basically lets you camouflage the real IP ...
MacPilot - The Mac OS contains many advanced features that can make computing a different experience altogether. However, not all Mac users are aware of such deep rooted features of the Apple OS. The usual surface customizations are what most of them remain ...
Video Editor - With advancements in both computer software and hardware, average users are getting into activities that were hitherto reserved for professionals. There are several video editing tools aimed at casual users as well. While professional users ...
ProAnimator - In Post production setups and 3D animation studios, using specialized CG and special effects app becomes a necessity. ProAnimator is a feature rich 3D design application targeted at motion graphics sector. It is ideal when you want to add some ...
Cubase Artist - Professional audio editors and artists dealing in MIDI composition have a soft corner for Steinberg Cubase Artist. Its origin can be traced back to Atari ST and in later years, the app made way into PCs and Macs. The latest version is a flexible ...
Adobe Media Encoder - Almost every PC user faces a situation where he or she needs to convert an audio or video file fast into a format of choice. There are several free and commercial apps, but the abundance of options can actually make selection difficult. If you ...

