octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Tablicious on Octave Forge


From: Dmitri A. Sergatskov
Subject: Re: Getting Tablicious on Octave Forge
Date: Thu, 30 Jan 2020 14:01:55 -0500



On Thu, Jan 30, 2020 at 1:45 PM José Abílio Matos <address@hidden> wrote:

Thank you, that got me going.

When installing I get several replicas of these errors:

__oct_time_binsearch__.cc: In instantiation of ‘octave_idx_type*
binsearch(const T*, octave_idx_type, const T*, octave_idx_type) [with T =
double; octave_idx_type = int]’:
__oct_time_binsearch__.cc:90:56:   required from here
__oct_time_binsearch__.cc:51:79: warning: format ‘%lld’ expects argument of
type ‘long long int’, but argument 2 has type ‘octave_idx_type’ {aka ‘int’} [-
Wformat=]
   51 |         error ("Total ordering violation: neither <, >, nor == was
true. i=%lld, mid=%lld",
      |                                                                           
~~~^
      |                                                                               
|
      |                                                                               
long long int
      |                                                                           
%d
   52 |           i, mid);
      |           ~                                                                   
      |           |
      |           octave_idx_type {aka int}

and later

Are you trying to load pkg compiled for octave 5 into octave 6?
That will not work.


warning: doc_cache_create: unusable help text found in file 'calendarDuration'
warning: doc_cache_create: unusable help text found in file 'categorical'
warning: doc_cache_create: unusable help text found in file 'datetime'
warning: doc_cache_create: unusable help text found in file 'duration'
warning: doc_cache_create: unusable help text found in file 'localdate'
warning: doc_cache_create: unusable help text found in file 'missing'
warning: doc_cache_create: unusable help text found in file 'string'
warning: doc_cache_create: unusable help text found in file 'table'


Those are benign.
In any case it works fine on my computer (Fedora 31).

<<<<

octave:5> cd octave/tablicious-0.3.4/examples/
octave:6> ls
doc-cache  ex_01_suppliers_parts.m
octave:7> ex_01_suppliers_parts

Table s:
----------------------------------
| SNum | SName | Status | City   |
----------------------------------
| S1   | Smith | 20     | London |
| S2   | Jones | 10     | Paris  |
| S3   | Blake | 30     | Paris  |
| S4   | Clark | 20     | London |
| S5   | Adams | 30     | Athens |
----------------------------------
london_suppliers =
table: 2 rows x 4 variables
  VariableNames: SNum, SName, Status, City

Suppliers in London:
----------------------------------
| SNum | SName | Status | City   |
----------------------------------
| S1   | Smith | 20     | London |
| S4   | Clark | 20     | London |
----------------------------------
paris =
table: 1 rows x 4 variables
  VariableNames: SNum, SName, Status, City

Paris suppliers with status >= 20:
---------------------------------
| SNum | SName | Status | City  |
---------------------------------
| S3   | Blake | 30     | Paris |
---------------------------------
s2 =
table: 5 rows x 4 variables
  VariableNames: SNum, SName, Status, SupplierCity

Joined tables:
-----------------------------------------------------------------------------------------
| SNum | PNum | Qty | SName | Status | SupplierCity | PName | Color | Weight | PartCity |
-----------------------------------------------------------------------------------------
| S1   | P1   | 300 | Smith | 20     | London       | Nut   | Red   | 12     | London   |
| S2   | P1   | 300 | Jones | 10     | Paris        | Nut   | Red   | 12     | London   |
| S1   | P2   | 200 | Smith | 20     | London       | Bolt  | Green | 17     | Paris    |
| S2   | P2   | 400 | Jones | 10     | Paris        | Bolt  | Green | 17     | Paris    |
| S3   | P2   | 200 | Blake | 30     | Paris        | Bolt  | Green | 17     | Paris    |
| S4   | P2   | 200 | Clark | 20     | London       | Bolt  | Green | 17     | Paris    |
| S1   | P3   | 400 | Smith | 20     | London       | Screw | Blue  | 17     | Oslo     |
| S1   | P4   | 200 | Smith | 20     | London       | Screw | Red   | 14     | London   |
| S4   | P4   | 300 | Clark | 20     | London       | Screw | Red   | 14     | London   |
| S1   | P5   | 100 | Smith | 20     | London       | Cam   | Blue  | 12     | Paris    |
| S4   | P5   | 400 | Clark | 20     | London       | Cam   | Blue  | 12     | Paris    |
| S1   | P6   | 100 | Smith | 20     | London       | Cog   | Red   | 19     | London   |
-----------------------------------------------------------------------------------------

Delivery totals by city:
-------------------------------------
| PartCity | TotalQty | TotalWeight |
-------------------------------------
| London   | 1200     | 16100       |
| Oslo     | 400      | 6800        |
| Paris    | 1500     | 23000       |
-------------------------------------

Delivery totals by city with extra info:
----------------------------------------------------------------
| PartCity | Parts      | Colors      | TotalQty | TotalWeight |
----------------------------------------------------------------
| London   | P1, P4, P6 | Red         | 1200     | 16100       |
| Oslo     | P3         | Blue        | 400      | 6800        |
| Paris    | P2, P5     | Blue, Green | 1500     | 23000       |
----------------------------------------------------------------
octave:8>
>>>>

 
Best regards,
--
José Matos


Dmitri.
--

reply via email to

[Prev in Thread] Current Thread [Next in Thread]