Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.477.546 Times

N-dimensional sparse arrays 1.0

  Date Added: April 17, 2013  |  Visits: 325

N-dimensional sparse arrays

Report Broken Link
Printer Friendly Version


Product Homepage
Download (44 downloads)

The class ndSparse defined in this submission will give a lot of the functionality of N-dimensional sparse arrays for N possibly greater than 2. However, it should really be thought of as a way of starting with an ordinary MATLAB sparse matrix and reshaping it to have N dimensions. In other words, the sparse data must first be able to exist as an ordinary 2D MATLAB sparse matrix before being made N-dimensional. In fact, if the intended array has dimensions MxNxP...YxZ, then the class will store it internally as an ordinary 2D sparse array of dimensions (M*N*P*...*Y)xZ. This leads to certain performance limitations, but I still find that it has a reasonable range of use. USAGE: S=ndSparse(X) where X is an ordinary MATLAB sparse matrix converts X into an ndSparse object. S can be reshaped into an N-dimensional sparse array using its RESHAPE method, for arbitrary N. S=ndSparse(X,[M,N,P,...]) is equivalent to reshape(ndSparse(X),[M,N,P,...]). The class also has a variety of static methods that can be used to construct instances of the class. For example, S=ndSparse.build(Coordinates,Values,[m,n,p,...],nzmax)lets you generate an N-dimensional sparse array from a table of explicit entries. This is a generalization to N dimensions of S=sparse(i,j,s,m,n,nzmax).Other such methods include: ndSparse.accumarray ndSparse.sprand ndSparse.sprandn ndSparse.spalloc EXAMPLES: >> A=ndSparse.build( [1 1 1; 2 1 1;2 2 2] , [50,60 70]) %Builds a 2x2x2 sparse array from table A(:,:,1) = (1,1) 50 (2,1) 60 A(:,:,2) = (2,2) 70Many of the same manipulations common to ordinary multidimensional MATLAB full arrays can be performed on the sparse 3D array A generated above. It can be permuted, summed, concatentated, and so forth e.g., >> B=sum( permute([A,A+10], [3,2,1]) ,2) B(:,:,1) = (1,1) 120 (2,1) 20 B(:,:,2) = (1,1) 140 (2,1) 160Other overloaded methods include BSXFUN, REPMAT, CIRCSHIFT, CONVN, FLIPDIMS, SQUEEZE, SHIFTDIM and many more. Type "methods ndSparse" for a full list and use "help ndSparse.methodname" to get details of usage.When browsing the list of methods, note that certain common operations have different implementations, optimized for different situations. Specifically, SUM, ANY,ALL, MIN, MAX... have alternative implementations SUMML, ANYML, ALLML, MINML, MAXML which are optimized for "low-dimensional" ndSparse objects OBJ. Here, low-dimensional means that a normal N-column MATLAB sparse matrix won't consume too much memory on your platform for N=MAX(NUMEL(OBJ)./SIZE(OBJ)).Another feature of the class is that bi-operand operations are allowed between ndSparse objects and MATLAB objects of any numeric type (single, uint16, etc...). This is not true of ordinary MATLAB sparse matrices, as of R2010b. >> C=eye(2,'single')*B(:,:,2) C = (1,1) 140 (2,1) 160 >> whos A B C Name Size Bytes Class Attributes A 2x2x2 136 ndSparse B 2x1x2 140 ndSparse C 2x1 104 ndSparse To convert back to an ordinary n-D full array, use the class' overloaded FULL method. To convert to a normal 2D sparse matrix, use the methods SPARSE or SPARSE2D. For example, SPARSE2D will convert an MxNxPx...xQ ndSparse array to the two dimensional (M*N*P*...)xQ sparse matrix in native MATLAB form.

Requirements: No special requirements
Platforms: Matlab
Keyword: Anyall Browsing Details Flipdims Ndsparsemethodname Operations Shiftdim Squeeze Usage
Users rating: 0/10

License: Shareware Size: 20.48 KB
N-DIMENSIONAL SPARSE ARRAYS RELATED
Web Browsers  -  Simpliciti Server Side Browsers 1.1
This browser is ideal for use for controlling any PC browsing capabilities where limited or restricted internet usage is required. Ideal for kiosks, libraries, banks, hospitals and clinics, universities and schools. (custom workspaces available)....
5.08 MB  
File Cataloguers  -  CDWinder 5.0
CDWinder is a cataloging software for almost everything that spins -harddisks, CD's, DVD's, ZIP's... CDWinder creates catalogs of your media and offers them offline for browsing and powerful search operations. CDWinder is...
1.69 MB  
Utilities  -  driveplugger 12-06-2006
driveplugger is a removable storage manager that safely puts control into the hands of the user. driveplugger project makes devices such as USB drives, CDROMs, or any other removable media easy to use. The user can assign names to devices....
23.55 KB  
File Utilities  -  abeMeda 6
abeMeda is a disk and data library for all your media assets, and almost everything that spins -harddisks, CD's, DVD's, ZIP's... abeMeda creates catalogs of your media and their metadata, and offers them offline for browsing and powerful search...
8.47 MB  
Programming  -  UnZipIt 1.0
***** RELEASE SALE ***** Get this app now to save 30%! It will only be on sale for a short time! UnZipIt allows you to easily see the contents of your zip files before extracting them. It will allow you to pick and choose exactly what files you...
1.5 MB  
Communication  -  RANDI_ORG: True random integer numbers 1.0
The RANDI_ORG function has a similar usage as the RANDI function. However, instead of returning pseudo-random numbers, it queries the site http://www.random.org to collect true random numbers. Refer to the web site for a discussion on the...
10 KB  
Desktop Monitors  -  ID Privacy Shield 1.2
ID Privacy Shield is a program specially designed to protect your privacy of actions, by covering up your Internet tracks as well as all of your computer actions. It shields and automatically erases the history of your moves. Main features...
1.03 MB  
Web Browser Tools  -  Invisible Browsing 6.7
Invisible Browsing can be activated through manual or automatic mode. The manual mode allows you make all the settings, to choose the proxy and test it, while in the automatic mode all you have to do is a simple click on the button and you will...
3.01 MB  
Web Browser Tools  -  Xtreme Squeeze Page Pro 1.00
Xtreme Squeeze Page Pro is created to boost Your list building efforts tremendously and give you ability to churn out high-converting squeeze pages instantly like other successful marketers. Xtreme Squeeze Page Pro offers the fastest and...
1.49 MB  
Desktop Utilities  -  Improved offline web browsing 0.6
Improved offline web browsing package contains: - improved / bug-fixed offline browsing for Konqueror and other application that use kde http io slaves. - Improved / bug-fixed web browsing for low-bandwidth connections. - Improved / bug-fixed...
19.46 KB  
NEW DOWNLOADS IN SCRIPTS, DEVELOPMENT TOOLS
Scripts  -  Freelancer Script 5.05
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Post projects. Featured projects. Private projects. Sealed projects. Edit/delete projects. Select freelancers....
5.49 MB  
Scripts  -  B2B Script 4.20
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Sign-up Account (Registration of account). Lead generation tools (for the sellers). Email verification to...
5.49 MB  
Scripts  -  B2C Script 5.06
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). The script comes with totally editable site colors, icons and graphics Multilevel categories allows extensive browsing Admin can change Category ordering or...
5.49 MB  
Scripts  -  Social Networking Script 2.86
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Registration with name, email, password, date of birth etc. User can add multiple school, college, university with start...
5.49 MB  
Scripts  -  Business Networking Script 8.04
Main Features: 100% Secured. Email Support (3 Years). FREE Updates (3 Years). Ajax based interface. Profile creation. Different types of profile. Profile for jobseekers, employers and employed...
5.49 MB  
Development Tools  -  Aml2CHM 3.50
Those who use the popular Aml Pages text editor might be looking out for a way of generating help files from their text and notes. Aml2CHM is a plug-in that was developed to offer people a quick and efficient way of converting Aml Pages documents...
549.99 KB  
Development Tools  -  VMP Viewer 1.0
This is a very rudimentary tool to visualize the VMP files generated by BrainVoyager. Useful to share files with people who do not have BV.
10 KB  
Development Tools  -  Sending reports and timestamped file by emailing 1.0
main executing reference usage:[1] usage_send_mail.mIllustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.[2]...
768 KB  
Development Tools  -  IrisMVC 2.0 rc1
IrisMVC is an OOP PHP framework that developers can use as a strong and secure foundation to build on various web applications following the Model-View-Controller (MVC) pattern. It provides the basic functionality developers need, without...
51.2 KB  
Development Tools  -  7-Zip for Script 4.42
7-Zip is a file archiver with a high compression ratio.Features:- High compression ratio in new 7z format with LZMA compression- Supported formats:- Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR- Unpacking only: RAR, CAB, ISO, ARJ, LZH, CHM,...
624.64 KB